Solved

501 5.5.4 Invalid Address     EXchange 2003

Posted on 2010-09-03
13
2,149 Views
Last Modified: 2013-11-30
Hi

If my smtp on my Exchange server 2003 receive a mail with more than one in the from field (xx@xxx.com; yy@yyy.com) it fails with the following message:

220 EXCH01.cargodom.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Fri, 3 Sep 2010 08:56:48 +0200
helo
250 EXCH01.cargodom.local Hello [10.10.20.109]
mail from: xx@xxx.com; ee@eee.com
501 5.5.4 Invalid Address

The same happens sometimes when I receive mails with multiple recipient.

The recipient in the from or to field are separated with semicolon.
0
Comment
Question by:DANCARGO
  • 7
  • 6
13 Comments
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 33594154
If the above message has not been adjusted at all then it is because the IP Address of 10.10.20.109 is a non-valid Internet IP Address - it is a reserved IP address and is not internet routeable.
Also, the FQDN EXCH01.cargodom.local is also not a routeable domain name as it is reserved for local networks, so change the FQDN on your SMTP Virtual Server Properties, Delivery Tab, Advanced button to something like mail.cargodom.com (or whatever resolves to your mail server) and then try again.
0
 

Author Comment

by:DANCARGO
ID: 33594196
My Exchange server is located on my local LAN, I have another server located in DMZ for connection to the internet.

Server1 which I am sending mails from is also located on my local LAN, the software on server1  is sending mail to the exchange server with local recipient in the from field.

So I don´t suspect that it should be a routing problem.
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 33594212
I didn't say it was a routing problem - I said that the IP Address and Fully Qualified Domain Name you posted above are not ones that will resolve to the rest of the world because they are internal (IP Address and domain name).
 
0
 

Author Comment

by:DANCARGO
ID: 33594550
That´s correct, I use my spam server as the external part which have a WAN ip and Fully Qualified Domain Name, and that part work perfect.

But my problem is at the internal part, my SMTP on my Exchange accept mails if only one recipient in the from filed, but if is use more than one recipient it fails.

Telnet example:

220 EXCH01.cargodom.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 ready at  Fri, 3 Sep 2010 08:56:48 +0200
helo
250 EXCH01.cargodom.local Hello [10.10.20.109]
mail from: xx@xxx.com; ee@xxx.com
501 5.5.4 Invalid Address
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 33595865
>>But my problem is at the internal part, my SMTP on my Exchange accept mails if only one recipient in the from filed, but if is use more than one recipient it fails.<<
Mails can only come From one person - not multiple people.  Do you mean the To: Field?
0
 

Author Comment

by:DANCARGO
ID: 33596091
If I only use one recipient in from: then i get the same mesage if i use more than one in the to: field.

Example:

220 EXCH01.cargodom.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 r
eady at  Fri, 3 Sep 2010 14:57:39 +0200
helo
250 EXCH01.cargodom.local Hello [10.10.20.109]
mail from: aa@xxx.com
250 2.1.0 aa@xxx.com....Sender OK
rcpt to: bb@xxx.com; ee@xxx.com
501 5.5.4 Invalid Address
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 33596599
Can you please explain exactly what it is that you are trying to do and why it is a problem.
Are you trying to manually send out mail, or use a 3rd party application to send out mail, or are you using Exchange and Outlook and having problems?
0
 

Author Comment

by:DANCARGO
ID: 33596768
I have a 3rd party application which send out invoices to our customers.

The 3rd party application send email to my exchange server whic forward the mails to the spam(smtp gateway) which send them to the customers.

the 3rd party application is setup to send the mail to the costumer, and some internal persons in our company. If we only use 1 email address in the recipent field then it works, if we use 2 emails or more in the recipient field then it fails.

Then I made a telnet to my exchange on port 25 to test:

Example:
220 EXCH01.cargodom.local Microsoft ESMTP MAIL Service, Version: 6.0.3790.3959 r
eady at  Fri, 3 Sep 2010 14:57:39 +0200
helo
250 EXCH01.cargodom.local Hello [10.10.20.109]
mail from: aa@xxx.com
250 2.1.0 aa@xxx.com....Sender OK
rcpt to: bb@xxx.com; ee@xxx.com
501 5.5.4 Invalid Address

Why do i get 501 5.5.4 Invalid Address every time when the i more than one recipient?
0
 
LVL 76

Accepted Solution

by:
Alan Hardisty earned 500 total points
ID: 33596978
Ok - thanks.  Understood now.
The RCPT TO: commands have to be sent separately, not on the same line.
The commands should be:
helo
mail from: aa@xxx.com
rcpt to: bb@xxx.com
rcpt to: ee@xxx.com
etc
 
0
 

Author Comment

by:DANCARGO
ID: 33597188
You should be able to send it in one line with semicolon as seprating
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 33597239
Not from the tests I have been doing - it does work with separate lines though.
0
 

Author Closing Comment

by:DANCARGO
ID: 34179394
I didn´t get the correct answer, just how it worked in his system
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 34179509
If that is the case - What is the 'Correct' answer?
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now