Rocco wrote:
> Hello,
> I have an urgency to solve the problem that I have exposed in this thread...
> Infact I realize that whith the rule:
> @bypass_spam_checks_maps = ( [ "!.sttspa.it", "." ] );
> I avoid that amavisd-new not scan the email not addressed to my domain
> (sttspa.it) and so really it does not scan all the emails destined to all
> other my domains... :(
I mentioned this twice:
"As I mentioned before, make sure all your domains are listed in the file,
ones that are not will be bypassed."
> I'ld like to know if I can use '/etc/mail/relay-domains' to obtain the list
> of my domains... In practice, I create a symbolic link:
If the format is one domain per line, (example.com) and your amavisd-new
user can read the file, then this should work.
> # 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?
It will not spam scan mail addressed to a domain that is not listed in your
file, it will spam scan mail addressed to domains listed in your file.
> 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?
I think comments are OK. I don't think *that* size will be a problem. It
will use a little memory, and amavisd-new will take a tiny bit more time
per message because it has to look up the recipient's domain in that
large list, but I don't think it will have much impact at all. You will
have to reload amavisd-new to see the change. Keep an eye on your logs.
Remember that you must comment out @local_domains_maps if you use
this.
> Thanks,
> rocsca
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/