Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a question #64

Closed
igordeoliveirasa opened this issue Aug 30, 2016 · 1 comment
Closed

Just a question #64

igordeoliveirasa opened this issue Aug 30, 2016 · 1 comment

Comments

@igordeoliveirasa
Copy link

igordeoliveirasa commented Aug 30, 2016

Why am I connecting successfully and asking smtp-server to send an e-mail successfully but the e-mail is never dispatched? It says that it is queued, however never sends. Look at my log:

o:99garcons-api igor$ node qdt-mailer.js
[2016-08-30 18:21:37] INFO: SMTP Server listening on [::]:41085
[2016-08-30 18:21:37] INFO: [/Zy42mtho4y/] Connection from [::ffff:127.0.0.1]
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 220 Igors-MacBook-Pro.local ESMTP
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] C: EHLO Igors-MacBook-Pro.local
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 250-Igors-MacBook-Pro.local Nice to meet you, [::ffff:127.0.0.1]
250-PIPELINING
250-8BITMIME
250 SMTPUTF8
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] C: MAIL FROM:igordeoliveirasa@gmail.com
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 250 Accepted
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] C: RCPT TO:igor.sa@mobilevale.com
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 250 Accepted
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] C: DATA
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 354 End data with .
[2016-08-30 18:21:37] INFO: <received 824 bytes>
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] C: <824 bytes of DATA>
[2016-08-30 18:21:37] DEBUG: [/Zy42mtho4y/] S: 250 OK: message queued
SEND EMAIL SUCCESS { accepted: [ 'igor.sa@mobilevale.com' ],
rejected: [],
response: '250 OK: message queued',
envelope:
{ from: 'igordeoliveirasa@gmail.com',
to: [ 'igor.sa@mobilevale.com' ] },
messageId: 'a0b066b2-aa20-ae7c-203e-cfd577fd4d3c@gmail.com' }
[2016-08-30 18:21:37] INFO: [/Zy42mtho4y/] Connection closed to [::ffff:127.0.0.1]

@andris9
Copy link
Member

andris9 commented Aug 30, 2016

This is because the smtp-server module is not an MTA application. You can use it in your own application as a SMTP front-end, so SMTP clients could send messages to your app using the SMTP protocol. What you actually do with that message (store it to disk, send it to another SMTP server etc.) is up to your own application logic. If you have not implemented relaying then your app acts as a black hole, it accepts the message but nothing is ever done with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants