Skip to content

Instantly share code, notes, and snippets.

@smfreegard
Created August 3, 2018 19:58
Show Gist options
  • Save smfreegard/deefd094d6c78c6ad3ef44564ebd85e7 to your computer and use it in GitHub Desktop.
Save smfreegard/deefd094d6c78c6ad3ef44564ebd85e7 to your computer and use it in GitHub Desktop.
exports.hook_rcpt = function (next, connection) {
var txn = connection.transaction;
if (txn.rcpt_to.length > 1) {
return next(DENY, 'Multiple recipients not allowed');
}
return next();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment