Got it to work including the smtp_bind_address!
first edit /etc/amavisd.conf
To allow connections from the IP you have set as smtp_bind_address add:
Code:
@inet_acl = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10 IP4/32 );
And then to bind amavisd to all listen to all interfaces:
Code:
$inet_socket_bind = undef;
Now we also need to set that amavisd resends the scanned e-mail to the correct interface because we later will specify this in the master.cf file
Uncomment the existing lines and add your IP4
Code:
$notify_method = 'smtp:[IP4]:10025';
$forward_method = 'smtp:[IP4]:10025';
Now we edit main.cf to make the return and scanned mail send listen on the IP4:
Code:
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
IP4:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=IP4
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=IP4
Afterwards we can add smtp_bind_address in /etc/postfix/main.cf
This will work combined with amavis.
Recent comments
7 hours 9 min ago
13 hours 50 min ago
17 hours 41 min ago
19 hours 19 min ago
1 day 3 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 17 hours ago
1 day 22 hours ago
1 day 22 hours ago