Socket
Socket
Sign inDemoInstall

smtp-server

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-server - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

4

CHANGELOG.md
# Changelog
## v1.13.1 2016-07-29
* Fixed remoteHostname resolving bug
## v1.13.0 2016-07-29

@@ -4,0 +8,0 @@

8

examples/server.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc