Preventing OMG from overwriting Postfix authentication setting

Feb 21, 2023
45
0
11
Hello,

I’ve noticed that whenever OMG updates or rewrites the Postfix configuration, my custom authentication settings in main.cf are lost. At the moment I have to manually restore my working configuration after each change.

Could you please advise how I can configure OMG so that it preserves or includes my Postfix authentication settings, instead of overwriting them? Is there a recommended way to extend or override the default template so that these parameters remain intact?

Thank you in advance for your guidance.
 
Take al look at the documentation https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
Bash:
mkdir /etc/pmg/templates
cp /var/lib/pmg/templates/main.cf.in /etc/pmg/templates/
edith /etc/pmg/templates/main.cf and deploy the new template pmgconfig sync --restart 1
I just wanted to thank you for your guidance. I followed your advice step by step, and you were absolutely right – everything is now working perfectly. Your tip was exactly what I needed to get this sorted out.

Really appreciate the time you took to help me.