Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sender address rejected: Domain not found - solution

1,273 views
Skip to first unread message

tonyw...@telusplanet.net

unread,
Oct 18, 2007, 5:06:10 PM10/18/07
to
The maillog was showing errors which contained this:

"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

in...@exofes.nl

unread,
Sep 14, 2012, 10:25:00 AM9/14/12
to
Op donderdag 18 oktober 2007 23:06:10 UTC+2 schreef (onbekend) het volgende:
Thanks! This really saved my day :).

goodda...@gmail.com

unread,
Apr 23, 2013, 3:33:28 AM4/23/13
to
nicely fixed my problem! thanks!
0 new messages