1
1
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2025-08-21 19:34:32 +02:00

Add environnement variable to change postfix destinations

This commit is contained in:
kbeaugrand 2016-12-30 17:12:18 +01:00
parent ffecc92e6a
commit 6df52796bb

@ -16,6 +16,7 @@ DEFAULT_VARS["ENABLE_FETCHMAIL"]="${ENABLE_FETCHMAIL:="0"}"
DEFAULT_VARS["ENABLE_LDAP"]="${ENABLE_LDAP:="0"}"
DEFAULT_VARS["ENABLE_SASLAUTHD"]="${ENABLE_SASLAUTHD:="0"}"
DEFAULT_VARS["SMTP_ONLY"]="${SMTP_ONLY:="0"}"
DEFAULT_VARS["POSTFIX_MYDESTINATION"]="${POSTFIX_MYDESTINATION:=""}"
DEFAULT_VARS["VIRUSMAILS_DELETE_DELAY"]="${VIRUSMAILS_DELETE_DELAY:="7"}"
DEFAULT_VARS["DMS_DEBUG"]="${DMS_DEBUG:="0"}"
##########################################################################
@ -86,6 +87,7 @@ function register_functions() {
_register_setup_function "_setup_security_stack"
_register_setup_function "_setup_postfix_aliases"
_register_setup_function "_setup_postfix_vhost"
_register_setup_function "_setup_postfix_mydestination"
if [ ! -z "$AWS_SES_HOST" -a ! -z "$AWS_SES_USERPASS" ]; then
_register_setup_function "_setup_postfix_relay_amazon_ses"
@ -534,6 +536,12 @@ function _setup_postfix_aliases() {
fi
}
function _setup_postfix_mydestination(){
notify 'task' 'Setting up Postfix My Destination'
postconf -e "mydestination=$POSTFIX_MYDESTINATION"
}
function _setup_dkim() {
notify 'task' 'Setting up DKIM'