Hello, there was a mistake in what I reported before...
Really with this definition in /etc/amavisd.conf: @bypass_spam_checks_maps = ( [ "!.sttspa.it", "." ] ); All works fine, and following there is the demonstration... It follows three example of spam email sending with using the definition above: 1) internal->external (Not checked) Sep 22 12:11:33 av4 amavis[19337]: (19337) Passed CLEAN, [10.3.252.117] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID: <[EMAIL PROTECTED]>, Hits: -, 548 ms 2)external->internal (Checked) Sep 22 12:15:00 av4 amavis[20969]: (20969) Blocked SPAM, [193.70.192.90] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID: <[EMAIL PROTECTED]>, Hits: 18.257, 4201 ms 3)internal->internal(Cheked) Sep 22 12:16:18 av4 amavis[20969]: (20969) Blocked SPAM, [10.3.252.117] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID: <[EMAIL PROTECTED]>, Hits: 11.073, 3657 ms (BTW, I'ld like to understand why if bypass_spam_checks_maps works on recipient email address, then the definition above works on sender email address... Misterious!!!) So, clearly, the example in my previous email referenced to a situation where the definition above wasn't installed... :(( Now, Ild like to (in orther of preference): 1) not scan even internal-> internal email 2) select what email scan based on source IP address Any hint? BR, rocsca ----- Original Message ----- From: "Mark Martinec" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, September 22, 2005 10:47 AM Subject: Re: [AMaViS-user] Avoiding spam scan on message originating from my network/s > 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/ ------------------------------------------------------- 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/
