Skip to content

Commit

Permalink
karma: added neg karma for SPF deny/fail
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 19, 2014
1 parent c8a7763 commit 67a4815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/karma.ini
Expand Up @@ -29,8 +29,8 @@ good=10
; maximum number of recipients allowed
[recipients]
bad=1
neutral=3
good=10
neutral=5
good=20


[threshhold]
Expand Down Expand Up @@ -77,3 +77,7 @@ notes.rdns_access@white=1
notes.fcrdns.no_rdns=-2
notes.fcrdns.ip_in_rdns=-1
notes.spamassassin.flag@Yes=-2
notes.spf_helo@3=-2
notes.spf_helo@4=-1
notes.spf_helo@6=-1
notes.spf_helo@7=-1
3 changes: 3 additions & 0 deletions plugins/rcpt_to.max_count.js
Expand Up @@ -2,6 +2,9 @@
// this helps guard against some spammers who send RCPT TO a gazillion times
// as a way of probing for a working address

// Consider using the karma plugin. It supports limiting the number
// of recipients based on past behavior (good, bad, unknown)

exports.hook_rcpt = function (next, connection) {
if (connection.transaction.notes.rcpt_to_count) {
connection.transaction.notes.rcpt_to_count++;
Expand Down

0 comments on commit 67a4815

Please sign in to comment.