"Sender address rejected: Domain not found"
This is because the sender email being used was:
us...@localhost.localdomain
There is a file called "/etc/postfix/generic" that creates a hash
table that Postfix uses to map outgoing email addresses.
To get Postfix to masquerade email address do this:
- open /etc/postfix/main.cf in vi and enter this line of code:
smtp_generic_maps = hash:/etc/postfix/generic
- save and exit
- open /etc/postix/generic in vi and add the email address you want to
change and what you want to change it to.
e.g:
us...@localhost.localdomain us...@example.com
- save and exit
- run this command to generate the hash file:
postmap /etc/postfix/generic
- restart Postfix
See these sites for more info:
http://www.postfix.org/generic.5.html
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#fantasy
http://www.postfix.org/postconf.5.html#smtp_generic_maps