Solved

550 Relay Errors

Posted on 2006-11-01
3
228 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a Shared Mailbox 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 >> Sha…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

830 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