Hi,

I thought it would be sufficient to add spam_admin_maps in the MYNETS
policy bank, but I still don't get any alert mails.  Is there any
other setting I have to make?

Here is what I tried:

--------.--------.--------.--------.--------.--------.--------.--------
$policy_bank{'MYNETS'} = {
  originating => 1,  # is true in MYNETS by default, but let's make it explicit
  spam_tag_level_maps  => 5000.0,  # do not add spam info headers
  spam_tag2_level_maps => 5000.0,  # do not add 'spam detected' headers
  final_spam_destiny       => D_PASS,
  final_bad_header_destiny => D_PASS,
  final_virus_destiny      => D_DISCARD,
  virus_admin_maps => ["[EMAIL PROTECTED]"],   # alert of infected local hosts
  spam_admin_maps  => ["[EMAIL PROTECTED]"],   # alert of internal spam
  bypass_banned_checks_maps => [1],  # allow sending any file names and types
};

$virus_admin               = "[EMAIL PROTECTED]";  # notifications recip.
# $spam_admin              = "[EMAIL PROTECTED]";
--------.--------.--------.--------.--------.--------.--------.--------

I even tried uncommenting the global $spam_admin line, but didn't help.

Here the relevant (anonymized) parts of the logfile of a testmail with
the gtube string:
--------.--------.--------.--------.--------.--------.--------.--------
Apr 11 17:51:22 mail-gateway postfix/smtpd[4792]: connect from 
xxxx.yyyyyyy.de[192.168.1.253]
Apr 11 17:51:27 mail-gateway postfix/smtpd[4792]: 7F6CF84C1D6: 
client=xxxx.yyyyyyy.de[192.168.1.253]
Apr 11 17:51:34 mail-gateway postfix/cleanup[4795]: 7F6CF84C1D6: 
message-id=<[EMAIL PROTECTED]>
Apr 11 17:51:34 mail-gateway postfix/qmgr[4701]: 7F6CF84C1D6: from=<[EMAIL 
PROTECTED]>, size=985, nrcpt=1 (queue active)
Apr 11 17:51:34 mail-gateway amavis[4777]: (04777-01) ESMTP::10024 
/var/amavis/tmp/amavis-20080411T175134-04777: <[EMAIL PROTECTED]> -> <[EMAIL 
PROTECTED]> SIZE=985 Received: from mail-gateway.yyyyyyy.de ([127.0.0.1]) by 
localhost (mail-gateway.yyyyyyy.de [127.0.0.1]) (amavisd-new, port 10024) with 
ESMTP for <[EMAIL PROTECTED]>; Fri, 11 Apr 2008 17:51:34 +0200 (CEST)
Apr 11 17:51:34 mail-gateway amavis[4777]: (04777-01) Checking: s065WAau29dx 
MYNETS [192.168.1.253] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>
Apr 11 17:51:34 mail-gateway clamd[24758]: SelfCheck: Database status OK. 
Apr 11 17:51:35 mail-gateway postfix/smtpd[4800]: connect from 
localhost.localdomain[127.0.0.1]
Apr 11 17:51:35 mail-gateway postfix/smtpd[4800]: D70C084C277: 
client=localhost.localdomain[127.0.0.1]
Apr 11 17:51:35 mail-gateway postfix/cleanup[4795]: D70C084C277: 
message-id=<[EMAIL PROTECTED]>
Apr 11 17:51:35 mail-gateway postfix/smtpd[4800]: disconnect from 
localhost.localdomain[127.0.0.1]
Apr 11 17:51:35 mail-gateway postfix/qmgr[4701]: D70C084C277: from=<[EMAIL 
PROTECTED]>, size=1441, nrcpt=1 (queue active)
Apr 11 17:51:35 mail-gateway amavis[4777]: (04777-01) FWD via SMTP: <[EMAIL 
PROTECTED]> -> <[EMAIL PROTECTED]>,BODY=7BIT 250 2.6.0 Ok, id=04777-01, from 
MTA([127.0.0.1]:10025): 250 Ok: queued as D70C084C277
Apr 11 17:51:35 mail-gateway amavis[4777]: (04777-01) Passed CLEAN, MYNETS 
LOCAL [192.168.1.253] [192.168.1.253] <[EMAIL PROTECTED]> -> <[EMAIL 
PROTECTED]>, Message-ID: <[EMAIL PROTECTED]>, mail_id: s065WAau29dx, Hits: 
1001.776, size: 985, queued_as: D70C084C277, 1620 ms
Apr 11 17:51:35 mail-gateway postfix/smtp[4796]: 7F6CF84C1D6: to=<[EMAIL 
PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=9, status=sent (250 Ok: queued 
as D70C084C277)
Apr 11 17:51:35 mail-gateway postfix/qmgr[4701]: 7F6CF84C1D6: removed
Apr 11 17:51:36 mail-gateway postfix/smtpd[4792]: disconnect from 
xxxx.yyyyyyy.de[192.168.1.253]
Apr 11 17:51:48 mail-gateway postfix/smtp[4801]: D70C084C277: to=<[EMAIL 
PROTECTED]>, relay=blafoo, delay=13, status=sent (250 Mail accepted)
Apr 11 17:51:48 mail-gateway postfix/qmgr[4701]: D70C084C277: removed
--------.--------.--------.--------.--------.--------.--------.--------

It says "MYNETS LOCAL" so the policy_bank "MYNETS" should be active,
right?

It also says "Hits: 1001.776" so AMaViS recognized it as Spam and
should notify the spam_admin, right?

I wonder why it says "Passed CLEAN" however...
But probably that doesn't have anything to do with my problem.

Thanks for any hint!
 Andy.

-- 
 Bill Gates, Microsoft:  (from: <http://www.cantrip.org/nobugs.html>)
 "There are no significant bugs in our released software that any
  significant number of users want fixed."

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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