I refered to the dimension of the file.. but it doesn't seem to have any
impact on the performance...

The link doesn't cause any problem to...

There isn't problems with comments ('#') too...

The only problem is the high load of the CPU... That I still haven't
resolved... :(

rocsca

----- Original Message ----- 
From: "Gary V" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, October 21, 2005 5:02 PM
Subject: Re: [AMaViS-user] Avoiding spam scan on message originating from my
network/s


> Rocco wrote:
>
> > # ln -s /etc/mail/relay-domains /var/amavis/local_domains
> > then I put in amavisd.conf
>
> > read_hash(\%local_domains, '/var/amavis/local_domains');
> > @bypass_spam_checks_maps =
> >      ( {map {$_ => !$local_domains{$_}} keys %local_domains}, 1);
>
> > In this manner, SA should not scan all the emails not addressed for any
of
> > my domains (and so all mails generated from my domains). Right?
> > Do you think that this work?
> > PS: The file /etc/mal/relay-domains contains 1710 rows, some of which
are
> > commented out (start with '#').  Can the '#' cause any problem? Is the
file
> > to big?
>
> If you are concerned about the comments, instead of the symbolic link,
> you could strip out comments and blank lines, and make a copy for
> amavisd-new to use. Something like this:
>
> grep -vE '^$|^#' /etc/mail/relay-domains > /var/amavis/local_domains
>
> But I think the symbolic link should be OK.
>
> >From http://www.ijs.si/software/amavisd/README.lookups.txt :
>
> "There is a subroutine read_hash() available for use in amavisd.conf.
> It can read keys from a plain text file, and load them into a Perl hash.
> Format of the text file: one address per line, anything from '#' to the
end
> of line is treated as a comment, but '#' within correctly quoted rfc2821
> addresses is not treated as a comment (e.g. a hash sign within
> "strange # \"foo\" address"@example.com is valid). Leading and trailing
> whitespace is discarded, empty lines (containing only whitespace and
comment)
> are ignored. Addresses are converted from quoted form into internal (raw)
> form and inserted as keys into a given hash, with a value of 1
> (true)."
>
> Gary V
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> 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/



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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