Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var outbound = require('./outbound');
- var constants = require('./constants');
- exports.hook_queue = function (next, connection) {
- var transaction = connection.transaction;
- outbound.send_email(connection.transaction, function(retval, msg) {
- switch(retval) {
- case constants.ok:
- return next(OK, msg);
- break;
- case constants.deny:
- return next(DENY, msg);
- break;
- default:
- return next(DENYSOFT, msg);
- }
- });
- }
- exports.hook_get_mx = function (next, hmail, domain) {
- var mx = {
- priority: 0,
- exchange: 'ip',
- auth_user: 'user',
- auth_pass: 'pass',
- port: 587,
- }
- return next(OK, mx);
- }
- exports.hook_queue_outbound = exports.hook_queue;
Add Comment
Please, Sign In to add comment