Hi *,
i'm trying to setup a policy banks in order to bypass spam scanning of
outgoing mails for a remote postfix server.

Following my configs:

xxx.xxx.xxx.45 = amavis server
xxx.xxx.xxx.62 = postfix server

main.cf:
----------------------
<cut>
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
</cut>
----------------------

amavis_internal:
----------------------
<cut>
xxx.xxx.xxx.62 FILTER smtp-amavis:[xxx.xxx.xxx.45]:10026
</cut>
----------------------

master.cf
----------------------
<cut>
smtp-amavis unix -      -       n       -       2  lmtp    
     -o smtp_data_done_timeout=1200 
     -o disable_dns_lookups=yes
     -o smtp_send_xforward_command=yes

10025 inet n    -       n       -       -  smtpd
    -o content_filter=
</cut>
----------------------

amavis conf:
----------------------
<cut>
$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
server
  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
};
</cut>
----------------------

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?

-- 
Davide Corio                                davide.corio<at>redomino.com
Redomino S.r.l.            C.so Monte Grappa 90/b - 10145 Torino - Italy
Tel: +39 011 19502871 - Fax: +39 011 19791122 - http://www.redomino.com/


-------------------------------------------------------------------------
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/

Reply via email to