From 147ed4db6f927a936ed64bc4273d1353c6062b1a Mon Sep 17 00:00:00 2001 From: Val Date: Sun, 26 Jul 2015 23:55:38 +0100 Subject: [PATCH] Changed mynetworks filter to be more general --- email_core/boot.d/amavis | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/email_core/boot.d/amavis b/email_core/boot.d/amavis index c591e84..bf3e3b8 100644 --- a/email_core/boot.d/amavis +++ b/email_core/boot.d/amavis @@ -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