Skip to content

Commit

Permalink
add skeleton support for TLS validation
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Sep 15, 2017
1 parent 4f18f82 commit 535c676
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@

# haraka-plugin-known-senders

Increase the reputation of domains you send email to, simply by sending them email.
Increase the reputation of domains you exchange email with by sending them email.

## Synopsis

Known Senders is based on the premise that domains users send email to are domains they also want to receive email from. By maintaining lists of domains that local users send email to, a weak but helpful form of automatic whitelisting is obtained.


## How it works

This plugin inspects outgoing emails and adds the destination domains to a known senders database. When emails arrive from those known senders, this plugin stores a result object with the passing domain(s) name.
This plugin inspects outgoing emails and adds the destination domains to a known senders database. When emails arrive from those known sending domains, this plugin stores a result object with the passing domain(s) name.

### TL;DR

Expand Down
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ exports.is_authenticated = function (next, connection, params) {
}

// Maybe: TLS verified domain?
if (connection.tls.verified) {
// TODO: get the CN and Subject Alternative Names of the cert
// then look for match with sender_od
connection.logdebug(plugin, '+tls: ' + sender_od);
// return next(null, null, sender_od);
}

return next();
}
Expand Down

0 comments on commit 535c676

Please sign in to comment.