diff options
-rw-r--r-- | pillar/common/postfix.sls | 19 | ||||
-rw-r--r-- | pillar/common/suse.sls | 3 | ||||
-rw-r--r-- | salt/common/postfix.sls | 3 | ||||
-rw-r--r-- | salt/common/suse.sls | 1 |
4 files changed, 26 insertions, 0 deletions
diff --git a/pillar/common/postfix.sls b/pillar/common/postfix.sls new file mode 100644 index 0000000..ce59e60 --- /dev/null +++ b/pillar/common/postfix.sls @@ -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' + + diff --git a/pillar/common/suse.sls b/pillar/common/suse.sls index 4105c37..f3456ed 100644 --- a/pillar/common/suse.sls +++ b/pillar/common/suse.sls @@ -1,3 +1,6 @@ +include: + - .postfix + zypper: refreshdb_force: False diff --git a/salt/common/postfix.sls b/salt/common/postfix.sls new file mode 100644 index 0000000..d5b51d4 --- /dev/null +++ b/salt/common/postfix.sls @@ -0,0 +1,3 @@ +include: + - postfix + - postfix.config diff --git a/salt/common/suse.sls b/salt/common/suse.sls index e655353..d76da87 100644 --- a/salt/common/suse.sls +++ b/salt/common/suse.sls @@ -3,6 +3,7 @@ include: - profile.zypp - profile.node_exporter - users + - .postfix {#- to-do: move this to some formula or macro -#} {%- set osfullname = grains['osfullname'] -%} |