Al wrote:

> Am Freitag, 27. Januar 2006 23:10 schrieb Gary V:

>> Other than that, I can't figure out how your system would be doing
>> virus checks with virus checks globally bypassed.

> How can that be done, I mean " globally bypassed"

By setting:
@bypass_virus_checks_maps  = (1);  # DISABLE anti-virus code by default
@bypass_spam_checks_maps  = (1);  # DISABLE anti-spam code by default

It does exactly what it says, it says:
bypass virus checks = true
bypass spam checks = true

The default is false (undefined) for these, so you would comment out these
settings to enable checks. On my machine I commented out each of these
in turn an tested each time. Commenting out @bypass_virus_checks_maps
enabled virus checks and commenting out @bypass_spam_checks_maps
enabled spam checks.

> Here were these variables enabled by default:

> /usr/share/amavis/conf.d/20-package
> use strict;
> @bypass_virus_checks_maps  = (1);  # DISABLE anti-virus code by default
> @bypass_spam_checks_maps  = (1);  # DISABLE anti-spam code by default
> 1;  # insure a defined return

> I did _not_ edit /usr/share/amavis/conf.d/20-package

> /etc/amavis/conf.d/15-content_filter_mode
> use strict;
> @bypass_virus_checks_maps = (
>    \%bypass_virus_checks, [EMAIL PROTECTED], 
> \$bypass_virus_checks_re);
> @bypass_spam_checks_maps = (
>    \%bypass_spam_checks, [EMAIL PROTECTED], \$bypass_spam_checks_re);
> 1;  # insure a defined return

Now I understand; here is the difference. In this file as originally
provided in the package I installed, these two settings are commented
out. On your machine they are not. The last settings read are the last
settings used. Uncommenting these settings resulted in:

bypass virus checks = false
bypass spam checks = false

because all the items assigned to the virus and spam _maps are false
(undefined).

You edited /etc/amavis/conf.d/15-content_filter_mode where I did not.

Once again I was confused by their contorted methods: start by
bypassing checks in some file tucked away in some remote location
where people won't look (you can attest that you didn't know those
files were there) and then assign undefined values to the variables
later, comment them out and then tell people to undo what the
maintainers did before by enabling the undefined variables. Sheesh.

Gary V



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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