Change domain for MAILER-DAEMON mails ?

bougatoyta

Member
Jun 8, 2021
71
7
13
34
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!