With the new penpals feature in 2.4.2, I thought it might be time
to turn on sql logging and pass my outgoing mail through
amavisd-new (previously, I was only passing incoming mail).
But I'd like to bypass virus and spamchecking for outgoing
mail and I can't seem to make that work. Perhaps someone sees
an obvious screwup?
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
10.0.0.0/8 );
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
bypass_spam_checks_maps => [1], # or: don't spam-check internal
mail
bypass_banned_checks_maps => [1], # don't banned-check internal mail
bypass_virus_checks_maps => [1], # don't banned-check internal mail
bypass_header_checks_maps => [1], # don't banned-check internal mail
terminate_dsn_on_notify_success => 0,
final_spam_destiny => D_PASS,
final_banned_destiny => D_PASS,
};
The MTA setup is fairly typical postfix 2.1.5 (Debian sarge), with this
in master.cf (snipped):
smtp inet n - - - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024
10.1.0.5:25 inet n - - - - smtpd
-o content_filter=smtp-amavis:[127.0.0.1]:10024
pickup fifo n - - 60 1 pickup
-o content_filter=smtp-amavis:[127.0.0.1]:10024
smtp-amavis unix - - n - 4 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - 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=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
This is in main.cf:
smtpd_authorized_xforward_hosts = 127.0.0.1/8 10.0.0.1/8
lmtp_send_xforward_command = yes
smtp_send_xforward_command = yes
I actually think (based on amavisd debugging) that postfix is not sending
XFORWARD when it connects to amavisd-new, but I can't figure out why
that would be. amavisd-new advertises XFORWARD capability, and
other hosts try to use it, but postfix's lmtp client doesn't seem
to be trying, and it should for postfix 2.1, from what I can tell.
I also realize that this is more of a postfix question than
an amavisd-new one, but I hoped someone may have come across
this and have the quick fix.
Thanks in advance,
Alan
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Alan Schwartz <[EMAIL PROTECTED]>
Author/Co-author of: "Managing Mailing Lists", "SpamAssassin",
"Stopping Spam", and "Practical Unix & Internet Security, 3rd Ed"
Published by O'Reilly Media, Inc. (http://www.oreilly.com)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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/