Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Having problems hosting multiple SMTP servers on Windows 2..

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Related Topics:
CDO for W2K, LogonSMTP & Multiple SMTP Servers on the same.. - Hello I have three (IIS) SMTP Servers set-up on my server, all listening on different IP One of them is to receive incoming mail. This is working fine and messages are appearing in the drop folder within it's mail root. I wish to..

multiple smtp servers on same physical box - Hi All! I have this app which sends over 100k emails a day. For some reason I had to create 5 smtp servers on the same box. And the app was randomly using those 5 servers. This however made app slow. The rate of sending mails came down instead of going.

How to set up multiple IIS 6.0 Servers Hosting the same .N.. - I have a simple but common) dilemma. Here is my I have a intranet going against SQL Server which works great on a single IIS Server. It is a pretty OLTP with a..

multiple web servers under one IP - i am running one IIS web server in a small office, and am setting up another web server running for testing purposes. if the first web server defaults at port 80 on my firewall, how should I configure access to the second web server? thanks

SSL Certificate over multiple servers - Can anyone advise! I wish to run an SSL secure site over multiple web servers. I generated an CSR on one web server and received the back from verisign and installed on this server. I then backed up the cert & private key and
Next:  IIS: WEB-FARM, configure more than one IIS  
Author Message
Dave

External


Since: Nov 23, 2005
Posts: 3



(Msg. 1) Posted: Wed Feb 22, 2006 11:27 pm
Post subject: Having problems hosting multiple SMTP servers on Windows 2000 Server
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hello,

I have a Windows 2000 Server box that has 5 SMTP virtual servers
installed, each with thier own IP address. I'm using the following code
VB.NET code (ASP.NET 1.1) to send emails:

Message.From = From
Message.To = ToWho
SmtpMail.SmtpServer = "smtp.clickforlessons.com"
Message.BodyFormat = MailFormat.Html
Message.Subject = Subject
System.Web.Mail.SmtpMail.Send(Message)

When sending emails through .NET from the server with the above code,
the emails goes directly into the SPAM folder (on Yahoo accounts).
It's being rejected on other domains as well, but yahoo is easy to
reproduce... I think (not positive) that the following message headers
confirm why it becomes marked as SPAM:

X-Apparently-To: davemehle DeleteThis @yahoo.com via 209.191.68.202; Wed, 22 Feb
2006 22:48:28 -0800
X-Originating-IP: [69.43.178.51]
Return-Path: <info DeleteThis @clickforlessons.com>
Authentication-Results: mta342.mail.scd.yahoo.com
from=clickforlessons.com; domainkeys=neutral (no sig)
Received: from 69.43.178.51 (EHLO smtp.clickforlessons.com)
(69.43.178.51) by mta342.mail.scd.yahoo.com with SMTP; Wed, 22 Feb 2006
22:48:27 -0800
Received: from rdweb ([69.43.178.53]) by smtp.clickforlessons.com with
Microsoft SMTPSVC(5.0.2195.6713); Wed, 22 Feb 2006 22:53:54 -0800
From: info DeleteThis @clickforlessons.com Add to Address Book Add Mobile Alert
To: davemehle DeleteThis @yahoo.com
Subject: Test email from click for lessons
Date: Wed, 22 Feb 2006 22:53:54 -0800
Message-ID: <052801c63845$e956b330$33b22b45@rdweb>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0529_01C63802.DB337330"
X-Mailer: Microsoft CDO for Windows 2000
Thread-Index: AcY4RelWpYtv491mTlyWe3ltJzZ1hg==
Content-Class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Return-Path: info DeleteThis @clickforlessons.com
X-OriginalArrivalTime: 23 Feb 2006 06:53:54.0531 (UTC)
FILETIME=[E956B330:01C63845]
Content-Length: 353

Notice the 2 recieved's? Why is the top one even there? it's the wrong
IP address...

smtp.clickforlessons.com resolves to 69.43.178.53 (which is what the
SMTP server is using). The IP 69.43.178.51 is also on the same box
(along with about 8 other IPs). It seems that the .NET code above is
being ignored??? Why does it say Recieved: from 69.43.178.51,
shouldn't it say 69.43.178.53 or not be there at all?

Some Tidbits:
1) smtp.clickforlessons.com is not on any SPAM blacklists (according to
dnsstuff.com)
2) smtp.clickforlessons.com is configured correctly as far as
dnsreports.com
3) I do have a seperate mail server that hosts POP email for
clickforlessons.com and my MX records for clickforlessons.com are
pointing there... but I can't imagine this has anything to do with
it...

Any help would be greatly appreciated.
Dave

 >> Stay informed about: Having problems hosting multiple SMTP servers on Windows 2.. 
Back to top
Login to vote
Sanford Whiteman

External


Since: Feb 09, 2006
Posts: 21



