ME7 Cant Receive Mail (SOLVED)

Discussion forum for Enterprise Edition.
Post Reply
PMad
Posts: 60
Joined: Thu Oct 18, 2012 6:19 pm

ME7 Cant Receive Mail (SOLVED)

Post by PMad »

I upgraded my server to 2012 from 2008 R2, put ME back on and restored my backup and now I cannot receive emails.

In my SMTP Activity log i see this:

Code: Select all

06/16/13 23:24:13	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	EHLO	EHLO mail-vc0-f178.google.com	250------------ [209.85.220.178], this server offers 5 extensions	151	31		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	MAIL	MAIL FROM:<----------->	250 [SMTP:-----------] OK.	33	30		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	RCPT	RCPT TO:<----------->	250 OK	8	26		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	DATA	DATA	354 OK	8	6		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	UNKN	Received: by mail-vc0-f178.google.com with SMTP id m17so1679980vca.23	503 Bad sequence of commands	30	1490		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	UNKN	        for <----------->; Sun, 16 Jun 2013 23:24:14 -0700 (PDT)	503 Bad sequence of commands	30	0		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	UNKN	DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;	503 Bad sequence of commands	30	0		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	UNKN	        d=gmail.com; s=20120113;	503 Bad sequence of commands	30	0		
06/16/13 23:24:14	SMTP-IN	3FA4BB103D274E6BAF7004AA7AEFCCF7.MAI	976	209.85.220.178	UNKN	        h=mime-version:date:message-id:subject:from:to:content-type;	503 Bad sequence of commands	30	0		
I replaced every line of identifying information for my server and email addresses (to prevent spam and hacking) with "-----------" without quotes. But starting on line 5, you can see the 503 Bad sequence of commands. Eventually after the DKIM signature it starts the process of receiving the actual message and the 503 error changes to "Too many invalid commands were received. Terminating session". I completely understand that part but have no idea why nobody can receive mail.

On a few other emails, I received a "504 Unrecognized authentication type" error.

Also, in the SMTP debug log i have this:

Code: Select all

06/16/13 23:28:44	SMTPMsgMAIL raised an exception.
The exception occured in : .\SMTPInboundMessages.cpp, line 2897
06/16/13 23:28:44	ProcessSMTPMessage handled an exception; session will be dropped.
Command: MAIL FROM:<----------->

06/16/13 23:28:44	SMTPMsgRCPTTO raised an exception.
The exception occured in : .\SMTPInboundMessages.cpp, line 3226
06/16/13 23:28:44	ProcessSMTPMessage handled an exception; session will be dropped.
Command: RCPT TO:<----------->
That might help since it shows the actual lines of code to identify exactly what is happening? Not sure..

Any ideas what this could be?
Last edited by PMad on Tue Jun 18, 2013 1:47 am, edited 1 time in total.

PMad
Posts: 60
Joined: Thu Oct 18, 2012 6:19 pm

Re: ME7 Cant Receive Mail

Post by PMad »

It looks to me like in the email mentioned above, ME gets the handshake with the EHLO command, followed by the MAIL and RCPT commands so that ME will know who the email is from and who its too, then gets the DATA command and right after that when the headers start coming in, the commands are UNKN (unknown) and is marked as "503 Bad sequence of commands".

So the question would be, why is ME not understanding what GMail is sending after the first DATA command comes through?

PMad
Posts: 60
Joined: Thu Oct 18, 2012 6:19 pm

Re: ME7 Cant Receive Mail

Post by PMad »

Fixed!!

My attempt to make the mail server as compatible as possible failed in one aspect.

Servers > localhost > Services and Connectors > SMTP

Under SMTP properties, in the Advanced SMTP tab is a Configure button for external scripts. Disabling all of the scripts fixed the issue although i'm sure its probably just the script function for DATA commands. There must be a bug in that script somewhere.

bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Re: ME7 Cant Receive Mail (SOLVED)

Post by bigreddastud »

I've just noticed this same issue, all gmail is getting rejected - "503 Bad sequence of commands". I looked at the same settings you suggested disabling, but I've got no external scripts enabled, so I'm not sure what it is.
Any suggestions?

Running win 2008 server, ME v7.08

bigreddastud
Posts: 46
Joined: Tue Apr 19, 2005 7:30 pm

Re: ME7 Cant Receive Mail (SOLVED)

Post by bigreddastud »

I fixed my issue. The XCLIENT command wasn't checked in the allowed commands setting. See this thread for exact details.

Post Reply