summaryrefslogtreecommitdiffstats
path: root/pillar/role
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2023-01-24 23:04:57 +0100
committerGeorg Pfuetzenreuter2023-01-24 23:16:56 +0100
commit4bf9ac9413b0ab5668abd9a77c9be745b5bee136 (patch)
treea6bd4d887cbb95f3a1b736880f684b0774646c81 /pillar/role
parent7b9f184c6b0e6164cfc08b5ae4b77970cc001194 (diff)
downloadsalt-4bf9ac9413b0ab5668abd9a77c9be745b5bee136.tar.gz
salt-4bf9ac9413b0ab5668abd9a77c9be745b5bee136.tar.bz2
salt-4bf9ac9413b0ab5668abd9a77c9be745b5bee136.zip
Include Postfix pillar via role
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
Diffstat (limited to 'pillar/role')
-rw-r--r--pillar/role/mta/postfix.sls26
1 files changed, 26 insertions, 0 deletions
diff --git a/pillar/role/mta/postfix.sls b/pillar/role/mta/postfix.sls
new file mode 100644
index 0000000..15c3d07
--- /dev/null
+++ b/pillar/role/mta/postfix.sls
@@ -0,0 +1,26 @@
+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'
+
+ aliases:
+ use_file: false
+ present:
+ admins: 'georg, pratyush'
+ georg: georg@lysergic.dev
+ pratyush: pratyush@lysergic.dev
+ root: 'system, \root'
+ system: system@lysergic.dev