First of all,  many thanks Gary for your answer.

The following definition:

>> @bypass_spam_checks_maps =
>>      ( {map {$_ => !$local_domains{$_}} keys %local_domains}, 1);

garantees me that all outgoing message (more precisely, all originating
message from my domains except 'internal-to-internal') will not be
scanned...

So if I modify the above definition in this manner:

>> @bypass_spam_checks_maps =
>>      (example.com,{map {$_ => !$local_domains{$_}} keys %local_domains},
1);

# where 'example.com' is one of my local domain

I obtain that all message destined to 'example.com' will not be scanned...

But I dont want that the message for one domain will not be scan, but I 'ld
like that all spam messages (destined to that domain) are forwarded to a
particular mail address of that domain (e.g.: [EMAIL PROTECTED]).

PS: Note that I dont quarantine email... and I wouldnt to activate this
feauture in future..

Thanks,

rocsca


----- Original Message ----- 
From: "Gary V" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 09, 2005 10:29 PM
Subject: Re: [AMaViS-user] Redirect all spam for one domain into a mailbox


> Rocco wrote:
>
> > Hello,
>
> > with amavisd-new it is quite simple to avoid that all messages for one
> > domain are not scanned for spam. But I'ld like that every message for
one
> > domain is scanned and that if one message is considered SPAM then it
must be
> > forwarded to a special mailbox.
>
> > Someone can give me an hint?
> > thanks,
> > rocsca
>
> If you are using this method to bypass spam checks for mail not addressed
> to domains listed in /var/amavis/local_domains ('outbound' mail):
>
> >> read_hash(\%local_domains, '/var/amavis/local_domains');
>
> >> @bypass_spam_checks_maps =
> >>      ( {map {$_ => !$local_domains{$_}} keys %local_domains}, 1);
>
> Then I don't think you can select one that will not bypass spam checks
> for mail addressed to recipients outside your local_domains. I'm
> fairly sure you would have to discontinue this for all domains if you
> want to scan 'outbound' mail. You would have to comment out the
> @bypass lines, but you could keep the read_hash line.
>
>
> For the quarantine, use spam_quarantine_to_maps in addition to
> $spam_quarantine_to. Place something like this after
> your $spam_quarantine_to setting:
>
> @spam_quarantine_to_maps = (
>   { '.example.com' => '[EMAIL PROTECTED]',  # this domain wants their own
>     '.' => $spam_quarantine_to,  # for everybody else use a global default
>   }
> );
>
> Gary V
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> 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/



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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