Philippe - Forums: > Hello. > > I want to have the good sender name when an email is sending from my > mailserver. > > I explain my problem: > > I have 5 different servers including my mailserver. > > When I send an email from my mailserver with a user (for example : > user=backup) I receive the mail from "backup@server-name". > > When I send an email from my 4 other servers with the same user (backup) > I receive the mail from "bac...@my-domain.fr".
http://www.postfix.org/BASIC_CONFIGURATION_README.html#myorigin Wietse The myorigin parameter specifies the domain that appears in mail that is posted on this machine. The default is to use the local machine name, $myhostname, which defaults to the name of the machine. Unless you are running a really small site, you probably want to change that into $mydomain, which defaults to the parent domain of the machine name. For the sake of consistency between sender and recipient addresses, myorigin also specifies the domain name that is appended to an unqualified recipient address. Examples (specify only one of the following): /etc/postfix/main.cf: myorigin = $myhostname (default: send mail as "user@$myhostname") myorigin = $mydomain (probably desirable: "user@$mydomain")