Manage common Postfix

Add configuration for global client MTA's.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg Pfuetzenreuter 2023-01-24 20:35:14 +01:00
parent 4863396938
commit 3277edf5e1
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
2 changed files with 22 additions and 0 deletions

19
pillar/common/postfix.sls Normal file
View File

@ -0,0 +1,19 @@
postfix:
master_config:
services:
smtp:
enable: False
config:
# to-do: set via site config
relayhost: zz0.email
myhostname: {{ grains['fqdn'] }}
inet_interfaces: loopback-only
# to-do: support relay via IPv6
inet_protocols: ipv4
alias_maps: lmdb:/etc/aliases
smtpd_use_tls: 'no'
smtp_use_tls: 'yes'
smtp_tls_security_level: encrypt
smtp_tls_wrappermode: 'yes'

View File

@ -1,3 +1,6 @@
include:
- .postfix
zypper:
refreshdb_force: False