Rocco,
> > # a practical application: don't check outgoing mail for spam:
> But this comment is too clear for me: It says that It disable spam for
> outgoing mail... So I thought that this set does what I need! :(
It does exactly what it say. It affects outgoing mail.
It does not affect all-internal mail, because sender address can not be
trusted and therefore can not be used to decide if mail is internal to
internal.
To affect all mail originating from inside (which is both the
internal to external, and internal to internal), the only reliable way
is to base a check on a client IP address (or some other reliable
information like TLS) determined by MTA. The MYNETS / XFORWARD
combination is most handy, but such information can be passed from
MTA to amavisd by sending such mail for checking on a dedicated
amavisd port where another policy bank would be waiting
(or even bypassing amavisd entirely and sending directly to MTA-TX).
In the absence of the information from MTA that the client is
internal (or otherwise trusted), the next best thing to do is
to use @bypass_spam_checks_maps = ( [ "!.$mydomain", "." ] );
From Gary V:
> @bypass_spam_checks_maps = (\read_hash("/var/amavis/enable_spam_checks"),1);
No backslash there, the read_hash will return a reference to a hash:
@bypass_spam_checks_maps = (read_hash("/var/amavis/enable_spam_checks"), 1);
Mark
-------------------------------------------------------
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/