Solved

IIS SMTP gateway

Posted on 2003-11-13
5
602 Views
Last Modified: 2006-11-17
For a number of reasons I'm looking at setting up a IIS box as an SMTP relay before the mail server. Like the setup below:

Internet
      |
IIS SMTP
      |
mail server

An important point to note is that this SMTP relay must be able to relay in both directions. That is all email that travels between the internet and the mailserver must travel though the gateway.

I am pretty certain that this can be done, but I'm having some difficulties conceptualising how it is done. I can understand how the IIS server could be configured to relay all mail going in one direction, but not both. Talking through it (as I understand it):
Inbound - easy. relay all mail to the mail server by setting the smart host to the mail server for the default domain.
Outbound - easy. Set the mail server to relay to the IIS box (set IIS to allow relay from the mailserver's IP addr) and let the IIS box handle delivery.
Both: As I see it setting one stops the other from working.

A number of articles have pointed to this as a possibility, however none have gone through the process of setting up the box.

The mail server in question could be any one of a number of mail servers, so please, no suggestions that involve running something on the Exchange/Groupwise/Lotus server. This has to be able to run on a standalone box.

regards
David Cameron
0
Comment
Question by:David_Cameron
  • 3
  • 2
5 Comments
 
LVL 24

Accepted Solution

by:
David Wilhoit earned 200 total points
ID: 9744845
http://support.microsoft.com/default.aspx?scid=kb;en-us;310336

You've probably seen this, but thought I'd lay it out here anyhow...another is this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;293800


Configure the other servers to use your relay server as a smart host
Depending on the other applications or mailers that will use your relay server, you may have a option where you can specify a smart host or SMTP relay. With Exchange 2000, you would create an SMTP connector and specify the Windows 2000 Relay server in the Forward all mail through this connector to the following smart host box.

That's pretty much it. I'd configure spam filtering on my SMTP box as well, takes the load off the mail server, and reduces the security risks.

D
0
 
LVL 2

Author Comment

by:David_Cameron
ID: 9744948
Thanks very much for the help.

Let me see if I have this clear. I create a domain (eg davidcameron.com) which is the domain for the mail server. In that domain I set the smart host to the mail server. Then in Exchange I set it to relay all mail to the IIS box. So emails hitting the IIS box sent to *@davidcameron.com allways go to the mail server, all other emails go to wherever IIS can deliver them.

regards
David Cameron
0
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 9745014
SMTP VS: Create new domain, remote. Give it a domain name, such as davidcameron.com. Allow mail for this domain to be relayed, forward to smart host, [xx.xx.xx.xx] format.

Exchange 2000/2003: Create SMTP connector. Configure the bridgehead server, use the default SMTP VS located on the Exchange server, forward all outbound mail to the Windows 2000/2003 SMTP server, as configured above. It's actually very straight-up..
d
0
 
LVL 2

Author Comment

by:David_Cameron
ID: 9745035
Many thanks for the help.

You are right, it is simple once you know how.

regards
David Cameron
0
 
LVL 24

Expert Comment

by:David Wilhoit
ID: 9745065
you're very welcome!

D
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

The biggest nightmare for any Exchange Server Administrator is to keep the server running without any issue. But the problems often come and they need to be resolved efficiently and timely. Here are important troubleshooting points: Define the Pr…
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

786 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