Link to home
Start Free TrialLog in
Avatar of socaltenor
socaltenor

asked on

How do I configure use of a proxy with IIS SMTP?

I need to relay notification mail from a few Windows 2003 servers (IIS 6) that do not have an internet facing NIC. I am able to send HTTP/FTP/SSL/Gopher through a proxy on a server with a WAN facing NIC by configuring in IE7 (tools, internet options, connections, lan settings). However, I don't see anywhere in IIS SMTP to configure this. Is there a reistry key where I can specify this? Is there a different SMTP Server I can install with more configuration options that allow use of a proxy?
Avatar of Member_2_1968385
Member_2_1968385
Flag of United Kingdom of Great Britain and Northern Ireland image

An SMTP server - such as the one that is part of IIS 6 - is able to store messages addressed to any of its home domains OR relay (i.e. forward) messages to another SMTP server. If it cannot do either of these then it will generally reject the message with an NDR.

I assume that when you talk about proxying, what you really mean is relaying. i.e. you want it to pass the message on to another SMTP server. The default behaviour would be for it to identify the destination IP address by looking up the MX records for the destination domain using DNS. However, this would normally only work if the server has access to the Internet - unless all destinations are on your LAN! You can also force it to pass all "non-home-domain" messages to one specific SMTP server using the "Smarthost" setting. IIS also allows another option based on matching the destination mail domain with a pre-defined domain in its list of so-called "Remote" SMTP domains. The option to add a remote domain is offered when you create a new SMTP domain in IIS. A remote domain can be configured to deliver to a specific Smarthost (by IP address or a resolvable host name) or can use DNS MX records to find the proper destination. The latter again requires access to the Internet. Relaying to domains that are not in the list of remote domains is controlled by authorisation/relaying permissions on the IIS server - the default is to not relay anything because "open relaying" is a security risk.

At the risk of stating the obvious, any email that needs to reach external addresses must pass through an SMTP server that does have access to the Internet. IIS SMTP server can be used for this purpose, or as an intermediate "hop" in a chain of relaying SMTP servers.
Avatar of socaltenor
socaltenor

ASKER

Thanks for the response Feptias. I have used the smarthost setting before. Really...all I am asking is how do I specify use of a proxy server (which is already used for all http/https requests) in IIS SMTP? The servers can have access to the internet if I can figure out a way to direct port 25 through the proxy, which has an internet facing NIC configured along with a private NIC on the same VLAN as the mail relay servers.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_1968385
Member_2_1968385
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was exactly what I found. I did understand the generalities of the proxy setup. It is WinGate that I use...and it is capable of proxying e-mail. Hopefully I have set it up correctly that the messages are not stored/processed on the proxy...and it just transparently allows them through, but e-mail is flowing. Thanks for your time!