> > What is the best (and simple) way to avoid spam scan for all email > > messages destined to a particular recipient? > > @bypass_spam_checks_maps = ({ > 'us...@example.com' => 1, > 'us...@example.com' => 1, > '.office.example.net' => 1, > }); > > @spam_lovers_maps = @bypass_spam_checks_maps; > > > Instead of a hash lookup, you can use an ACL list, > regexp-based lookup, SQL or LDAP, see README.lookups. > > And example using a list as a lookup mechanism: > > @bypass_spam_checks_maps = ([ > qw(us...@example.com us...@example.com .office.example.net) > ]); > @spam_lovers_maps = @bypass_spam_checks_maps; >
Thanks Mark, I have done but I'm not sure that all woks as aspected.. Should the Spam SCAN bypassed enterely? And I the mail cointain a virus, it will be catched? So I have to have an amavis entry for each email destined to 'us...@example.com' as well.. Right? Here my proof: av1:~ # cat /var/log/mail | grep D8AC33E001A Dec 12 18:33:18 av1 postfix/smtp[17126]: D370B226F9C: to=<us...@example.com>, relay=destination[xxx.xxx.178.161]:25, delay=0.33, delays=0.02/0/0.19/0.12, dsn=2.0.0, status=sent (250 Ok: queued as D8AC33E001A) av1:~ # cat /var/log/mail | grep D370B226F9C Dec 12 18:33:17 av1 postfix/pickup[16075]: D370B226F9C: uid=0 from=<root> Dec 12 18:33:17 av1 postfix/cleanup[4524]: D370B226F9C: message-id=<gtube1.1010...@example.net> Dec 12 18:33:17 av1 postfix/qmgr[12210]: D370B226F9C: from=<r...@av1.domain>, size=934, nrcpt=1 (queue active) Dec 12 18:33:18 av1 postfix/smtp[17126]: D370B226F9C: to=<us...@example.com>, relay=destination[xxx.xxx.178.161]:25, delay=0.33, delays=0.02/0/0.19/0.12, dsn=2.0.0, status=sent (250 Ok: queued as D8AC33E001A) Dec 12 18:33:18 av1 postfix/qmgr[12210]: D370B226F9C: removed Amavisd-new is skipped at all. More over postfix bounce to post maser even if message is correctly sent to the MTA of the recipient.. I'm a little bit puzzled. rocsca ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/