Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Regarding the SMTP service that is including in Microsoft's Internet Information Services (IIS) 6.0.

I have it in my mind that the built-in SMTP service is not capable of routing outbound messages, except to spcific domains that have to be manually specified. However, I've just had a conversation with someone that has challenged my understanding. I've looked at various articles on the web and they are only confusing me more.

So, can anyone categorically state whether or not the IIS SMTP service can be used as a general purpose relay for outbound mail? For example, can I set up a web site that uses it to send outbound mail and the SMTP service will go out and look up the MX records for the recipient and route the email?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

Yes, the SMTP service in IIS is capable of full end-to-end delivery. In order for it to function this way, the following requirements must be met:

  • The server needs to be on a routable IP address (ie not an IP address in one of the reserved private ranges)
  • The DNS settings on the server need to be configured properly so it can resolve MX records of the recipient domains properly
  • You need to clear out the "smart host" setting. Find this by right-clicking on the SMTP server in the IIS Admin console, select Properties, select the "Delivery" tab, click the "Advanced" button, and you will see the space for entering a smart host.
share|improve this answer
    
"The server needs to be on a routable IP address (ie not an IP address in one of the reserved private ranges" - well, it depends. If the clients or the server itself are all on the private network, this is not absolutely necessary. –  splattne Jul 24 '09 at 11:05
    
Good point. In general though not having the server on a routable IP causes many problems (unless NAT is properly configured, which effectively works as if it did) - Reverse DNS lookups will fail etc. –  Bork Blatt Jul 24 '09 at 11:10
    
Does the firewall have to have port 25 opened up for both outbound and inbound ... if we're only caring about sending email out (eg. sign up emails, error emails, etc) ? –  Pure.Krome Oct 15 '09 at 5:29
    
Nope, if you are only sending e-mail you only need port 25 opened for outbound traffic. –  Bork Blatt Oct 28 '09 at 10:21
add comment

Yes, the IIS SMTP can be used as normal SMTP server.

If you're experiencing problems, try to look for IP restrictions for Relaying on the SMTP server in the "Connections" window of the SMTP configuration. You could also check if a firewall is blocking TCP port 25 traffic from that server.

share|improve this answer
    
No problems, other than in my head ;-) –  Tim Long Jul 24 '09 at 10:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.