I added the same logging functionality to dnsbl and rhsbl to see rejected
mails by this plugins as well (i use this to check for false positives, 
it gives me a better feeling to have logged this rejects). I also slightly
fine-tuned the format printed out by spamassassin and clamav.

Log entry examples (wrapped for the mail).

  Sep 19 14:05:10 mir qpsmtp: 11504 clamav plugin: Rejected Virus:
    from <[EMAIL PROTECTED]> rcpt <[EMAIL PROTECTED]>
    client 'localhost [127.0.0.1]' virus 'Worm.Bagle.Gen-1 '

  Sep 19 14:00:46 mir qpsmtp: 11252 dnsbl plugin: Rejected Host:
    from <[EMAIL PROTECTED]> rcpt <[EMAIL PROTECTED]>
    client 'usr-10651.dial-in.ttnet.net.tr [212.156.169.156]'
    reason 'Dynamic IP Address See: http://www.dnsbl.sorbs.net/
      lookup.shtml?212.156.169.156'

  Sep 19 14:04:33 mir qpsmtp: 11313 rhsbl plugin: Rejected Domain:
    from <[EMAIL PROTECTED]> rcpt <[EMAIL PROTECTED]>
    client 'eris.keleos.net [82.165.32.168]'
    reason 'mail from does not accept bounces. This violates RFC
      821/2505/2821, see http://www.rfc-ignorant.org/'

  Sep 19 14:09:50 zeus qpsmtpd: 14063 spamassassin plugin: Rejected Spam:
    from <[EMAIL PROTECTED]>
    rcpt <[EMAIL PROTECTED]>
    client 'wbar17.lax1-4.27.42.225.lax1.dsl-verizon.net [4.27.42.225]'
    score 15.5

Find the patches at http://qpsmtpd.kju.de/qpsmtpd/diffs/reject_logging/

-kju

-- 
      It's an insane world, but i'm proud to be a part of it. -- Bill Hicks

Reply via email to