7

Use /etc/aliases for outgoing mail relayed by postfix with local domain

view full story
linux-howto

http://unix.stackexchange.com – I'm using Ubuntu 12.04 with postfix configured as satellite system that relays outgoing mail to Gmail. For sake of example, my registered domain is example.com I want root cronjobs' error output to be mailed to my real david@example.com inbox. I have this relay working correctly. But these root cronjobs are set by default to email to root@example.com which isn't a real email address. I have in my /etc/aliases: root: david@example.com example.com isn't listed in postfix's main.cf's mydestination so postfix doesn't think this mail is local. It bypasses processing via /etc/aliases and tries t (HowTos)