Mark wrote:

> Rocsca,

>> > @bypass_spam_checks_maps = ( [ "!.sttspa.it", "." ] );

> From Gary V:
>> I don't understand, I'm not seeing this.
>> From amavisd.conf-sample:
>> # a practical application: don't check outgoing mail for spam:
>> #   @bypass_spam_checks_maps = ( [ "!.$mydomain", "." ] );
>> Doesn't this act (only) on recipient domains?

> Yes it does act (only) on recipient address, so this should work
> (e.g. for recipient [EMAIL PROTECTED] the ".sttspa.it" would not match
> but the "." should, resulting in true, i.e. to bypass spam check)

Yes, it became clear to me 5 minutes after my post.

>> Sep 21 17:18:42 av3 amavis[15050]: (15050) Blocked SPAM, [10.3.252.117]
>> <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID:
>> <[EMAIL PROTECTED]>, Hits: 12.138, 5975 ms

> Check log (at log level 5) to see why [EMAIL PROTECTED] did not match
> the "." in  @bypass_spam_checks_maps = ( [ "!.sttspa.it", "." ] );
> it should have worked, i.e. bypassing spam check for mail
> sent to external recipients.

>   Mark

I think this was a test of MYNETS that failed. Rocsca mentioned that using:
@bypass_spam_checks_maps = ( [ "!.sttspa.it", "." ] );
did work, but Rocsca's concern was:

> 1) email can have a false originating email address so that kind of email
> could be wrongly not scanned...

This is not a problem, Rocsca, this will not happen. As shown above,
the rule is based on the recipient address, not the sender's address.
It means "if the recipient's domain is not sttspa.it, then bypass
spam check".

As Marco said:
http://marc.theaimsgroup.com/?l=amavis-user&m=112729297825841&w=2

Your other concern was:

> 2) I have too many domains so it could be error-prone to manage domain
> name..

This is more of a problem, but you can keep your list in a separate
file, and then use it like this:

@bypass_spam_checks_maps = (\read_hash("/var/amavis/enable_spam_checks"), 1);

The contents of the /var/amavis/enable_spam_checks file could read:

# We have set @bypass_spam_checks_maps = 
(\read_hash("/var/amavis/enable_spam_checks"), 1);
# which means no spam checks will be performed by default. If you would like to 
enable
# spam checks on a domain (and optionally subdomains) include the domain in
# this associative array using a 0 for the value (which would mean 
bypass=false).
# For example:
# .example.com 0
#
.sttspa.it 0


Then you could do this, if desired:
@bypass_banned_checks_maps = @bypass_header_checks_maps = 
@bypass_spam_checks_maps;

You would have to make sure all your domains are in the file, because
if they are not, they will not get scanned (they will only get scanned
for viruses).

I have not spent any time testing this, so if you decide to use it, please test 
it.

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/

Reply via email to