Manage common Postfix

Add configuration for global client MTA's.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>

Enable Postfix management

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 6c7aaa08e1
Signed by: Georg
GPG Key ID: 1ED2F138E7E6FF57
4 changed files with 26 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: zypper:
refreshdb_force: False refreshdb_force: False

3
salt/common/postfix.sls Normal file
View File

@ -0,0 +1,3 @@
include:
- postfix
- postfix.config

View File

@ -3,6 +3,7 @@ include:
- profile.zypp - profile.zypp
- profile.node_exporter - profile.node_exporter
- users - users
- .postfix
{#- to-do: move this to some formula or macro -#} {#- to-do: move this to some formula or macro -#}
{%- set osfullname = grains['osfullname'] -%} {%- set osfullname = grains['osfullname'] -%}