Prevent PMG template destruction

proxnoci

Member
Jan 15, 2023
43
5
8
f.e my upstream mailer does NOT accept 40 concurrent deliveries in one run, guaranteed to get a temporary ban (24 hours) if >2 concurrent messages are received. So there is a train wreck of mail-messages to be observed after each update.
Besides i need some other settings (specific blacklist/whitelists), also i have an extra port (27) that sends mails without any checks from some specific internal services. (Sending on port 26, makes most messages marked as spam due to it's source, an internal server..?).
SRS handling, HELO processing to allow some specific known violations that cannot be helped (PLC originating mail, from external sources).

The current method of install FIRST wrecks the setup after which i can manual recover the issues. In the mean time mail fails.

Is it possible to ONLY overwrite templates that are still unmodified from the previous install and only provide a renamed file when the current template not equals the previous default (and if possible a notification when the templates have changed?)
 
Last edited:
s it possible to ONLY overwrite templates that are still unmodified from the previous install and only provide a renamed file when the current template not equals the previous default (and if possible a notification when the templates have changed?)
Which configuration files are you referring to - as written in your other thread:
https://forum.proxmox.com/threads/helo-processing.133834/post-626840

all config files that get written/rendered by pmg are handled by the templateting system - if you want to override them - simply copy them to /etc/pmg/templates and do your modifications there.

I hope this helps!
 
I did that, only to find that those are overwritten when apt-get update / apt-get ???-upgrade is done.
Since then i update the ones in /var/lib/pmg/templates as well.
 

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!