infinito
May 31st, 2005, 12:25 PM
This Mini-Howto describes howto make Postfix to send local emails with your preferred email addreass as the "sender" header.
This means that when you send mails using "mail" or mails automatically sended by root,you can get your email at the from field.
That's the way you get it:
(1) Create the /etc/postfix/sender_canonical, and add user -> email references like this:
$ sudo vi /etc/postfix/sender_canonical
infinito infinito@hotmail.com
root infinito@hotmail.com
(2) Create /etc/postfix/sender_canonical.db file
$ sudo postmap hash:/etc/postfix/sender_canonical
(3) Add sender_canonical variable to /etc/postfix/main.cf
postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
(4) Restart Postfix
$ sudo /etc/init.d/postfix restart
Hope this is useful for someone...
This means that when you send mails using "mail" or mails automatically sended by root,you can get your email at the from field.
That's the way you get it:
(1) Create the /etc/postfix/sender_canonical, and add user -> email references like this:
$ sudo vi /etc/postfix/sender_canonical
infinito infinito@hotmail.com
root infinito@hotmail.com
(2) Create /etc/postfix/sender_canonical.db file
$ sudo postmap hash:/etc/postfix/sender_canonical
(3) Add sender_canonical variable to /etc/postfix/main.cf
postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
(4) Restart Postfix
$ sudo /etc/init.d/postfix restart
Hope this is useful for someone...