(Msg. 2) Posted: Thu Feb 23, 2006 3:43 am
Post subject: Re: Having problems hosting multiple SMTP servers on Windows 2000 Server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>smtp.clickforlessons.com resolves to 69.43.178.53 (which is what the
>SMTP server is using). The IP 69.43.178.51 is also on the same box
>(along with about 8 other IPs). It seems that the .NET code above is
>being ignored??? Why does it say Recieved: from 69.43.178.51,
>shouldn't it say 69.43.178.53 or not be there at all?

It is quite expected that you will have two Received: headers, one for
each hop made using the SMTP protocol. The first is from the SMTP
client to the IIS SMTP virtual server, and second is from the IIS SMTP
virtual server to yahoo.com.

Outgoing connections from a single NIC will use the primary IP address
bound to that NIC, regardless of the IP binding of the virtual server
to which the message was originally submitted.

If there is only one IP address intended to originate mail from this
box (and there can only be one such address if you have one NIC), the
PTR for that IP address must complete an EHLO-PTR-A-IP "DNS roundtrip"
to ensure delivery. That is, the PTR for that IP must match the EHLO
sent by that IP; the PTR must also have a corresponding A record that
points back to the originating IP.

The above requirement is not met here. The machine EHLOs as
smtp.clickforlessons.com, but the PTR for .51 is
www.clickforlessons.com: roundtrip failure. You're _almost_ good,
because you do indeed have PTRs in place, and they are symmetrical --
but you need to match the EHLO (the VS FQHN) to the PTR for the
originating IP.

It would be advisable in the interest of overall compliance to modify
the zero-hop SMTP client so that it announces itself using a
round-trip-complete FQHN rather than simply as 'rdweb,' though this is
unlikely to be processed by yahoo.com.

It would also be advisable to upgrade your mailbox server to the
latest update of IMail 8.0x, which contains numerous bug fixes over
the released 8.00.

You are correct that the MX and mailbox servers for your domain are
irrelevant to the discussion.

--Sandy

 >> Stay informed about: Having problems hosting multiple SMTP servers on Windows 2.. 
Back to top
Login to vote
Dave

External


Since: Nov 23, 2005
Posts: 3



(Msg. 3) Posted: Thu Feb 23, 2006 10:50 pm
Post subject: Re: Having problems hosting multiple SMTP servers on Windows 2000 Server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Sandy!

Thanks for your reply! Well, I'm a little confused by your answer. The
short reason is that I'm clearly not as knowlegable as you in this
stuff. I'm not exactly sure what I need to do to fix this? When you
say "you need to match the EHLO (the VS FQHN) to the PTR for the
originating IP" I'm not sure how to do that? Part of my problem is
that don't really understand what EHLO means..(I think I understand
most, but not all, of the remaining part of your reply). I'm running
Windows 2000 servers and I have my own (2) name servers. Do I need to
make dns changes? Or do I need to re-think which domains I'm using to
send the emails from the website (i'm not married to
smtp.clickforlessons.com - i just created it recently anyway)

It's funny you mentioned that it would use the IP from the NIC, cuz
that's exactly what it's doing. In fact, I have a dual NIC server and
it's using the 2 IPs that are bound to the each NIC. It actually uses
either of those two (rather unpredictibly). I actually started to type
that fact in my original message but later removed it thinking how
crazy I sounded... Anyway, I can't believe it's switching IP's like
that, isn't that the point of SMTP (to keep the IP that you have setup
in the SMTP server)?

I feel as if I'm really close to resolving this...

Thanks!
Dave
 >> Stay informed about: Having problems hosting multiple SMTP servers on Windows 2.. 
Back to top
Login to vote
Sanford Whiteman

External


Since: Feb 09, 2006
Posts: 21



