June 13th, 2013, 05:22 PM
GMail hates my SMTP Server
Hello all. This isn't really a java question per-se, though the program is written in java.
The problem is with my little homemade esmtp server. All the internet loves my smtp server, and they send emails to it all the time. However, GMAIL is mean and won't talk to it. I've poured through ESMTP and SMTP protocol specs looking for clues, but am about at my wits end. If anyone has advice, then you will have my grattitude for life.
Here's a copy of the conversation from my smtp debug log (the log automatically changes EOLNs to strings for readability):
20130613.1658.30 debug SMTPserver Connection received: 188.8.131.52
20130613.1658.30 debug SMTPrq1 Sent: 220 ESMTP coffeemud.net CoffeeMud SMTPserver/184.108.40.206; 6/13/2013 4:58 PM
20130613.1658.30 debug SMTPrq1 Input: EHLO mail-qc0-f194.google.com
20130613.1658.30 debug SMTPrq1 Reply: 250 OK\r\n250-8BITMIME\r\n250-SIZE 200000\r\n250-DSN\r\n250-ONEX\r\n250-PIPELINING\r\n250 HELP\r\n
20130613.1658.30 debug SMTPrq1 Input: MAIL FROM:<email@example.com>
20130613.1658.30 debug SMTPrq1 Reply: 250 OK Efztest\r\n
20130613.1658.30 debug SMTPrq1 Input: QUIT
20130613.1658.30 debug SMTPrq1 Reply: 221 coffeemud.net closing connection\r\n
As you can see, GMAIL comes to call with a new message, sends MAIL FROM, and immediately issues a QUIT command?! That's not right!
Any help is appreciated,
- Bo Zimmerman
June 13th, 2013, 05:46 PM
Through sheer experimentation I answered my own darn question. The answer: a typo in the EHLO reply -- only the last entry should start with 250<space>
I wish I knew how to delete the above message.