>> originating  recip. is local
>>       0             0                    can't happen (open relay)
>>       0             1                    inbound
>>       1             0                    outbound
>>       1             1                    internal-to-internal
>>
>> # a global setting, can be overridden by a policy bank,
>> # so in this case will apply only to inbound mail
>> #
>> @bypass_virus_checks_maps = ();
>>
>> # mail originating from our users, override global settings
>> #
>> $policy_bank{'ORIGINATING'} = {
>>   originating => 1,
>>   bypass_virus_checks_maps => [
>>     { '.mydomain1.org' => 0,  # internal-to-internal
>>        '.mydomain2.org' => 0,
>>        '.' => 1,  # skip the check for everybody else (outbound)
>>     } ],
>> };
>
> Btw, the shown example is just an illustration on how to deal
> with the 3(4) possibilities when needed.
>
> Assuming mailer is not an open relay, and for the task at hand
> (needing a setting for outbound mail), a single global setting
> of @bypass_virus_checks_maps suffices, because if recipient
> is non-local we know mail could only be originating from our
> users.
>
> @bypass_virus_checks_maps = (
>    { '.mydomain1.org' => 0,  # inbound or internal-to-internal
>       '.mydomain2.org' => 0,
>       '.' => 1,  # skip the check for everybody else (outbound)
>    } );
>

I have understood quite well your explanation. I have a problem using a
such approach. Infact, I have a long list of "mydomain" too. I maintain
domains through a database. But unfortunatly I can't figure out how to
build a such associative array.

PS: Amavisd-new natively tags as LOCAL some log's entries. If an entry is
tagged as LOCAL it mean that the associated message is either inbound or
internal-to-internal. Right? But how behaves Amavisd-new when face with a
message which has either local and non-local recipients?

thanks,

rocsca


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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