Groups | Blog | Home
all groups > iis smtp nntp > july 2004 >

iis smtp nntp : "unable to relay" error when domain.com is not on this server


AFN
7/23/2004 3:50:51 AM
I'm using ASP.NET to send emails from mydomain.com. It works fine on a W2K
server where mydomain.com has a website and a DNS record on the server. But
now, I put the same code on a second/new W2K server and I get the "unable to
relay for whatever@mydomain.com" error!

I am not trying to send off another server. I'm trying to just send
directly from this SMTP server on the new machine. I have my smtp relay
restrictions set to "allow only from 127.0.0.1", which I thought would be
fine.

It seems that it doesn't like that "mydomain.com" is nowhere on this
machine. I guess its checking internal machine config info, or its DNS.
So how do I get around that? All I want to do is send from mydomain.com
where this domain is not on this server.

a) if your answer is use authentication in asp.net, can you tell me what I
need to do with the user account on the server? what rights must it have?

b) if your answer is to add "mydomain" in the "domains" node of the SMTP
server, I've never done this before and can't find any good info. would I
add it as an alias? what else do I do?

Ken Schaefer
7/26/2004 10:08:42 AM
Hi,

Allowing 127.0.0.1 in the "Allowed to relay" page should have been enough.
You might want to add the actual IP address of the server as well. That
should be all that is required for the SMTP server to relay mail.

Cheers
Ken


[quoted text, click to view]

AddThis Social Bookmark Button