Masquerading or replacing outgoing SMTP email address with Postfix

L'Antre du Tryphon

schedule
2012-08-01 | 04:22h
update
2013-06-08 | 19:25h
person
www.ctheroux.com
domain
www.ctheroux.com

Masquerading or replacing outgoing SMTP email address with Postfix

Postfix can replace an outgoing email address by another one. To do so, you must perform these steps:

Add in /etc/postfix/main.cf the following line

smtp_generic_maps = hash:/etc/postfix/generic_maps

Add in hash:/etc/postfix/generic_maps a line for each email address you want to replaced.  The line shall contain the email address to replace followed by the new email address separated by a space.  For example:

user@machine-name emailaddress@domain.tld

Generate or update the map by issuing the following command

postmap /etc/postfix/generic_maps

Restart postfix by issuing the following command

service postfix restart
Advertisement

Imprint
Responsible for the content:
www.ctheroux.com
Privacy & Terms of Use:
www.ctheroux.com
Mobile website via:
WordPress AMP Plugin
Last AMPHTML update:
16.04.2024 - 11:14:12
Privacy-Data & cookie usage: