Windows Server 2003
1752614 Members
4863 Online
108788 Solutions
New Discussion юеВ

Re: 503 5.5.2 Need Rcpt command

 
'chris'
Super Advisor

503 5.5.2 Need Rcpt command

hi

I try to send a mail from Exchange 2003 using command line, but I'm getting this message:

telnet 192.168.0.2 25

220 mail.mydomain.net Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at Sat, 23 Jan 2010 17:28:30 +0100
helo
250 mail.mydomain.net Hello [192.168.0.2]
mail from: administrator@mydomain.net
250 2.1.0 administrator@mail.mydomain.net....Sender OK
mail to: rcpt@mydomain.net
503 5.5.2 Sender already specified
data
503 5.5.2 Need Rcpt command.


What are Rcpt commands?
2 REPLIES 2
haytham_hosny
Esteemed Contributor

Re: 503 5.5.2 Need Rcpt command

Hi ,

You tell the mail server who the recipient of your message is by using the RCPT command. You can send more than one RCPT command for multiple recipients. The server will respond with a code of 250 to each command. The syntax for the RCPT is:

RCPT TO:

Only one recipient can be named per RCPT command. If the recipient is not known to the mail server, the response code will be 550. You might also get a response code indicating that the recipient is not local to the server. If that is the case, you will get one of two responses back from the server:

* 251 User not local; will forward to -This reply means that the server will forward the message. The correct mail address is returned so that you can store it for future use.
* 551 User not local; please try -This reply means that the server won't forward the message. You need to issue another RCPT command with the new address.

Thanks
Haytham Hosny
Haytham Hosny
Shoghi Martinez G.
Honored Contributor

Re: 503 5.5.2 Need Rcpt command

The problem here is that you are using "mail to" wich is incorrect, you must use "rcpt to:"

telnet host 25
helo
mail from: administrator@mydomain.net
rcpt to: rcpt@mydomain.net
data
Subject: test

The quick brown fox.....

.


HTH
Shoghi.