Originally Posted by fantalimon
sendmail_path = /usr/sbin/sendmail.postfix -t -i -F "no-reply"
Well that's great if you're targeting a specific application.
I used this technique in fail2ban actions to produce the same result but this is extremely cumbersome if you have multiple servers/vservers/services which send mail. I wish someone could point me out in the right direction because this is something that's been haunting me for a while.
My issue is that I would like to change permanently the display name of the from for all mails sent by postfix. I use postfix as a relay to google apps and have one account there with multiple domain aliases. I only really use one set of credentials for authentication stored in sasl_passwd for all my domains and use filters to manage forwarding to proper accounts and/or folders.
Have tried generic mapping, played around with /etc/aliases but nothing did it and I'm still receiving emails from "root" <email@example.com> while what I really want is "mydomain.me" <firstname.lastname@example.org> no matter the account it was sent from.
If anyone has any idea on how to solve this issue please let us know.
Thanks in advance,