Davide,
> i'm trying to setup a policy banks in order to bypass spam scanning of
> outgoing mails for a remote postfix server.
> xxx.xxx.xxx.45 = amavis server
> xxx.xxx.xxx.62 = postfix server
>
> smtpd_recipient_restrictions =
> permit_sasl_authenticated,
> permit_mynetworks,
> reject_unauth_destination,
> check_client_access hash:/etc/postfix/amavis_internal
> content_filter = smtp-amavis:[xxx.xxx.xxx.45]:10024
> amavis_internal:
> xxx.xxx.xxx.62 FILTER smtp-amavis:[xxx.xxx.xxx.45]:10026
> $inet_socket_port = [10024,10026];
> $interface_policy{'10026'} = 'INTERNAL';
> @inet_acl = qw( 127/8 xxx.xxx.xxx.62 );
> $inet_socket_bind = undef;
> $forward_method = 'smtp:*:10025'; # where to forward checked mail
> $notify_method = $forward_method; # where to submit notifications
> $policy_bank{'INTERNAL'} = { # mail originating from the internal
> bypass_spam_checks_maps => [1], # don't spam-check outgoing mail
> bypass_banned_checks_maps => [1], # don't banned-check outgoing mail
> final_spam_destiny => D_PASS, # insure spam passes
> final_banned_destiny => D_PASS, # insure banned files pass
> };
> Mails sent by xxx.xxx.xxx.62 don't pass through the 10026 port of
> xxx.xxx.xxx.45 but through the 10024 of the amavis server.
> What's wrong?
If xxx.xxx.xxx.62 is talking to itself, it will likely use its IP
address of a loopback interface, i.e. 127.0.0.1, which will not match
your amavis_internal lookup table.
> @inet_acl = qw( 127/8 xxx.xxx.xxx.62 );
Btw, preferred syntax is 127.0.0.0/8, not 127/8.
Mark
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/