smtp-server
Advanced tools
Comparing version 1.13.0 to 1.13.1
# Changelog | ||
## v1.13.1 2016-07-29 | ||
* Fixed remoteHostname resolving bug | ||
## v1.13.0 2016-07-29 | ||
@@ -4,0 +8,0 @@ |
@@ -7,6 +7,5 @@ /* eslint no-console: 0 */ | ||
var SMTPServer = require('../lib/smtp-server').SMTPServer; | ||
var util = require('util'); | ||
var SERVER_PORT = 2525; | ||
var SERVER_HOST = '0.0.0.0'; | ||
var SERVER_HOST = false; | ||
@@ -31,3 +30,3 @@ // Connect to this example server by running | ||
// disable STARTTLS to allow authentication in clear text mode | ||
disabledCommands: ['STARTTLS'], | ||
disabledCommands: ['AUTH', 'STARTTLS'], | ||
@@ -73,5 +72,2 @@ // By default only PLAIN and LOGIN are enabled | ||
onMailFrom: function (address, session, callback) { | ||
console.log(util.inspect(session.xClient, false, 22)); | ||
console.log(util.inspect(session.xForward, false, 22)); | ||
if (/^deny/i.test(address.address)) { | ||
@@ -78,0 +74,0 @@ return callback(new Error('Not accepted')); |
@@ -159,3 +159,3 @@ 'use strict'; | ||
// dns.reverse throws on invalid input, see https://github.com/nodejs/node/issues/3112 | ||
dns.reverse(undefined && (this.remoteAddress || '').toString(), reverseCb); | ||
dns.reverse((this.remoteAddress || '').toString(), reverseCb); | ||
} catch (E) { | ||
@@ -162,0 +162,0 @@ reverseCb(E); |
{ | ||
"name": "smtp-server", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"description": "Create custom SMTP servers on the fly", | ||
@@ -5,0 +5,0 @@ "main": "lib/smtp-server.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140997
2969