mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
This commit is contained in:
parent
8f48d0536f
commit
c8728eab8a
10
.env.dist
10
.env.dist
|
@ -101,6 +101,16 @@ ENABLE_POSTFIX_VIRTUAL_TRANSPORT=
|
||||||
# etc.
|
# etc.
|
||||||
POSTFIX_DAGENT=
|
POSTFIX_DAGENT=
|
||||||
|
|
||||||
|
# Set the mailbox size limit for all users. If set to zero, the size will be unlimited (default).
|
||||||
|
#
|
||||||
|
# empty => 0
|
||||||
|
POSTFIX_MAILBOX_SIZE_LIMIT=
|
||||||
|
|
||||||
|
# Set the message size limit for all users. If set to zero, the size will be unlimited (not recommended!)
|
||||||
|
#
|
||||||
|
# empty => 1048576 (10 MB)
|
||||||
|
POSTFIX_MESSAGE_SIZE_LIMIT=
|
||||||
|
|
||||||
# Enables a report being sent (created by pflogsumm) on a regular basis.
|
# Enables a report being sent (created by pflogsumm) on a regular basis.
|
||||||
# **0** => Report emails are disabled
|
# **0** => Report emails are disabled
|
||||||
# 1 => Using POSTMASTER_ADDRESS as the recipient
|
# 1 => Using POSTMASTER_ADDRESS as the recipient
|
||||||
|
|
13
README.md
13
README.md
|
@ -190,6 +190,7 @@ services:
|
||||||
- SASLAUTHD_LDAP_PASSWORD=admin
|
- SASLAUTHD_LDAP_PASSWORD=admin
|
||||||
- SASLAUTHD_LDAP_SEARCH_BASE=ou=people,dc=localhost,dc=localdomain
|
- SASLAUTHD_LDAP_SEARCH_BASE=ou=people,dc=localhost,dc=localdomain
|
||||||
- POSTMASTER_ADDRESS=postmaster@localhost.localdomain
|
- POSTMASTER_ADDRESS=postmaster@localhost.localdomain
|
||||||
|
- POSTFIX_MESSAGE_SIZE_LIMIT=100000000
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
|
@ -303,6 +304,18 @@ Enabled by ENABLE_POSTFIX_VIRTUAL_TRANSPORT. Specify the final delivery of postf
|
||||||
- `lmtp:<kopano-host>:2003` (use kopano as mailstore)
|
- `lmtp:<kopano-host>:2003` (use kopano as mailstore)
|
||||||
- etc.
|
- etc.
|
||||||
|
|
||||||
|
##### POSTFIX\_MAILBOX\_SIZE\_LIMIT
|
||||||
|
|
||||||
|
Set the mailbox size limit for all users. If set to zero, the size will be unlimited (default).
|
||||||
|
|
||||||
|
- **empty** => 0 (no limit)
|
||||||
|
|
||||||
|
##### POSTFIX\_MESSAGE\_SIZE\_LIMIT
|
||||||
|
|
||||||
|
Set the message size limit for all users. If set to zero, the size will be unlimited (not recommended!)
|
||||||
|
|
||||||
|
- **empty** => 1048576 (10 MB)
|
||||||
|
|
||||||
##### ENABLE_MANAGESIEVE
|
##### ENABLE_MANAGESIEVE
|
||||||
|
|
||||||
- **empty** => Managesieve service disabled
|
- **empty** => Managesieve service disabled
|
||||||
|
|
|
@ -36,6 +36,8 @@ services:
|
||||||
- VIRUSMAILS_DELETE_DELAY=${VIRUSMAILS_DELETE_DELAY}
|
- VIRUSMAILS_DELETE_DELAY=${VIRUSMAILS_DELETE_DELAY}
|
||||||
- ENABLE_POSTFIX_VIRTUAL_TRANSPORT=${ENABLE_POSTFIX_VIRTUAL_TRANSPORT}
|
- ENABLE_POSTFIX_VIRTUAL_TRANSPORT=${ENABLE_POSTFIX_VIRTUAL_TRANSPORT}
|
||||||
- POSTFIX_DAGENT=${POSTFIX_DAGENT}
|
- POSTFIX_DAGENT=${POSTFIX_DAGENT}
|
||||||
|
- POSTFIX_MAILBOX_SIZE_LIMIT=${POSTFIX_MAILBOX_SIZE_LIMIT}
|
||||||
|
- POSTFIX_MESSAGE_SIZE_LIMIT=${POSTFIX_MESSAGE_SIZE_LIMIT}
|
||||||
- ENABLE_SPAMASSASSIN=${ENABLE_SPAMASSASSIN}
|
- ENABLE_SPAMASSASSIN=${ENABLE_SPAMASSASSIN}
|
||||||
- SA_TAG=${SA_TAG}
|
- SA_TAG=${SA_TAG}
|
||||||
- SA_TAG2=${SA_TAG2}
|
- SA_TAG2=${SA_TAG2}
|
||||||
|
|
|
@ -19,6 +19,8 @@ DEFAULT_VARS["ENABLE_POSTGREY"]="${ENABLE_POSTGREY:="0"}"
|
||||||
DEFAULT_VARS["POSTGREY_DELAY"]="${POSTGREY_DELAY:="300"}"
|
DEFAULT_VARS["POSTGREY_DELAY"]="${POSTGREY_DELAY:="300"}"
|
||||||
DEFAULT_VARS["POSTGREY_MAX_AGE"]="${POSTGREY_MAX_AGE:="35"}"
|
DEFAULT_VARS["POSTGREY_MAX_AGE"]="${POSTGREY_MAX_AGE:="35"}"
|
||||||
DEFAULT_VARS["POSTGREY_TEXT"]="${POSTGREY_TEXT:="Delayed by postgrey"}"
|
DEFAULT_VARS["POSTGREY_TEXT"]="${POSTGREY_TEXT:="Delayed by postgrey"}"
|
||||||
|
DEFAULT_VARS["POSTFIX_MESSAGE_SIZE_LIMIT"]="${POSTFIX_MESSAGE_SIZE_LIMIT:="1048576"}" # 10 MB by default
|
||||||
|
DEFAULT_VARS["POSTFIX_MAILBOX_SIZE_LIMIT"]="${POSTFIX_MAILBOX_SIZE_LIMIT:="0"}" # no limit by default
|
||||||
DEFAULT_VARS["ENABLE_SASLAUTHD"]="${ENABLE_SASLAUTHD:="0"}"
|
DEFAULT_VARS["ENABLE_SASLAUTHD"]="${ENABLE_SASLAUTHD:="0"}"
|
||||||
DEFAULT_VARS["SMTP_ONLY"]="${SMTP_ONLY:="0"}"
|
DEFAULT_VARS["SMTP_ONLY"]="${SMTP_ONLY:="0"}"
|
||||||
DEFAULT_VARS["DMS_DEBUG"]="${DMS_DEBUG:="0"}"
|
DEFAULT_VARS["DMS_DEBUG"]="${DMS_DEBUG:="0"}"
|
||||||
|
@ -123,6 +125,7 @@ function register_functions() {
|
||||||
_register_setup_function "_setup_postfix_vhost"
|
_register_setup_function "_setup_postfix_vhost"
|
||||||
_register_setup_function "_setup_postfix_dhparam"
|
_register_setup_function "_setup_postfix_dhparam"
|
||||||
_register_setup_function "_setup_postfix_postscreen"
|
_register_setup_function "_setup_postfix_postscreen"
|
||||||
|
_register_setup_function "_setup_postfix_sizelimits"
|
||||||
|
|
||||||
if [ "$SPOOF_PROTECTION" = 1 ]; then
|
if [ "$SPOOF_PROTECTION" = 1 ]; then
|
||||||
_register_setup_function "_setup_spoof_protection"
|
_register_setup_function "_setup_spoof_protection"
|
||||||
|
@ -653,6 +656,13 @@ function _setup_postfix_postscreen() {
|
||||||
-e "s/postscreen_bare_newline_action = enforce/postscreen_bare_newline_action = $POSTSCREEN_ACTION/" /etc/postfix/main.cf
|
-e "s/postscreen_bare_newline_action = enforce/postscreen_bare_newline_action = $POSTSCREEN_ACTION/" /etc/postfix/main.cf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _setup_postfix_sizelimits() {
|
||||||
|
notify 'inf' "Configuring postfix message size limit"
|
||||||
|
postconf -e "message_size_limit = ${DEFAULT_VARS["POSTFIX_MESSAGE_SIZE_LIMIT"]}"
|
||||||
|
notify 'inf' "Configuring postfix mailbox size limit"
|
||||||
|
postconf -e "mailbox_size_limit = ${DEFAULT_VARS["POSTFIX_MAILBOX_SIZE_LIMIT"]}"
|
||||||
|
}
|
||||||
|
|
||||||
function _setup_spoof_protection () {
|
function _setup_spoof_protection () {
|
||||||
notify 'inf' "Configuring Spoof Protection"
|
notify 'inf' "Configuring Spoof Protection"
|
||||||
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf
|
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf
|
||||||
|
|
Loading…
Reference in a new issue