[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