simplesmtp
Advanced tools
Comparing version 0.3.32 to 0.3.33
# CHANGELOG | ||
## v0.3.33 2014-09-04 | ||
* Bumped version to 0.3.33 | ||
* Added deprecation notice | ||
## v0.3.32 2014-05-30 | ||
@@ -4,0 +9,0 @@ |
@@ -312,2 +312,4 @@ 'use strict'; | ||
this.removeAllListeners(); | ||
// keep the error handler around, just in case | ||
this.socket.on('error', this._onError.bind(this)); | ||
}; | ||
@@ -314,0 +316,0 @@ |
@@ -575,2 +575,5 @@ 'use strict'; | ||
SMTPServerConnection.prototype._onCommandSTARTTLS = function() { | ||
if(this.server.options.disableSTARTTLS) { | ||
return this.client.send('502 5.5.2 Error: command not recognized'); | ||
} | ||
if (this.client.secureConnection) { | ||
@@ -628,3 +631,3 @@ return this.client.send('554 5.5.1 Error: TLS already active'); | ||
if (!this.client.secureConnection) { | ||
if (!this.client.secureConnection && !this.server.options.disableSTARTTLS) { | ||
response.push('STARTTLS'); | ||
@@ -631,0 +634,0 @@ } |
{ | ||
"name": "simplesmtp", | ||
"description": "Simple SMTP server module to create custom SMTP servers", | ||
"version": "0.3.32", | ||
"version": "0.3.33", | ||
"author" : "Andris Reinman", | ||
@@ -6,0 +6,0 @@ "maintainers":[ |
# simplesmtp | ||
## DEPRECATION NOTICE | ||
This module is deprecated for production use. For SMTP servers use [Haraka](https://www.npmjs.org/package/Haraka), for SMTP clients use [smtp-connection](https://www.npmjs.org/package/smtp-connection). | ||
Simplesmtp is a module written for Node v0.6 and slightly updated for Node v0.8. It does not use Node v0.10 streams and probably is going to have a rocky future with Node v0.12. I do not have time to keep it up to date, the thing probably needs a major rewrite for Node v0.12. | ||
Should be fine though for integration testing purposes. | ||
## Info | ||
This is a module to easily create custom SMTP servers and clients - use SMTP as a first class protocol in Node.JS! | ||
@@ -79,2 +89,3 @@ | ||
* **disableDNSValidation** - if set, do not validate sender domains | ||
* **disableSTARTTLS** - if set, do not use STARTTLS | ||
@@ -81,0 +92,0 @@ ### Example |
98696
2099
360