// Just relay everything - could be useful for a spamtrap

exports.register = function() {
    this.register_hook('rcpt', 'confirm_all');
};

exports.confirm_all = function(next, connection, params) {
    var recipient = params.shift();
    connection.loginfo(this, "confirming recipient " + recipient);
    connection.relaying = 1;
    next(OK);
};

// Just relay everything - could be useful for a spamtrap

exports.register = function() {
    this.register_hook('rcpt', 'confirm_all');
};

exports.confirm_all = function(next, connection, params) {
    var recipient = params.shift();
    connection.loginfo(this, "confirming recipient " + recipient);
    connection.relaying = true;
    next(OK);
};

Use true not 1 for connection.relaying
Use true not 1 for connection.relaying
