[SOLVED] 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Discussions on webmail and the Professional version.
Post Reply
jamescooke
Posts: 4
Joined: Sat Dec 12, 2015 1:52 pm

[SOLVED] 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by jamescooke »

Hi, I'm scratching my head as to what is happening here.
Website relays sales confirmation via our mailenable server (all located on the same network)

The logs show: (altered identifying info)

12/12/15 13:40:43 SMTP-IN C425EADDB31648E79BF49F143751E1C9.MAI 740 *.*.*.* MAIL MAIL FROM:<info@domain.com> 250 OK. 10 36
12/12/15 13:40:43 SMTP-IN 04973EC52AE645F68DED4DC09FD3F073.MAI 788 *.*.*.* MAIL MAIL FROM:<info@domain.com> 250 OK. 10 36
12/12/15 13:40:43 SMTP-IN C425EADDB31648E79BF49F143751E1C9.MAI 740 *.*.*.* RCPT RCPT TO:<info@domain.com> 503 Bad sequence of commands. Could not process RCPT command when in this state 81 34
12/12/15 13:40:43 SMTP-IN 04973EC52AE645F68DED4DC09FD3F073.MAI 788 *.*.*.* RCPT RCPT TO:<james@domain.com> 503 Bad sequence of commands. Could not process RCPT command when in this state 81 35


On professional v9.01

Any suggestions?

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by MailEnable-Ian »

Hi,

Check the SMTP debug for more information as to what is occuring during the FROM command. DO you route through a proxy or spam gateway?
Regards,

Ian Margarone
MailEnable Support

jamescooke
Posts: 4
Joined: Sat Dec 12, 2015 1:52 pm

Re: 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by jamescooke »

Thank you, wasn't aware of the debug file. Have had a look and getting this: (domain and IP addresses anonymised)

12/15/15 15:37:02 ME-I0076: Listening for connections
12/15/15 15:37:57 ME-IXXXX: [724] An attempt to send as mail from info@domain.com occurred but the sender did not authenticate and the IP address (172.16.1.57.) is not defined as a local IP address.
12/15/15 15:37:57 ME-I0070: (recv) socket [724] was gracefully closed during [RCPT] command by the remote client 172.16.1.57.
12/15/15 15:37:57 ME-I0074: [724] (Debug) End of conversation
12/15/15 15:38:00 ME-IXXXX: [744] An attempt to send as mail from noreply@domain.com occurred but the sender did not authenticate and the IP address (172.16.1.57) is not defined as a local IP address.
12/15/15 15:38:00 ME-IXXXX: [792] An attempt to send as mail from noreply@domain.com occurred but the sender did not authenticate and the IP address (172.16.1.57) is not defined as a local IP address.
12/15/15 15:38:00 ME-I0070: (recv) socket [744] was gracefully closed during [RCPT] command by the remote client 172.16.1.57.
12/15/15 15:38:00 ME-I0074: [744] (Debug) End of conversation
12/15/15 15:38:00 ME-I0070: (recv) socket [792] was gracefully closed during [RCPT] command by the remote client 172.16.1.57.
12/15/15 15:38:00 ME-I0074: [792] (Debug) End of conversation

Am not quite sure why the IP address is not defined as local or its not authenticating - the relay permissions has this IP address in to allow?

Really appreciate the help.

jamescooke
Posts: 4
Joined: Sat Dec 12, 2015 1:52 pm

Re: 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by jamescooke »

Actually have stumbled across the fix I think.
SMTP > Security > Address Spoofing

Changed from 'Authenticated users can spoof sender addresses' to 'Authorized connections can spoof sender addresses'

The thing that was confusing me was the IP address was already set in SMTP Properties > Relay > Privileged IPs
and I couldn't figure out why this was being denied, even though the email address that the email was being sent from was on this mailenable server - because the email was coming from a web application, the address was still spoofed rather than it being direct;y integrated with the mailserver to connect and use a certain account?

MailEnable-Ian
Site Admin
Posts: 9738
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Re: 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by MailEnable-Ian »

Hi,

If the web application was not authentication then the security option for address spoofing would have been denying the connection to send from the locally hosted address to another locally hosted address (preventing sender address spoofing). Even if the IP was permitted in the relay list it still would of enforced authentication. The address spoofing option will only grant the connection to send if the option is to: "Authorized connections can spoof sender addresses" and the IP is present in the SMTP relay allow privileged IP's can relay list (which is what you have done).
Regards,

Ian Margarone
MailEnable Support

jamescooke
Posts: 4
Joined: Sat Dec 12, 2015 1:52 pm

Re: 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by jamescooke »

Thank you Ian. Greatly appreciate your help! :D

dillibabu
Posts: 2
Joined: Tue Aug 12, 2014 11:23 am

Re: [SOLVED] 503 Bad Sequence of Commands. Could not process RCPT command when in this state

Post by dillibabu »

Bouncing back with this error when i am trying to send calendar invitation from Google apps. but it success while send the invitation from outlook or Web mail. Can anyone help to solve this.

Thanks
Babu

Post Reply