Talk:Project Newsletter

From Archiveteam
Jump to: navigation, search

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 smtp
Connected to
Escape character is '^]'.
220 ip-172-31-20-7.ec2.internal Python SMTP proxy version 0.2
250 ip-172-31-20-7.ec2.internal
250 Ok
250 Ok
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 <

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=<>,[]:25, delay=2215, delays=2215/0.01/0.11/0.05, dsn=4.4.2,
   status=deferred (lost connection with[] while sending end of 
   data -- message may be sent more than once) 

Chip 01:03, 20 November 2015 (EST)