Changed mynetworks filter to be more general
This commit is contained in:
parent
16bd5e936f
commit
147ed4db6f
@ -49,10 +49,8 @@ function add_amavis () {
|
||||
echo " -o smtpd_recipient_restrictions=permit_mynetworks,reject" >> $POSTFIX_MASTER_CF
|
||||
echo " -o smtpd_data_restrictions=reject_unauth_pipelining" >> $POSTFIX_MASTER_CF
|
||||
echo " -o smtpd_end_of_data_restrictions=" >> $POSTFIX_MASTER_CF
|
||||
# Painfull way to get amavis IP
|
||||
amavis_ip=$(getent hosts amavis | awk '{print $1}')
|
||||
echo " -o mynetworks=127.0.0.0/8,$amavis_ip" >> $POSTFIX_MASTER_CF
|
||||
|
||||
# Using 24bit netmask on private ip range 172.x.x.x that Docker apparently uses
|
||||
echo " -o mynetworks=127.0.0.0/8,172.0.0.0/24" >> $POSTFIX_MASTER_CF
|
||||
echo " -o smtpd_error_sleep_time=0" >> $POSTFIX_MASTER_CF
|
||||
echo " -o smtpd_soft_error_limit=1001" >> $POSTFIX_MASTER_CF
|
||||
echo " -o smtpd_hard_error_limit=1000" >> $POSTFIX_MASTER_CF
|
||||
|
Loading…
Reference in New Issue
Block a user