Created
June 28, 2014 00:21
-
-
Save smfreegard/d4c6b871bd0be59be2b6 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
var Address = require('./address').Address; | |
var rewrite_to = 'steve.freegard@gmail.com'; | |
exports.hook_data = function (next, connection) { | |
var txn = connection.transaction; | |
// Use outbound... | |
connection.relaying = true; | |
var addr = new Address(rewrite_to); | |
txn.rcpt_to = [ addr ]; | |
return next(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment