Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created June 15, 2016 17:28
Show Gist options
  • Save baudehlo/80f171744e9d699ebe51b4d224e03e2d to your computer and use it in GitHub Desktop.
Save baudehlo/80f171744e9d699ebe51b4d224e03e2d to your computer and use it in GitHub Desktop.
var mailgun_smtp = {
auth_user: 'xxx',
auth_pass: 'yyy',
priority: 0,
exchange: 'smtp.mailgun.org',
};
exports.hook_get_mx = function (next, hmail, domain) {
// All relaying goes via mailgun
return next(OK, mailgun_smtp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment