Permalink
Browse files

server is supposed to initiate SMTP session with a 220 - http://tools…

  • Loading branch information...
1 parent 70361f0 commit 0c6cd2dddaeb7bcb2973184b51877cda029e88c5 @lloyd lloyd committed May 10, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/client/proto.js
  2. +1 −1 test/client_server.js
  3. +1 −1 test/sequence.js
  4. +1 −1 test/server.js
View
@@ -13,7 +13,7 @@ module.exports = function (domain, stream) {
var p = parser(stream);
var write = writer(stream);
- write(250, domain || os.hostname());
+ write(220, domain || os.hostname());
function createAck (cb, okCode, raw) {
return {
View
@@ -49,7 +49,7 @@ test('client/server', function (t) {
c.on('end', function () {
t.equal(script, [
- '250 localhost',
+ '220 localhost',
'HELO localhost',
'250',
'MAIL FROM: <beep@localhost>',
View
@@ -49,7 +49,7 @@ test('bad sequence', function (t) {
c.on('end', function () {
t.equal(script, [
- '250 localhost',
+ '220 localhost',
'HELO localhost',
'250',
'MAIL FROM: <beep@localhost>',
View
@@ -54,7 +54,7 @@ test('server accept/reject', function (t) {
c.on('end', function () {
t.equal(script, [
- '250 localhost',
+ '220 localhost',
'helo',
'250',
'mail from: <beep@localhost>',

0 comments on commit 0c6cd2d

Please sign in to comment.