mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-16 12:24:50 +02:00
add POSTFIX_DSN
This commit is contained in:
parent
aae42fae9b
commit
d5bd0e9117
5 changed files with 24 additions and 1 deletions
|
@ -57,6 +57,15 @@ EOF
|
|||
__postfix__log 'trace' "Configuring virtual mailbox size limit to '${POSTFIX_MAILBOX_SIZE_LIMIT}'"
|
||||
postconf "virtual_mailbox_limit = ${POSTFIX_MAILBOX_SIZE_LIMIT}"
|
||||
|
||||
if [[ ${POSTFIX_DSN} -eq 1 ]]; then
|
||||
__postfix__log 'trace' 'Disabling DSN for unauthenticated users'
|
||||
sedfile -i -E '/^submissions?\>/a\ -o smtpd_discard_ehlo_keyword_address_maps=' /etc/postfix/master.cf
|
||||
postconf 'smtpd_discard_ehlo_keyword_address_maps = cidr:/etc/postfix/esmtp_access'
|
||||
elif [[ ${POSTFIX_DSN} -eq 2 ]]; then
|
||||
__postfix__log 'trace' 'Disabling DSN completely'
|
||||
postconf 'smtpd_discard_ehlo_keywords = silent-discard, dsn'
|
||||
fi
|
||||
|
||||
if [[ ${POSTFIX_REJECT_UNKNOWN_CLIENT_HOSTNAME} -eq 1 ]]; then
|
||||
__postfix__log 'trace' 'Enabling reject_unknown_client_hostname to dms_smtpd_sender_restrictions'
|
||||
sedfile -i -E \
|
||||
|
|
|
@ -115,6 +115,7 @@ function __environment_variables_general_setup() {
|
|||
VARS[DOVECOT_MAILBOX_FORMAT]="${DOVECOT_MAILBOX_FORMAT:=maildir}"
|
||||
VARS[DOVECOT_TLS]="${DOVECOT_TLS:=no}"
|
||||
|
||||
VARS[POSTFIX_DSN]="${POSTFIX_DSN:=0}"
|
||||
VARS[POSTFIX_DAGENT]="${POSTFIX_DAGENT:=}"
|
||||
VARS[POSTFIX_INET_PROTOCOLS]="${POSTFIX_INET_PROTOCOLS:=all}"
|
||||
VARS[POSTFIX_MAILBOX_SIZE_LIMIT]="${POSTFIX_MAILBOX_SIZE_LIMIT:=0}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue