darold / sendmailanalyzer

Sendmail log Analyzer is a tool to monitor sendmail usage and generate HTML and graph reports. It reports all you ever wanted to know about email trafic on your network. You can also use it in ISP environment with per domain and per mailbox report.
http://sendmailanalyzer.darold.net/
GNU General Public License v3.0
76 stars 13 forks source link

policyd-weight support #11

Closed ms217 closed 10 years ago

ms217 commented 10 years ago

Hi! we are using sendmailanalyzer on most of our mailservers and really like the benefits of this software to analyze the mailflow.

However, we are using on a couple machines also policyd-weight to fight spam. policyd-weight is a policy-service for postfix which works pretty well.

On such machines the policyd-weight maillog records are being counted as Syserr. So, is it possible to add support to sendmailanalyzer, or alternatively exclude such messages from counting as Syserror?

Some examples of policyd:

postfix/policyd-weight[8552]: weighted check:  IN_DYN_PBL_SPAMHAUS=3 IN_SBL_XBL_SPAMHAUS=4 IN_SPAMCOP=2 IN_BARRACUDA=4; <client=1-163-218-184.dynamic.hinet.net[1.163.218.184]> <helo=ss-a959f2b015ee> <from=coltpunk@wikimedia.org> <to=xxx.xxx@xxx.org>; rate: 13
postfix/policyd-weight[647]: decided action=550 Mail appeared to be SPAM or forged. Ask your Mail/DNS-Administrator to correct HELO and DNS MX settings or to get removed from DNSBLs (multirecipient mail); <client=unknown[178.23.204.126]> <helo=host126-204.net23-178.net.connetti.it> <from=fax-021213-voice@webde.de> <to=xxx.xxx@xxx.org>; delay: 0s
postfix/policyd-weight[8583]: decided action=DUNNO  using cached result; rate: -9.5; <client=mout.gmx.net[212.227.15.19]> <helo=mout.gmx.net> <from=xxx.xxx@xxx.org> <to=xxx.xxx@xxx.org>; delay: 0s

Thank you!

Regards, Mike

darold commented 10 years ago

Hi,

It seems possible but I need much more log line to be sure of what should be done. Could you send me a log which contains lines with spam detected and not detected ? For complete privacy, please send it to my personal address.

Regards,

darold commented 10 years ago

Last commit 872b968 add this feature.