postfix: initial bundle

This commit is contained in:
Rico 2021-12-29 23:26:51 +01:00
parent 414b57d3db
commit 90ae486805
Signed by: stillbeben
GPG key ID: AE1066B5BD0B5041
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,11 @@
smtpd_banner = $myhostname ESMTP
disable_vrfy_command = yes
smtp_use_tls = yes
smtp_tls_CApath = /etc/pki/tls/certs
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_mandatory_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
smtp_tls_protocols = !SSLv2,!SSLv3,!TLSv1,!TLSv1.1
smtp_tls_security_level = may
smtp_tls_mandatory_ciphers = high

25
bundles/postfix/items.py Normal file
View file

@ -0,0 +1,25 @@
pkg_apt = {
'postfix': {},
}
svc_systemd = {
'postfix': {
'needs': ['pkg_apt:postfix', 'file:/etc/postfix/main.cf'],
}
}
files = {
'/etc/postfix/main.cf': {
'content_type': 'mako',
'needs': ['pkg_apt:postfix'],
'triggers': ['svc_systemd:postfix:restart'],
},
}
directories = {
'/etc/postfix': {
'owner': 'root',
'mode': '1755',
'needs': ['pkg_apt:postfix'],
},
}