nodemailer / smtp-server

Create custom SMTP servers on the fly
Other
846 stars 146 forks source link

message queued but not received #68

Closed start940315 closed 7 years ago

start940315 commented 7 years ago

I set up a server and it can receive my connection but can not send the mail to my destination. the session is abnormal: in onMailFrom(), it is:

{ id: 'exboII9SStOa',
remoteAddress: '115.175.24.76',
clientHostname: '[115.175.24.76]',
openingCommand: 'EHLO',
hostNameAppearsAs: '[127.0.0.1]',
xClient: Map {},
xForward: Map {},
transmissionType: 'ESMTPA',
tlsOptions: false,
envelope: 
{ mailFrom: { address: 'startan@squarance.com', args: false },
rcptTo: [] },
transaction: 1,
user: 'squarance' }

in onRcptTo(), it is:

{ id: 'exboII9SStOa',
remoteAddress: '115.175.24.76',
clientHostname: '[115.175.24.76]',
openingCommand: 'EHLO',
hostNameAppearsAs: '[127.0.0.1]',
xClient: Map {},
xForward: Map {},
transmissionType: 'ESMTPA',
tlsOptions: false,
envelope: { mailFrom: false, rcptTo: [] },
transaction: 2,
user: 'squarance' }

the envelope object didn't set the rcptTo and reset mailFrom, why would it happen?

andris9 commented 7 years ago

Do you have the SMTP logs? Enable the logger option to log SMTP transactions to the console:

var server = new SMTPServer({
    ...
    logger: true
});
pranshu-07 commented 7 years ago

@andris9 @start940315 I think we could close this issue. People coming to this repo, looks confused by seeing open issues. SMTP servers seems to run perfectly now ! 🎱