Compare commits

...

2 Commits

Author SHA1 Message Date
d0aecd2159
Enable postfix-formula
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-24 20:37:11 +01:00
3277edf5e1
Manage common Postfix
Add configuration for global client MTA's.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-24 20:35:14 +01:00
4 changed files with 24 additions and 1 deletions

View File

@ -28,6 +28,7 @@ file_roots:
- /srv/salt
- /srv/formulas/salt-formula
- /srv/formulas/users-formula
- /srv/formulas/postfix-formula
''')
os.symlink(mypwd + '/salt', '/srv/salt')

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

View File

@ -1,4 +1,4 @@
{%- set formulas = ['salt', 'users'] -%}
{%- set formulas = ['salt', 'users', 'postfix'] -%}
salt:
interface: ${'secret_salt:master:interface'}