updated postfix state

This commit is contained in:
Paul 2022-12-03 00:05:37 +01:00
parent bf89cb7c65
commit a350266b2c
3 changed files with 47 additions and 31 deletions

View File

@ -4,7 +4,7 @@ postfix:
base_dir: '/etc/postfix'
pkgs:
- postfix
db: None
db:
config:
main:
alias_database: 'hash:/etc/aliases'

View File

@ -28,8 +28,16 @@ postfix-transport:
cmd.run:
- name: postmap transport
- cwd: {{ postfix.base_dir }}
- success_stdout:
- ""
- success_retcodes:
- 0
postfix-sender-access:
cmd.run:
- name: postmap sender_access
- cwd: {{ postfix.base_dir }}
#- success_stdout:
# - ""
- success_retcodes:
- 0

View File

@ -25,6 +25,14 @@ lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
submission inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_tls_security_level=encrypt
-o smtpd_tls_auth_only=yes
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes