Solved

550 Relay Errors

Posted on 2006-11-01
3
222 Views
Last Modified: 2010-03-06
I'm still having a problem with this.  Background:

We have a web server (www1) and a mail server (exchange 2003, mail.mydomain.com).  The web server uses a 3rd party asp component to send mail (persits mail sender).  When the web site sends an email, that message goes to our exchange server.  I can see this in the logs:

2006-10-31 19:19:34 216.191.xxx.xxx www1.mydomain.com SMTPSVC1 BCMAIL 10.0.0.7 0 HELO - +www1.mydomain.com 250 0 58 31 0 SMTP - - - -
2006-10-31 19:19:34 216.191.xxx.xxx www1.mydomain.com SMTPSVC1 BCMAIL 10.0.0.7 0 MAIL - +FROM:+<someuser@mydomain.com> 250 0 57 45 0 SMTP - - - -
2006-10-31 19:19:34 216.191.xxx.xxx www1.mydomain.com SMTPSVC1 BCMAIL 10.0.0.7 0 RCPT - +TO:+<someguy@gmail.com> 550 0 49 28 0 SMTP - - - -

What I don't understand, is if our mail server (mail.mydomain.com) is sending the email, why is it sendin as www1.mydomain.com?  www1 is the netbios name of the web server, not a public DNS address.

I can understand the relay error if it was coming from our mail server; it wouldn't allow the web server to 'relay' through it but obviously it is.  At gmail's end, I assume it looks at the name www1, queries DNS and finds 'mail' is the authoritative sender and rejects it.  But why is our mail server delivering as www1?

I figured the mail sender on the web server requires authentication to send but that can't be the problem either.  It is accepting the message and sending it to gmail but as www1 and gmail rejects it.

Why would our exchange server deliver the message as www1?
Thanks!
0
Comment
Question by:tomrwilson
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
nitadmin earned 250 total points
ID: 17855389
You asp code is connecting to your Exchange server as a smtp client. Your exchange server is actually relaying the e-mails. It is allowed to relay because it is host in your domain or subnet. Or your code probably has the username and password which it uses to authenticate with server.

Cheers,
NITADMIN

0
 
LVL 8

Expert Comment

by:nitadmin
ID: 17855472
You may want to post a new question to the ASP section under Web development and ask them what class, method or function to use for sending e-mails without having the e-mail appear to come from the web server host.

Cheers,
NITADMIN
0
 

Author Comment

by:tomrwilson
ID: 17857923
I can't see the trees for the forest...  The log entry above is OUR exchange server rejecting the mail from the web server, not gmail rejecting its delivery.  I added the web server's IP's to the relay list and all is well.  Cool.  Thanks for the effort!
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

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.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
how to add IIS SMTP to handle application/Scanner relays into office 365.
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…

920 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

16 Experts available now in Live!

Get 1:1 Help Now