Change system email sender in postfix

For example, you would like to change your root@localhost with admin@mydomain.com.

In /etc/postfix/main.cf, add :

canonical_maps = hash:/etc/postfix/canonical

In /etc/postfix/canonical, add :

root admin@mydomain.com

Then do :

postmap /etc/postfix/canonical

/etc/init.d/postfix restart

Leave a Reply

Your email address will not be published. Required fields are marked *