[SOLVED] Postfix configuration files

Nenes71

Member
Jun 27, 2022
15
2
8
Hello
I customise my /etc/postfix/main.cf with template in /etc/pmg/templates/main.cf.in and it's work well.
I want to use /etc/postfix/rcptacces postfix file but after each pmgconfig sync the file is overwrited by an empty one
How can I make pessitant changes in this file?

Thank you
 
Hi,

just looked at the code [1]. It looks like this just gets overwritten with a list from the database. I didn't look into that detail but you could try setting the config you want here via the API [2].

I'm not sure if I should recommend to you to modify the template (/etc/pmg/templates/main.cf.in) and replace the rcptaccess filename with your own file :).

Regards

[1] https://git.proxmox.com/?p=pmg-api....cfaac10540fcffe59e2f14a1119169a;hb=HEAD#l1648
[2] https://pmg.proxmox.com/pmg-docs/api-viewer/index.html
 

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!