Discussion:
How do I change the from address for mail from root?
(too old to reply)
b***@gmail.com
2016-05-10 21:24:34 UTC
Permalink
I am trying to rewrite mail so that mail from "root" and every other user on the machine shows up as mail from "***@example.com"

This is working for everyone *except* root. Root seems to be 'special'
root mail shows up as root <***@example.com>

I have in main.cf
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
sender_canonical_classes = envelope_sender, header_sender

There are no masq* variables set

sender_canonical contains
root ***@example.com
/.+/ ***@example.com

postconf shows no strings containing "root"

thanks for any clues!

(this is an ask from a paying customer, not negotiable)
d***@gmail.com
2016-07-21 20:59:41 UTC
Permalink
Post by b***@gmail.com
This is working for everyone *except* root. Root seems to be 'special'
I have in main.cf
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
sender_canonical_classes = envelope_sender, header_sender
There are no masq* variables set
sender_canonical contains
postconf shows no strings containing "root"
thanks for any clues!
(this is an ask from a paying customer, not negotiable)
Hi

Do you us a /etc/alias file ?

Regards
Victor

Continue reading on narkive:
Loading...