How to setup Port 587 for Azure?

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
jhodge2005
New user
New user
Posts: 1
Joined: 2018-08-26 19:43

How to setup Port 587 for Azure?

Post by jhodge2005 » 2018-08-26 20:52

My hMailServer installation on an Azure VM receives incoming mail on Port 25, and I can send mail to myself, but all other outgoing mail results in :
Error Type: SMTP
Connection to recipients server failed.
Error: Host name: <ip address>, message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Tried 5 time(s)

hMailServer
Beginning on November 15, 2017, Azure blocks all outgoing Port 25 for accounts see http://blogs.msdn.microsoft.com/mast/20 ... 17-update/


Using Telnet as recommended in the troubleshooting guide confirms that on the Azure VM Port 25 is blocked and Port 587 is not.

So how can hMailServer can be configured to use Port 587 for outgoing, and what security settings are required by Gmail, Outlook and other servers?

Yes, I could use the Marketplace version, but won't Azure bill me for that? I'm just an experimenter on "free" PAYG Azur

Thanks for any help.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8118
Joined: 2011-09-08 17:48

Re: How to setup Port 587 for Azure?

Post by jimimaseye » 2018-08-26 21:18

You can't. Or rather you could but would achieve nothing. ALL email between external servers is on port 25.

Your only alternative is to use an external relay (that will let you connect to it pin port 587).

[Entered by mobile. Excuse my spelling.]
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

shaulbehr
New user
New user
Posts: 21
Joined: 2015-03-27 12:49

Re: How to setup Port 587 for Azure?

Post by shaulbehr » 2019-05-31 11:06

Ouch. I just hit the same problem.
Can hMailServer not expose a different port, like 587, so that Azure will allow connections through?

User avatar
RvdH
Senior user
Senior user
Posts: 798
Joined: 2008-06-27 14:42
Location: Netherlands

Re: How to setup Port 587 for Azure?

Post by RvdH » 2019-05-31 11:24

CIDR to RegEx: d-fault.nl/CIDRtoRegEx
DNS Lookup: d-fault.nl/DNSTools
DNSBL Lookup: d-fault.nl/DNSBLLookup
GEOIP Lookup: d-fault.nl/GeoipLookup

User avatar
SorenR
Senior user
Senior user
Posts: 3183
Joined: 2006-08-21 15:38
Location: Denmark

Re: How to setup Port 587 for Azure?

Post by SorenR » 2019-06-01 15:37

shaulbehr wrote:
2019-05-31 11:06
Ouch. I just hit the same problem.
Can hMailServer not expose a different port, like 587, so that Azure will allow connections through?
It can, it's a 30 second job in the configuration, only the problem is it takes substantionally longer to make the rest of the world change to port 587.
SørenR.

“With age comes wisdom, but sometimes age comes alone.”
- Oscar Wilde

shaulbehr
New user
New user
Posts: 21
Joined: 2015-03-27 12:49

Re: How to setup Port 587 for Azure?

Post by shaulbehr » 2019-06-02 10:09

SorenR wrote:
2019-06-01 15:37
It can, it's a 30 second job in the configuration, only the problem is it takes substantionally longer to make the rest of the world change to port 587.
Ah. I'm afraid I don't have that long to get this working.
So what options does an Azure user have, if I want to use hMailServer?

User avatar
jimimaseye
Moderator
Moderator
Posts: 8118
Joined: 2011-09-08 17:48

Re: How to setup Port 587 for Azure?

Post by jimimaseye » 2019-06-02 10:24

shaulbehr wrote:
2019-06-02 10:09
SorenR wrote:
2019-06-01 15:37
It can, it's a 30 second job in the configuration, only the problem is it takes substantionally longer to make the rest of the world change to port 587.
Ah. I'm afraid I don't have that long to get this working.
So what options does an Azure user have, if I want to use hMailServer?
Presumably you do have 30 seconds to read posts of advice for the solutions already given above.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

shaulbehr
New user
New user
Posts: 21
Joined: 2015-03-27 12:49

Re: How to setup Port 587 for Azure?

Post by shaulbehr » 2019-06-02 10:51

jimimaseye wrote:
2019-06-02 10:24
Presumably you do have 30 seconds to read posts of advice for the solutions already given above.
Yeah, I saw the one about using an external relay on a different port. Unfortunately my outgoing mail volume is pretty high (I run an email discussion group with about 10,000 users), generating over 100k mails per month, and the costs of the external relays are prohibitive...hence my dependency on hMailServer.
So I was hoping for some other, cheaper solution, else I'll have to use a VM provider other than Azure, which doesn't block port 25.
Thanks anyway.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8118
Joined: 2011-09-08 17:48

Re: How to setup Port 587 for Azure?

Post by jimimaseye » 2019-06-02 11:08

You now know your options .
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829


Post Reply