On all of my 4 other servers I have this:

mydomain = my-domain.fr
myhostname = my-servername.$mydomain
mynetworks_style = host
mynetworks = 127.0.0.0/8

On my mailserver I have this:

mydomain = my-domain.fr
myhostname = my-mailservername.$mydomain
myorigin = $mydomain
mydestination = $myhostname
mynetworks_style = subnet
mynetworks = 127.0.0.0/8 192.168.1.0/24

---
##################

Philippe - Forums

Le 2018-12-22 23:57, Wietse Venema a écrit :

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")

Reply via email to