How do you tell server 2003 not to use IIS for the SMTP?

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 13:11

Hi There,

We've just finished installaing hMailServer but we can't send any mail out.

How do you tell server 2003 not to use IIS for the SMTP? Right now when I do a port scan, I can see that the server is trying to use IIS as the default SMTP server instead of hMailServer.

It's as if the operating system doesn't even know that hMailServer is installed.

I've tried shutting down IIS but that shuts down the smtp service at the same time.

Any ideas?

Thanks

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by percepts » 2014-10-06 13:34

you need to switch off IIS Smtp service. You can't have two services listening on port 25 running at same time.

I don't know how you switch it off because I never used it but it is definitely possible.

possibly through windows program features and setting in control panel (deselect) or possibly therough services control panel (stop service and set to diabled).

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 14:05

That's just it, if you stop IIS you also stop the SMTP service.

SMTP won't work unless IIS is turned on.

I'm turning around in circles here.

There has to be a way I can trick the server to use hMailServer instead of IIS.

Is there anybody here that has encountered a similar issue before?

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by percepts » 2014-10-06 14:10

can you change/configure IIS SMTP to use another port which hmail doesn't use. e.g. port 2525

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 14:32

We're using port 587, no 25 so it should work.

That's the way we have it setup using port 587 on 3 other hmailservers and they all rung fine on port 587.

I just don't see what's going on in here???

I'm really confused on that one.

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 14:39

Here's the port scan from the new server that *won't work* on SMTP:

---- 587/tcp open smtp Microsoft ESMTP 6.0.3790.4675

Now compare that to this one that *works fine* on our of our 3 hmailservers:

---- 587/tcp open smtp hMailServer smtpd

Microsoft ESMTP 6.0 is the default IIS smtp server, instead I want it to read hMailServer.

That's where my problem is, but I just don't know how to fix it.

Any help will be greatly appreciated!

Thank you.

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by percepts » 2014-10-06 14:39

hmail MUST be listening on port 25. ALL incoming mail from other servers will be coming in port 25.

So its IIS SMTP which must be switched to a different port. eg. port 2525.

Port 587 is only used for sending from email client to hmailserver and not from hmailserver to recipients server. So again port 25 must open on hmail so that it can send out on port 25 because every other server in the world will be expecting to gets its incoming mail on port 25 unless its a private configuration for specific clients.

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 14:48

With all due respect sir, port 25 is closed on our 3 other hMailServers and SMTP works fine on port 587. All three servers have been running and still are running fine. And it's been 2 1/2 years now.

We need to have this one setup in the same manner.

skrzat
Normal user
Normal user
Posts: 38
Joined: 2009-08-17 08:57

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by skrzat » 2014-10-06 15:01

gcis2014 wrote:With all due respect sir, port 25 is closed on our 3 other hMailServers and SMTP works fine on port 587. All three servers have been running and still are running fine. And it's been 2 1/2 years now.

We need to have this one setup in the same manner.
You can have i.e. port 33333, but you have forward public port 25 to internal 33333. I think other servers need port 25 to send to your server. Am I wrong?

percepts
Senior user
Senior user
Posts: 5282
Joined: 2009-10-20 16:33
Location: Sceptred Isle

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by percepts » 2014-10-06 15:03

perhaps you better start explaining your setup because I'm not telepathic.

Are you telling me that these other servers are receiving mail from external sources on port 587 ?

Or are they perhaps internal servers only and receiving mail from your own gateway on port 587 ?

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 15:04

I'm willing to try anything!

So where do I go in IIS to switch the SMTP listening port from 25 to another one?

I've googled it but I only get stuff related to Exchange Server which we don't want to use.

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 15:07

By the way, I forgot to mention that we're only using hMailServer for smtp service only.

POP3 and IMAP is hosted in a different data center which is the way our other 3 hMailServers are configured as well.

gcis2014
New user
New user
Posts: 8
Joined: 2014-10-06 13:02

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by gcis2014 » 2014-10-06 19:44

Any clues anybody?

I need to have this thing going asap.

User avatar
mattg
Moderator
Moderator
Posts: 20799
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by mattg » 2014-10-07 00:49

You can have IIS running and turn IIS SMTP off

If you need to run both IIS SMTP + hMailserver on the same machine than you MUST change the ports for IIS SMTP
(It's been a while, and I'm not sure that I have any Server 2003 left...)

I recall that you set the outgoing port in 'Smart Host' settings in IIS SMTP.
I think that incoming port is in IIS SMTP Advanced settings.

I have previously used IIS SSMP + hmailserver on the same Server 2003 machine, but that was a while ago.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

LesD
Senior user
Senior user
Posts: 343
Joined: 2009-01-15 20:22
Location: London, UK.

Re: How do you tell server 2003 not to use IIS for the SMTP?

Post by LesD » 2014-10-20 20:02

Is this any help?

https://www.microsoft.com/technet/prodt ... x?mfr=true

Just noticed the date. Problem gone away I suppose.

Post Reply