I needed to configure a smarthost but I didn’t use smtp_tls_policy_maps so here is what I did for a working smarthost:
Enter the mail instance environment, in my case mail1:
runagent -m mail1
Create the file smarthost.cf
by using vi in the container…
podman exec -ti postfix vi main.cf.d/smarthost.cf
…and add following content:
relayhost = [your.smarthost.tld]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = lmdb:/etc/postfix/main.cf.d/relay_pass
smtp_sasl_mechanism_filter = plain, login
smtp_sasl_security_options =
Create the file relay_pass
…
podman exec -ti postfix vi main.cf.d/relay_pass
…with following content like smarthost username:password
:
your.smarthost.tld markus:SeCrEt
Create the lmdb file:
podman exec -ti postfix postmap main.cf.d/relay_pass
Restart postfix:
systemctl --user restart postfix