diff options
author | Georg Pfuetzenreuter | 2023-01-26 19:34:01 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-26 20:54:09 +0100 |
commit | f949c0aba0bd9863474a35e1613eb23554acc449 (patch) | |
tree | 8d1ef259d2860bfd10242da665f331303ee68eda /pillar/global/mta.sls | |
parent | 56a1e11ef6a7f73edab543d79f6eba8b940d699f (diff) | |
download | salt-f949c0aba0bd9863474a35e1613eb23554acc449.tar.gz salt-f949c0aba0bd9863474a35e1613eb23554acc449.tar.bz2 salt-f949c0aba0bd9863474a35e1613eb23554acc449.zip |
mta.postfix->global.mta pillar; remove mta profile
This is more a MTA configuration for system email on all hosts instead of
a dedicated email server role.
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'pillar/global/mta.sls')
-rw-r--r-- | pillar/global/mta.sls | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pillar/global/mta.sls b/pillar/global/mta.sls new file mode 100644 index 0000000..a992440 --- /dev/null +++ b/pillar/global/mta.sls @@ -0,0 +1,28 @@ +postfix: + master_config: + services: + smtp: + enable: False + config: + # to-do: set via site config + relayhost: zz0.email:465 + mydestination: '$myhostname, localhost' + myhostname: {{ grains['fqdn'] }} + inet_interfaces: loopback-only + # to-do: support relay via IPv6 + inet_protocols: ipv4 + alias_database: lmdb:/etc/aliases + alias_maps: lmdb:/etc/aliases + smtpd_use_tls: 'no' + smtp_use_tls: 'yes' + smtp_tls_security_level: encrypt + smtp_tls_wrappermode: 'yes' + + aliases: + use_file: false + present: + admins: 'georg, pratyush' + georg: georg@lysergic.dev + pratyush: pratyush@lysergic.dev + root: 'system, \root' + system: system@lysergic.dev |