mailserver eebug metadata
This commit is contained in:
parent
1b2926a24d
commit
0e97f9e596
3 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,7 @@ database_password = repo.vault.password_for(f'{node.name} db mailserver')
|
|||
|
||||
defaults = {
|
||||
'mailserver': {
|
||||
'debug': False,
|
||||
'maildir': '/var/vmail',
|
||||
'database': {
|
||||
'host': '127.0.0.1', # dont use localhost
|
||||
|
|
|
@ -37,6 +37,9 @@ smtpd_tls_auth_only = yes
|
|||
smtpd_tls_cert_file = /var/lib/dehydrated/certs/${hostname}/fullchain.pem
|
||||
smtpd_tls_key_file = /var/lib/dehydrated/certs/${hostname}/privkey.pem
|
||||
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
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ files = {
|
|||
'content_type': 'mako',
|
||||
'context': {
|
||||
'hostname': node.metadata.get('mailserver/hostname'),
|
||||
'debug': node.metadata.get('mailserver/debug')
|
||||
},
|
||||
**file_options,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue