How to configure postfix to replace the name of the sender to a configured one
I have postfix
installed on my machine. I also use the generic
maps to overwrite the email address from ubuntu
to [email protected]
:
/etc/postfix/generic
ubuntu [email protected]
With this generic mapping the email comes from "Ubuntu" <[email protected]>
. But I also want to overwrite the the From Name of the sender to Server1
such that I receive emails from: "Server1" <[email protected]>
.
How do I configure this in postfix
?
Solution 1:
Usually the MTA
uses the configuration that are in the system, so if your username 'ubuntu' does not have any full name setted, then all e-mails from him will came without a name, or perhaps the name that you've setted on 'ubuntu' login is just "Ubuntu" since you said that all e-mails are coming with "Ubuntu" <[email protected]"
To fix that, try use this command as root, and then send e-mail again
# chfn -f "Server1" ubuntu
Hope it helps ;)