Talk:Project Newsletter

From Archiveteam
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Useful Dev Resources

Missing Final Acknowledgement

The current SMTPd implementation is missing the final response after the DATA command which is causing all of the client MTAs to reattempt sending their emails. See below for and example of the current response from the SMTPd.

$ telnet mail3.newsletter.nerds.io smtp
Trying 52.5.19.86...
Connected to mail3.newsletter.nerds.io.
Escape character is '^]'.
220 ip-172-31-20-7.ec2.internal Python SMTP proxy version 0.2
HELO outbound.projectnewsletter.org
250 ip-172-31-20-7.ec2.internal
MAIL FROM: test@outbound.projectnewsletter.org
250 Ok
RCPT TO: test@outbound.projectnewsletter.org
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
This is some data
.
Connection closed by foreign host.

The server should reply with a status code as illustrated on pages 19 and 53 of the RFC. Either a 2xy or 5xy similar to below:

   250 2.6.0 <1zEog0285S@mail3.newsletter.nerds.io.

Example from an MTA log, the socket closing is interpreted as a failure (as it should be):

     Nov 20 00:45:23 outbound postfix/smtp[7577]: 741AB42538: to=<foo@mail3.newsletter.nerds.io>, 
   relay=mail3.newsletter.nerds.io[52.5.19.86]:25, delay=2215, delays=2215/0.01/0.11/0.05, dsn=4.4.2,
   status=deferred (lost connection with mail3.newsletter.nerds.io[52.5.19.86] while sending end of 
   data -- message may be sent more than once) 

Chip 01:03, 20 November 2015 (EST)