Rocsca,

> > > What is the best (and simple) way to avoid spam scan for all email
> > > messages destined to a particular recipient?
> > @bypass_spam_checks_maps = ({
> >   '[email protected]'   => 1,
> >   '[email protected]'   => 1,
> >   '.office.example.net' => 1,
> > });
> > @spam_lovers_maps = @bypass_spam_checks_maps;

> I have done but I'm not sure that all woks as aspected..
>
> Should the Spam SCAN bypassed enterely?

Yes, if _all_ recipients of a message match @bypass_spam_checks_maps.

> And  I the mail cointain a virus, it will be catched?

Yes, @bypass_spam_checks_maps only affects spam checks
(there is a @bypass_virus_checks_maps which affects AV scanning).

> So I have to have an amavis entry for each 
> email destined to '[email protected]' as well.. Right?

???

...For each recipient which you want to have a setting
different from a catchall default. You can have a default
set to true and only list recipients for which you
want a false result of a lookup, or vice versa:

@bypass_spam_checks_maps = ({
  '[email protected]'   => 1,
  '[email protected]'   => 1,
  '.office.example.net' => 1,
  '.' => 0,  # false for everybody else
});

@bypass_spam_checks_maps = ({
  '[email protected]'   => 0,
  '[email protected]'   => 0,
  '.' => 1,  # true for everybody else
});


> Here my proof:
>
> av1:~ # cat /var/log/mail | grep D8AC33E001A
> Dec 12 18:33:18 av1 postfix/smtp[17126]: D370B226F9C:
> to=<[email protected]>, 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=<[email protected]>
> Dec 12 18:33:17 av1 postfix/qmgr[12210]: D370B226F9C:
> from=<[email protected]>, size=934, nrcpt=1 (queue active)
> Dec 12 18:33:18 av1 postfix/smtp[17126]: D370B226F9C:
> to=<[email protected]>, 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..

Are you saying that a message never reached amavisd?
This is then a Postfix setup question, and has nothing
to do with @bypass_spam_checks_maps, which only affects
messages which do reach amavisd.

  Mark

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