How to change from where and how Undelivered Mail Returned to Sender email is send

poetry

Active Member
May 28, 2020
206
63
33
Hello,

Our configuration is one proxmox mail server gateway for receiving email and one for sending email.

Is it possible to configure the receiving email server to use sending email server for system messages for example everything that is delivered from Mail Delivery System <MAILER-DAEMON@example.com> this includes messages like Undelivered Mail Returned to Sender...

Is it also possible to change the from address for all system messages? Would like to change it to something like noreply@example.com.

I am asking because I would like to make sure that system messages are properly signed with dkim that we don't have configured on our receiving email server.

Thank you.
 
You could set the smarthost under Mail Proxy -> Relaying -> smarthost to be the sending PMG. For the from address change, you can change the quarantine from via the quarantine settings. Other items like daily admin reports use another address and I that may require direct configuration changes.
 
Is it possible to configure the receiving email server to use sending email server for system messages for example everything that is delivered from Mail Delivery System <MAILER-DAEMON@example.com> this includes messages like Undelivered Mail Returned to Sender...
Should be doable by modifying the postfix configuration (for the inbound PMG) via the templateing system:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

However never have tried it - so please do take this with a grain of salt and check the postfix documentation:
* probably the setting is sender_dependent_transport_maps http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps
* check the transport(5) manpage

I hope this helps!
 

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!