(Msg. 4) Posted: Fri Feb 24, 2006 2:53 am
Post subject: Re: Having problems hosting multiple SMTP servers on Windows 2000 Server [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>When you say "you need to match the EHLO (the VS FQHN) to the PTR for the
>originating IP" I'm not sure how to do that? Part of my problem is
>that don't really understand what EHLO means...

EHLO <fully_qualified_hostname_of_client>

is the RFC-specified way an (E)SMTP client says, "Hello, I am
<fully_qualified_hostname>" when it's connecting to a remote server.

This command is sent right after the remote server has sent its own
"Hello," the RFC-specified banner that looks like

220 <fully_qualified_hostname_of_server>

So the text after the 220 is referred to in shorthand as "the 220,"
while the text after the EHLO is referred to as "the EHLO."

Figuring out what each of these strings _should_ be in a given SMTP
conversation is actually quite easy, but people seem to find
innumerable ways to muck it up. Smile And IIS' habit of "rounding down"
to the primary IP for outbound connections encourages such screwups.
Your confusion is understandable.

As I was saying earlier, the client's EHLO should be the canonical
(e.g., "primary" or "true") hostname associated with the IP that the
client uses to connect. The published PTR of that IP is accepted to
be the canonical hostname for these purposes (that's essentially what
a PTR "is," anyway). Since, as you now know, the IP used to connect
will be the primary IP bound to a NIC, and not its secondary/tertiary
IPs, you need to put the primary IP's PTR in IIS' 'Fully Qualified
Domain Name' field under Properties-Delivery-Advanced Delivery. This
field is used as the EHLO. It is a misnomer, as I see it, since the
field as used by the SMTP protocol refers not to a DNS zone/domain but
to a hostname, but I digress. . . for this discussion, "FQDN" =
"FQHN."

>(I think I understand>most, but not all, of the remaining part of your reply). I'm running
>Windows 2000 servers and I have my own (2) name servers. Do I need to
>make dns changes? Or do I need to re-think which domains I'm using to
>send the emails from the website (i'm not married to
>smtp.clickforlessons.com - i just created it recently anyway)

You just need to be aware of your IP binding order and determine
whether you want to reshuffle the IPs so that a new IP is the primary
one, or leave the current one in place and match to that. Whichever
IP is primary becomes the IP of _outgoing_ connections from the SMTP
virtual server (and, in fact, of outgoing connections from _any_ SMTP
virtual server bound to any IP on that NIC). So, think about how the
machine will look to the outside. If the primary IP's PTR starts with
"www" in it, that might look less professional than having the primary
IP be one that has "smtp" in its PTR. But either one will work fine,
and no remote server will make any value judgments, as long as the PTR
for that IP matches the EHLO sent -> the PTR has a corresponding A
record -> that A record points back to the IP. That's a roundtrip.

But see below for the other issues vis-a-vis physically multihomed
servers.

>It's funny you mentioned that it would use the IP from the NIC, cuz
>that's exactly what it's doing.

Yep, I knew that right away. Smile

>In fact, I have a dual NIC server and it's using the 2 IPs that are bound to the each NIC. It actually uses
>either of those two (rather unpredictibly). I actually started to type
>that fact in my original message but later removed it thinking how
>crazy I sounded... Anyway, I can't believe it's switching IP's like
>that, isn't that the point of SMTP (to keep the IP that you have setup
>in the SMTP server)?

Well, yes and no. The main purpose -- in fact, the only practical
purpose when you have one NIC -- of running multiple IP-bound virtual
servers under IIS SMTP is to have many different _listening_ IPs that
can each use the well-known port 25, outside servers can connect
directly to each one, and each one can have its own policies for
message size, allowed senders/recipients, and so on. That's a great
feature. But it doesn't have any guaranteed relevance to the IP used
for _outgoing_ connections.

What you're seeing overall is a combination of these two factors:

1) Generic client socket IP binding in IIS. Outbound sessions from
IIS use a classic systems programming directive called INADDR_ANY.
This instructs the TCP/IP stack to bind to the primary IP (well,
technically, it allows the TCP/IP stack to choose its own IP, instead
of it being specifically dictated by the application, and the stack's
default behavior is as observed). Windows applications don't have to
do this: it's quite possible for even a basic TCP/IP app to request a
client-side binding to a particular IP. But IIS does not, so you get
that "rounding down" effect.

2) Automatic interface metrics. Each physical interface in Windows
has a weight assigned to it that will dictate its preference when
routing tables do not otherwise apply. You have your two NICs both
set to "automatic metric." This means that you will see both NICs --
that is, each one's primary IP -- used for outbound connections in a
seemingly willy-nilly fashion. That's the "crazy" behavior you're
seeing, and you are really seeing it! The only way to control this is
to manually set metrics for the interfaces, so that only one will be
used for outbound connections to unknown remote servers.

This may seem contrary to an original idea you had that you would get
some simple load-balancing going over both NICs. You should probably
rethink this; it's not quite that simple.

First of all, if your NIC vendor offers any kind of
bonding-plus-failover "team" option (I know Intel, Broadcom, and 3Com
do), you can just create a "team" that will then present itself as one
virtual interface, with only one list of IPs. That will establish
that you will only have one possible outgoing IP, and you'll still get
load-balancing with failover. If you can do this, I'd say go for it.

Second option would be to dedicate one NIC to all incoming connections
traffic and the other to outgoing connections. Set up one NIC with an
interface metric of 1 and the other with metric 2. Bind just one IP to
the one with metric 1. That becomes your outgoing IP, because the
stack will always choose that NIC for outgoing connections. Bind your
other IPs to the NIC with metric 2. This will be the NIC that
receives incoming connections to those IPs. This will work, but it's
certainly non-standard. I'd really try to "virtualize" the NICs into
a team first.

Let me know if this pretty technical stuff is making you feel worse or
better.

--Sandy
 >> Stay informed about: Having problems hosting multiple SMTP servers on Windows 2.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]