Setup not working

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
howzthisusername
New user
New user
Posts: 21
Joined: 2014-10-14 20:37

Setup not working

Post by howzthisusername » 2019-04-10 20:20

Hi, I just did a couple of things at the same time
1 - moved DNS to cloudflare
2 - moved existing hMailServer to new server - same settings
3 - had to redo firewall rules on new server

but its not working
I have several domains all on ip xxx.xxx.xxx.xxx and another that I use for email at xxx.xxx.xxx.zzz
I am using a gmail account to send an email to an test@mydomain.com which goes through hMail.
That account forwards to a 2nd gmail account
I have logging on but am not getting anything
I have checked the DNS on intoDNS and it all checks out
Any suggestions on what I am doing wrong will be appreciated

DNS
--------------------------------------
website domain
mydomain.com
A @ xxx.xxx.xxx.xxx (orange cloud)
A mail xxx.xxx.xxx.zzz (grey cloud)
MX mail.myemail.com

(email domain)
myemail.com
A @ xxx.xxx.xxx.xxx (orange cloud)
A mail xxx.xxx.xxx.zzz (grey cloud)
mx mail.myemail.com
---------------------------------
windows firewall (all per my previous setup - these are the only things using these ports)
smtp port 25 open in and out
pop3 port 110 open in and out
imap port 143 open in and out
hmail.exe rules for UDP and TCP domains and then for public/private
---------------------------------
hmailserver
smtp settings
bind to: xxx.xxx.xxx.zzz
local host name: mail.myemail.com

Thanks
Kevin

User avatar
Dravion
Senior user
Senior user
Posts: 1466
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Setup not working

Post by Dravion » 2019-04-10 21:33

Are you on Amazon or something?

Try installing Wireshark and see if you have inbound/outbound traffic on that Network Interface Card.
You also need Submission (Port 587) and/or SMTPS (Port 465) for your sending Email Client. POP3/IMAP is only for receiving,
not sending. SMTP on Port 25 is for SMTP 2 other SMTP only since decades.

howzthisusername
New user
New user
Posts: 21
Joined: 2014-10-14 20:37

Re: Setup not working

Post by howzthisusername » 2019-04-10 22:38

Thanks for reply.
I am on a VPS but not with Amazon
I applied the firewall rules per your earlier post on firewall settings
I downloaded wireshark and - not that I know what I'm doing - and ran the capture for about a minute and saw a bunch of traffic on both ips x.x.x.65 and x.x.x.137. Not sure if that's good or bad. The websites are on .65 and they are working fine. Below is a small sample of what I captured - I shortened the ips to the last section. --.137 is my mail server. Not sure what this traffic is but does this mean its alive at least? The data is not continuous- just grabbed a couple of records randomly.

8223 47.040178 --.179 --.137 TLSv1.2 180 Application Data
8240 47.128879 --.177 --.137 TLSv1.2 120 Application Data
8242 47.132310 --.177 --.137 TLSv1.2 92 Application Data
8244 47.135991 --.177 --.137 TCP 60 4925 → 3389 [RST, ACK] Seq=1375 Ack=2192 Win=0 Len=0
8247 47.148367 --.177 --.137 TCP 66 7253 → 3389 [SYN, ECN, CWR] Seq=0 Win=8192 Len=0 MSS=1460 WS=256 SACK_PERM=1
8462 48.210589 --.65 --.137 TLSv1.2 209 Client Hello

Still not working and not seeing anything in the hmail logs

User avatar
Dravion
Senior user
Senior user
Posts: 1466
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Setup not working

Post by Dravion » 2019-04-10 23:14

Run the following Firewall commands on a elevated Windows Command Prompt:

1) SMTP
netsh advfirewall firewall add rule name="SMTP" dir=in action=allow protocol=TCP localport=25
netsh advfirewall firewall add rule name="SMTP" dir=out action=allow protocol=TCP localport=25

2) Submission
netsh advfirewall firewall add rule name="SMTPS" dir=in action=allow protocol=TCP localport=587
netsh advfirewall firewall add rule name="SMTPS" dir=out action=allow protocol=TCP localport=587

3) IMAP
netsh advfirewall firewall add rule name="IMAP" dir=in action=allow protocol=TCP localport=143
netsh advfirewall firewall add rule name="IMAP" dir=out action=allow protocol=TCP localport=143

In hMailServerAdmin define Port 25 SMTP, Port 143 as IMAP, Port 587 as SMTP


PS: If there is any previous rule, it will be overriden with the correct port settings.

howzthisusername
New user
New user
Posts: 21
Joined: 2014-10-14 20:37

Re: Setup not working

Post by howzthisusername » 2019-04-11 00:14

I ran those and voila it has woken up (the rules in there were what I had copied over from the old setup - guess something was off)

But - not there yet- I am seeing activity in the logs but all are blocked by ip range or connection limit. I think these are legit blocks due to previous auto-bans but not 100% sure.

Before you replied I ran diagnostics and got the following - the host name was resolved in the MX test but not elsewhere
(I have tried running diagnostics again after making your changes but keep getting an error)


Test: Test IPv6
IPv6 support is available in operating system.

Test: Test outbound port
SMTP relayer not in use. Attempting mail.mydomain.com:25...
Local address is --.137.
Trying to connect to host mail.myemail.com...
ERROR: The host name mail.myemail.com could not be resolved.

Test: Test backup directory
ERROR: Backup directory has not been specified.

Test: Test MX records
Trying to resolve MX records for myemail.com...
Host name found: mail.myemail.com

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain myemail.com...
Trying to connect to host mail.myemail.com...
ERROR: The host name mail.myemail.com could not be resolved.
ERROR: Was not able to open connection.

Test: Test message file locations
Relative message paths are stored in the database for all messages.

Test: Test IP range configuration
No problems were found in the IP range configuration.

howzthisusername
New user
New user
Posts: 21
Joined: 2014-10-14 20:37

Re: Setup not working

Post by howzthisusername » 2019-04-11 08:27

Dravion, thanks for your help
After I made the changes I started seeing a lot of traffic on the log screen but it was all blocked by ip range or connection limit
I looked up some of the ips and they were mostly from russia so I figured they were on my long list of auto-bans
But then I also started seeing a lot of ips that I found to be from google
I finally looked at my ip ranges and discovered that the ip ranges for the internet had been corrupted - so nothing was getting through
(I had data in a SQLCE DB but I changed over to SQL Server Express - and during this process I guess this data got messed up)
So I fixed that and the inbox started to fill up.

So thanks again
time for bed

Kevin

jswami122
New user
New user
Posts: 1
Joined: 2019-04-09 13:03

Re: Setup not working

Post by jswami122 » 2019-04-11 09:09

Is your setup start working? If so, then please tell me also.

howzthisusername
New user
New user
Posts: 21
Joined: 2014-10-14 20:37

Re: Setup not working

Post by howzthisusername » 2019-04-11 16:19

Yes - everything is good now. I turned off some of the security while I was testing it so now I have to add that back in.
Not sure I'm in the mood though, not much sleep last night, but appreciate all your help

Post Reply