Compare commits
2 commits
b02adbb7cb
...
0e97f9e596
Author | SHA1 | Date | |
---|---|---|---|
![]() |
0e97f9e596 | ||
![]() |
1b2926a24d |
3 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,7 @@ database_password = repo.vault.password_for(f'{node.name} db mailserver')
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
'mailserver': {
|
'mailserver': {
|
||||||
|
'debug': False,
|
||||||
'maildir': '/var/vmail',
|
'maildir': '/var/vmail',
|
||||||
'database': {
|
'database': {
|
||||||
'host': '127.0.0.1', # dont use localhost
|
'host': '127.0.0.1', # dont use localhost
|
||||||
|
|
|
@ -37,6 +37,11 @@ smtpd_tls_auth_only = yes
|
||||||
smtpd_tls_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
smtpd_tls_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
||||||
smtpd_tls_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
smtpd_tls_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
||||||
smtp_tls_security_level = may
|
smtp_tls_security_level = may
|
||||||
|
% if debug:
|
||||||
|
smtpd_tls_loglevel = 3
|
||||||
|
% endif
|
||||||
|
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
||||||
|
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
||||||
|
|
||||||
smtpd_restriction_classes = mua_sender_restrictions, mua_client_restrictions, mua_helo_restrictions
|
smtpd_restriction_classes = mua_sender_restrictions, mua_client_restrictions, mua_helo_restrictions
|
||||||
mua_client_restrictions = permit_sasl_authenticated, reject
|
mua_client_restrictions = permit_sasl_authenticated, reject
|
||||||
|
|
|
@ -17,6 +17,7 @@ files = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': {
|
||||||
'hostname': node.metadata.get('mailserver/hostname'),
|
'hostname': node.metadata.get('mailserver/hostname'),
|
||||||
|
'debug': node.metadata.get('mailserver/debug')
|
||||||
},
|
},
|
||||||
**file_options,
|
**file_options,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue