Created
August 3, 2018 19:58
-
-
Save smfreegard/deefd094d6c78c6ad3ef44564ebd85e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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