mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
Change variable name for Postgrey setup and add others
This commit is contained in:
parent
77143e6b24
commit
5167b3a623
@ -194,7 +194,7 @@ tools/editconf.py /etc/postfix/main.cf virtual_transport=lmtp:[127.0.0.1]:10025
|
|||||||
# whitelisted) then postfix does a DEFER_IF_REJECT, which results in all "unknown user" sorts of messages turning into #NODOC
|
# whitelisted) then postfix does a DEFER_IF_REJECT, which results in all "unknown user" sorts of messages turning into #NODOC
|
||||||
# "450 4.7.1 Client host rejected: Service unavailable". This is a retry code, so the mail doesn't properly bounce. #NODOC
|
# "450 4.7.1 Client host rejected: Service unavailable". This is a retry code, so the mail doesn't properly bounce. #NODOC
|
||||||
RECIPIENT_RESTRICTIONS=permit_sasl_authenticated,permit_mynetworks,\"reject_rbl_client zen.spamhaus.org\",reject_unlisted_recipient
|
RECIPIENT_RESTRICTIONS=permit_sasl_authenticated,permit_mynetworks,\"reject_rbl_client zen.spamhaus.org\",reject_unlisted_recipient
|
||||||
if [ $NO_GREYLISTING != "1" ]; then
|
if [ $GREYLISTING != "1" ]; then
|
||||||
RECIPIENT_RESTRICTIONS=${RECIPIENT_RESTRICTIONS},\"check_policy_service inet:127.0.0.1:10023\"
|
RECIPIENT_RESTRICTIONS=${RECIPIENT_RESTRICTIONS},\"check_policy_service inet:127.0.0.1:10023\"
|
||||||
fi
|
fi
|
||||||
tools/editconf.py /etc/postfix/main.cf \
|
tools/editconf.py /etc/postfix/main.cf \
|
||||||
|
@ -42,18 +42,20 @@ else
|
|||||||
FIRST_TIME_SETUP=1
|
FIRST_TIME_SETUP=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${DEFAULT_HTTP_SSL_PORT:-}" ]; then
|
if [ -z "${HTTP_SSL_PORT:-}" ]; then
|
||||||
HTTP_SSL_PORT=443
|
HTTP_SSL_PORT=$([[ -z "${DEFAULT_HTTP_SSL_PORT:-}" ]] && echo "443" || echo "$DEFAULT_HTTP_SSL_PORT")
|
||||||
else
|
|
||||||
HTTP_SSL_PORT=$DEFAULT_HTTP_SSL_PORT
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${DEFAULT_NO_GREYLISTING:-}" ]; then
|
if [ -z "${GREYLISTING:-}" ]; then
|
||||||
NO_GREYLISTING=0
|
GREYLISTING=$([[ -z "${DEFAULT_GREYLISTING:-}" ]] && echo "1" || echo "$DEFAULT_GREYLISTING")
|
||||||
elif (($DEFAULT_NO_GREYLISTING > 0)); then
|
fi
|
||||||
NO_GREYLISTING=1
|
|
||||||
else
|
if [ -z "${POSTSRSD:-}" ]; then
|
||||||
NO_GREYLISTING=0
|
POSTSRSD=$([[ -z "${DEFAULT_POSTSRSD:-}" ]] && echo "0" || echo "$DEFAULT_POSTSRSD")
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${POLICY_SPF:-}" ]; then
|
||||||
|
POLICY_SPF=$([[ -z "${DEFAULT_POLICY_SPF:-}" ]] && echo "0" || echo "$DEFAULT_POLICY_SPF")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Put a start script in a global location. We tell the user to run 'mailinabox'
|
# Put a start script in a global location. We tell the user to run 'mailinabox'
|
||||||
@ -108,7 +110,9 @@ PUBLIC_IPV6=$PUBLIC_IPV6
|
|||||||
PRIVATE_IP=$PRIVATE_IP
|
PRIVATE_IP=$PRIVATE_IP
|
||||||
PRIVATE_IPV6=$PRIVATE_IPV6
|
PRIVATE_IPV6=$PRIVATE_IPV6
|
||||||
HTTP_SSL_PORT=$HTTP_SSL_PORT
|
HTTP_SSL_PORT=$HTTP_SSL_PORT
|
||||||
NO_GREYLISTING=$NO_GREYLISTING
|
GREYLISTING=$GREYLISTING
|
||||||
|
POSTSRSD=$POSTSRSD
|
||||||
|
POLICY_SPF=$POLICY_SPF
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Start service configuration.
|
# Start service configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user