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:
Code:
$ sudo vi /etc/postfix/sender_canonical
infinito infinito@hotmail.com
root infinito@hotmail.com
(2) Create /etc/postfix/sender_canonical.db file
Code:
$ sudo postmap hash:/etc/postfix/sender_canonical
(3) Add sender_canonical variable to /etc/postfix/main.cf
Code:
postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
(4) Restart Postfix
Code:
$ sudo /etc/init.d/postfix restart
Hope this is useful for someone...
Bookmarks