Change domain for MAILER-DAEMON mails ?

bougatoyta

Member
Jun 8, 2021
71
7
13
35
Hi,

I have a little trouble to figure this out.

My PMG server hostname is : client.mydomain.net and it is performing filtering for the domain client.com

When there's a MAILER-DAEMON send it is send with this address MAILER-DAEMON@client.mydomain.net

I would like to change that for MAILER-DAEMON@client.com

From what I understand that might be fixed by creating this variable in main.cf.in :

myorigin = client.com

I can't use existing variable here because currently :

mydomain = [% dns.domain %]
myhostname = [% dns.hostname %].[% dns.domain %]

which gice mydomain.net and client.mydomain.net

Changing hostname would break the service for the client.

Does anyone know a proper way to fix this ?

Regards
 
So myorigin = client.com did not work.

I check on another PMG server that was working properly and notice that I did not put "search client.com" in the server that cause me trouble.

pmgconfig dump now show the correct dns.domain and dns.fqdn but sadly the mailer daemon is still with the wrong domain...
 
pmgconfig dump now show the correct dns.domain and dns.fqdn but sadly the mailer daemon is still with the wrong domain...
did you run `pmgconfig sync --restart 1` as well?
 
tried to set the smtp_helo_name in the main.conf.in, does not change the mailer daemon address, will update when I found something