Hi,
I have implemented smart host with tls & credentials following the excellent guide here:
https://www.caretech.io/2018/10/06/how-to-use-proxmox-mail-gateway-with-an-authenticated-smarthost/
I've added my additional parameters to the /var/lib/pmg/templates/main.cf.in
I also added these lines manual to the /etc/postfix/main.cf
and restarted postfix
This works fine.
But after eg. kernel upgrade & restart the /etc/postfix/main.cf will be missing the extra lines, only retaining the default_transport:
The additional lines are still in /var/lib/pmg/templates/main.cf.in
What am I missing ?
/OhmegaStar
I have implemented smart host with tls & credentials following the excellent guide here:
https://www.caretech.io/2018/10/06/how-to-use-proxmox-mail-gateway-with-an-authenticated-smarthost/
I've added my additional parameters to the /var/lib/pmg/templates/main.cf.in
Code:
[% IF pmg.mail.smarthost %]
default_transport = smtp:[% pmg.mail.smarthost %]:[% pmg.mail.smarthostport %]
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =
[% END %]
I also added these lines manual to the /etc/postfix/main.cf
Code:
default_transport = smtp:mail.smarthost.com:2525
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =
and restarted postfix
This works fine.
But after eg. kernel upgrade & restart the /etc/postfix/main.cf will be missing the extra lines, only retaining the default_transport:
Code:
default_transport = smtp:mail.smarthost.com:2525
The additional lines are still in /var/lib/pmg/templates/main.cf.in
What am I missing ?
/OhmegaStar