Solved

501 5.5.4 Invalid Address     EXchange 2003

Posted on 2010-09-03
13
2,123 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
Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
how to add IIS SMTP to handle application/Scanner relays into office 365.

758 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

13 Experts available now in Live!

Get 1:1 Help Now