IIS and SMTP - Smart relay for specific domains

This is Interesting: Free IT Magazines  
Home > Archive > IIS and SMTP > December 2004 > Smart relay for specific domains





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Smart relay for specific domains
Mac

2004-12-10, 5:54 pm

Hi,

I'm having a hard time trying send mail *to some domains only* using a
smartserver; in all (95%) other cases, the SMTP engine would send mail
directly, as intended. Has anyone found a hidden setting for this
scenario? or is it just impossible to do so with the vanilla SMTP
engine of IIS?

I tried to add

my.isp.mailserver mx.domain.whose.mailserver.rejects.my.direct.mail

to c:\WINDOWS\system32\drivers\etc\hosts, trying to trick my smtp
service into believing that my ISP's mail server is the MX for that
annoying domain; still, the SMTP engine retrieves the real MX (even
though ping mx.annoyingdomain.com shows my ISP's mail server coming up,
as intended).

IIS 6.0, XP SP2 here.

Thank you in advance for your suggestions,
Mac
Peter D. Hipson

2004-12-11, 8:36 am

I'm only addressing the name resolution issue:

the hosts file is not an acceptable way to define names, generally. MS
has been trying to eliminate this doggie for some time now, but it
takes time.

In my case, I run DNS, with unresolved names being forwarded to my
ISP's DNS as appropriate. Then I can define certain names in the DNS
system the way I want (such as pointing a specific name that may be
defined on the Internet DNS system to point to a local non-routable
name/ip combo.)

Are you running your own DNS? If yes, define that name there. If not,
consider implementing it--DNS is easy to setup, basically start it,
and define the forwarding DNS server (your ISP's) and you are set for
the basic configuration. Then define the offending names/ips as you
wish.

On 10 Dec 2004 22:36:35 GMT, "Mac" <a@b.c> wrote:

>Hi,
>
>I'm having a hard time trying send mail *to some domains only* using a
>smartserver; in all (95%) other cases, the SMTP engine would send mail
>directly, as intended. Has anyone found a hidden setting for this
>scenario? or is it just impossible to do so with the vanilla SMTP
>engine of IIS?
>
>I tried to add
>
>my.isp.mailserver mx.domain.whose.mailserver.rejects.my.direct.mail
>
>to c:\WINDOWS\system32\drivers\etc\hosts, trying to trick my smtp
>service into believing that my ISP's mail server is the MX for that
>annoying domain; still, the SMTP engine retrieves the real MX (even
>though ping mx.annoyingdomain.com shows my ISP's mail server coming up,
>as intended).
>
>IIS 6.0, XP SP2 here.
>
>Thank you in advance for your suggestions,
>Mac


PeterD, the Darkstar Network
To email, fix my address!
ExpertZone!
Mac

2004-12-11, 6:36 pm

Peter D. Hipson wrote:

> the hosts file is not an acceptable way to define names, generally. MS
> has been trying to eliminate this doggie for some time now, but it
> takes time.

I know - and I also know that what I've tried was just an ugly hack.

> Are you running your own DNS? If yes, define that name there. If not,
> consider implementing it

That, I can't do, unfortunately. It's not a matter of know-how, but
alas of "can" vs. "can't" do.

I really wish IIS6's SMTP engine were just a little bit more flexible.
I mean, it's just an SMTP engine, after all; it wouldn't become a
competitor to Exchange by being more complete.
Peter D. Hipson

2004-12-12, 6:36 pm

"Can't do..." Somewhat like trying to drive a car without the igniton
key... <g> It really looks to me that you are trying to do the
impossible. I guess the restriction is your employeer''s right? You
may want to educate them as to that has happened in the last ten years
or so.

On 11 Dec 2004 18:13:57 GMT, "Mac" <a@b.c> wrote:

>Peter D. Hipson wrote:
>
>I know - and I also know that what I've tried was just an ugly hack.
>
>That, I can't do, unfortunately. It's not a matter of know-how, but
>alas of "can" vs. "can't" do.
>
>I really wish IIS6's SMTP engine were just a little bit more flexible.
>I mean, it's just an SMTP engine, after all; it wouldn't become a
>competitor to Exchange by being more complete.


PeterD, the Darkstar Network
To email, fix my address!
ExpertZone!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com