Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var last_recip = null;
var ok_recips = [];
var fail_recips = [];
var bounce_recips = [];
var secured = false;
var authenticating = false;
var authenticated = false;
var smtp_properties = {
"tls": false,
"max_size": 0,
"eightbitmime": false,
"enh_status_codes": false,
"auth": [],
};
var tls_cfg = net_utils.load_tls_ini();
var send_command = socket.send_command = function (cmd, data) {
if (!socket.writable) {
self.logerror("Socket writability went away");
if (processing_mail) {
processing_mail = false;
release_client(socket, port, host, mx.bind, true);
return self.try_deliver_host(mx);
}
return;
}
var line = cmd + (data ? (' ' + data) : '');
if (cmd === 'dot' || cmd === 'dot_lmtp') {
line = '.';
}
if (authenticating) cmd = 'auth';