Adapt qpsmtpd regex for naughty rejects

tags/smeserver-zabbix-agent-0.4.3-1 0.4.2_el5
Daniel Berteaud 9 years ago
parent 3bd3ee67e0
commit 2d482d9675
  1. 6
      root/var/lib/zabbix/bin/util_parse_mail_in

@ -26,16 +26,16 @@ my $what = $ARGV[0] || '';
# This is the list of plugins we can get stats for # This is the list of plugins we can get stats for
# you can set the regex used to identify a line in the logs # you can set the regex used to identify a line in the logs
my %denied = ( my %denied = (
dnsbl => qr{dnsbl\s+90}, dnsbl => qr{(dnsbl\s+90|naughty\s+90\d\s+\(dnsbl\))},
rhsbl => qr{rhsbl\s+90}, rhsbl => qr{rhsbl\s+90},
uribl => qr{uribl\s+90}, uribl => qr{uribl\s+90},
clamav => qr{virus::clam(av|dscan)\s+90}, clamav => qr{virus::clam(av|dscan)\s+90},
check_earlytalker => qr{(check_)?earlytalker\s+90}, check_earlytalker => qr{(check_)?earlytalker\s+90},
check_basicheaders => qr{(check_basic)?headers\s+90}, check_basicheaders => qr{(check_basic)?headers\s+90},
check_goodrcptto => qr{(check_)?goodrcptto\s+90}, check_goodrcptto => qr{(check_)?goodrcptto\s+90},
check_spamhelo => qr{(check_spam)?helo\s+90}, check_spamhelo => qr{((check_spam)?helo\s+90|naughty\s+90\d\s+\(helo\))},
fcrdns => qr{fcrdns\s+90}, fcrdns => qr{fcrdns\s+90},
karma => qr{karma\s+90}, karma => qr{(karma\s+90|naughty\s+90\d\s+\(karma\))},
spf => qr{sender_permitted_from\s+90}, spf => qr{sender_permitted_from\s+90},
tls_failed => qr{tls\s+90}, tls_failed => qr{tls\s+90},
resolvable_fromhost => qr{(require_)?resolvable_fromhost} resolvable_fromhost => qr{(require_)?resolvable_fromhost}

Loading…
Cancel
Save