There are two users : root and debian8 in my system.
The domain name is pengsir.hfi
I fount that root can’t receive any email sent to it.
ehco ‘test’ | mail -s ‘test’ root@localhost
mail
No mail for root
cat /var/log/mail.log
Aug 19 15:47:49 pengsir postfix/pickup[3769]: 9F84FF829F: uid=1000 from=<debian8> Aug 19 15:47:49 pengsir postfix/cleanup[3808]: 9F84FF829F: message-id=20150819074749.9F84FF829F@pengsir.hfi Aug 19 15:47:49 pengsir postfix/qmgr[3770]: 9F84FF829F: from=debian8@pengsir.hfi, size=287, nrcpt=1 (queue active) Aug 19 15:47:49 pengsir postfix/local[3810]: 9F84FF829F: to=root@pengsir.hfi, orig_to=root@localhost, relay=local, delay=0.24, delays=0.14/0.01/0/0.1, dsn=2.0.0, status=sent (delivered to command: procmail -a “$EXTENSION”) Aug 19 15:47:49 pengsir postfix/qmgr[3770]: 9F84FF829F: removed
Why the email was removed?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @vedalken254:
What you’ve quoted is it saying that the email was removed from the active queue because postfix delivered the email successfully to the other party. Also, This is by design. Postfix is typically run in a chrooted environment so it can’t deliver to the root account… You could either set up an alias for root to forward to some other user on the system that you then pull mail from OR follow this guide: https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin <— I personally did that except for the spamassassin part and i’m starting to regret it now as my email is getting spammed to hell.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.