Mail Server not Listening Correctly

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
caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-01 20:13

I cannot Get the hmail to receive mail. I attached a Picture of a trace file "PublicServerConfig" and that shows that it is not a firewall problem. The capture was taken on the machine running HMailServer. It says its "listening. listeners.png" shows the result of netstat -a and all the listed listeners are hmail. I can send out mail just fine so I know the service is running.

Test: Collect server details
hMailServer version: hMailServer 5.6.7-B2425
Database type: PostgreSQL

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

Test: Test outbound port
SMTP relayer not in use. Attempting mail.hmailserver.com:25...
Local address is 192.168.2.79.
Trying to connect to host mail.hmailserver.com...
Trying to connect to TCP/IP address 5.189.183.138 on port 25.
Received: 220 mail.hmailserver.com ESMTP.
Connected successfully.

Test: Test backup directory
Backup directory C:\Backup is writable.

Test: Test MX records
Trying to resolve MX records for smsmail.pittsburgfoundry.com...
Host name found: smsmail.pittsburgfoundry.com

Test: Test local connect
Connecting to TCP/IP address in MX records for local domain domain smsmail.pittsburgfoundry.com...
Trying to connect to host smsmail.pittsburgfoundry.com...
Trying to connect to TCP/IP address 12.5.172.17 on port 25.
ERROR: It was not possible to connect.
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.
Attachments
listeners.png
listeners.png (5.64 KiB) Viewed 4213 times
PublicServerConfig.png

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

Re: Mail Server not Listening Correctly

Post by jimimaseye » 2018-08-01 20:25

Question: is 12.5.172.17 your external IP address?

If NO: your DNS records are wrong and this is why nothing is connecting

IF YES: you have a firewall problem. Windows firewall, Router - incorrect routing, or ISP port blocking. OR you have misconfigured HMS. Please run this and post the results: viewtopic.php?f=20&t=30914
5.7 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

caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Re: Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-01 21:39

That is my external IP,
Windows Firewall is disabled. Its not a ISP firewall problem as this is a commercial internet connection.



Code: Select all

2018-08-01   Hmailserver: 5.6.7-B2425

DOMAINS

   "Domain1.com" - smxxxxx.pixxxxxxxxxxxxxx.com   Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False
-----------------------------------------------------------------------------------------------

IP RANGES

IP: 127.0.0.1 - 127.0.0.1     Priority: 15     Name: My computer

  Allow connections                         Other
     SMTP:   True                              Antispam :   True !! 'Spam tests' not enabled !!
     POP3:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:   True                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       - False
     Local To External    -  True              Local To External    - False
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External -  True


IP: 0.0.0.0 - 255.255.255.255     Priority: 10     Name: Internet

  Allow connections                         Other
     SMTP:   True                              Antispam :  False
     POP3:   True                              Antivirus:  False
     IMAP:   True                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       -  True
     Local To External    -  True              Local To External    -  True
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External -  True


------------------------------------------------------
AUTOBANNED Local Addresses:
    No entries

-----------------------------------------------------------------------------------------------

AUTOBAN
  Autoban Enabled: False

No problems were found in the IP range configuration.
-----------------------------------------------------------------------------------------------

INCOMING RELAYS
   No entries
-----------------------------------------------------------------------------------------------

MIRRORING         Disabled
-----------------------------------------------------------------------------------------------

PROTOCOLS

SMTP
GENERAL             DELIVERY                  RFC COMPLIANCE            ADVANCED
No. Connections:  0  No Retries:  4 Mins: 60   Plain Text:        False  Bind: 192.168.2.79
                     Host: Domain1.com         Empty sender:       True  Batch recipients:   100
Max Msg Size: 20480  Relay:-                   Incorrect endings:  True  Use STARTTLS:      True
                     (none entered)            Disc. on invalid:  False  Delivered-To hdr: False
                                                                         Loop limit:           5
                                                                         Recipient hosts:     15
  Routes:
     No routes defined.

POP3
  No. Connections: 0

IMAP
 GENERAL                   PUBLIC FOLDERS                    ADVANCED
  No. Connections:   0      Public folder name: #Public       IMAP sort:  True
                                                              IMAP Quota: True
                                                              IMAP Idle:  True
                                                              IMAP ACL:   True
                                                              Delim: "."
-----------------------------------------------------------------------------------------------

ANTISPAM

GENERAL                              SPAM TESTS              Score   SPAMASSASSIN
  Spam Mark:                  5       Use SPF:           False        Use Spamassassin:   False
  Add X-HmailServer-Spam:     True    Check HELO host:   False    
  Add X-HmailServer-Reason:   True    Check MX records:  False    
  Add X-HmailServer-Subject: False    Verify DKIM:       False    

  Spam delete threshold: 20         Maximum message size: 1024

DNSBL ENTRIES:
   No 'enabled' entries

SURBL ENTRIES:
   No 'enabled' entries

GREYLISTING:
  Greylisting:  False

WHITELISTING
   No entries
-----------------------------------------------------------------------------------------------

ANTIVIRUS:  No application configured.

  Block Attachments: False
-----------------------------------------------------------------------------------------------

SSL CERTIFICATES
   No entries
-----------------------------------------------------------------------------------------------

SSL/TLS
             SSL 3.0 :  False
             TLS 1.0 :   True
             TLS 1.1 :   True
             TLS 1.2 :   True                Verify Remote SSL/TLS Certs:   True
SslCipherList  :

ECDHE-RSA-AES128-GCM-SHA256     - ECDHE-ECDSA-AES128-GCM-SHA256   - ECDHE-RSA-AES256-GCM-SHA384     
ECDHE-ECDSA-AES256-GCM-SHA384   - DHE-RSA-AES128-GCM-SHA256       - DHE-DSS-AES128-GCM-SHA256       
kEDH+AESGCM                     - ECDHE-RSA-AES128-SHA256         - ECDHE-ECDSA-AES128-SHA256       
ECDHE-RSA-AES128-SHA            - ECDHE-ECDSA-AES128-SHA          - ECDHE-RSA-AES256-SHA384         
ECDHE-ECDSA-AES256-SHA384       - ECDHE-RSA-AES256-SHA            - ECDHE-ECDSA-AES256-SHA          
DHE-RSA-AES128-SHA256           - DHE-RSA-AES128-SHA              - DHE-DSS-AES128-SHA256           
DHE-RSA-AES256-SHA256           - DHE-DSS-AES256-SHA              - DHE-RSA-AES256-SHA              
AES128-GCM-SHA256               - AES256-GCM-SHA384               - ECDHE-RSA-RC4-SHA               
ECDHE-ECDSA-RC4-SHA             - AES128                          - AES256                          
RC4-SHA                         - HIGH                            - !aNULL                          
!eNULL                          - !EXPORT                         - !DES                            
!3DES                           - !MD5                            - !PSK;                           
-----------------------------------------------------------------------------------------------

TCPIP PORTS                                         Connection Sec
               0.0.0.0         / 25    / SMTP   -   None                
               0.0.0.0         / 110   / POP3   -   None                
               0.0.0.0         / 143   / IMAP   -   None                
               0.0.0.0         / 587   / SMTP   -   None                
-----------------------------------------------------------------------------------------------

LOGGING      Logging Enabled: True

  Paths:-
    Current:  C:\Program Files (x86)\hMailServer\Logs\hmailserver_2018-08-01.log
    Error:    C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2018-08-01.log
    Event:    C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
    Awstats:  C:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
                        APPLICATION -    True
                        SMTP        -    True
                        POP3        -    True
                        IMAP        -    True
                        TCPIP       -    True
                        DEBUG       -    True
                        AWSTATS     -    True
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: PostgreSQL

IPv6 support is available in operating system.

Backup directory C:\Backup is writable.

Relative message paths are stored in the database for all messages.

-----------------------------------------------------------------------------------------------

HMAILSERVER.INI

[Directories]
Program folder:  C:\Program Files (x86)\hMailServer\
Database folder: 
Data folder:     C:\Program Files (x86)\hMailServer\Data
Log folder:      C:\Program Files (x86)\hMailServer\Logs
Temp folder:     C:\Program Files (x86)\hMailServer\Temp
Event folder:    C:\Program Files (x86)\hMailServer\Events

[Database]
Type=              PostgreSQL
Username=          postgres
PasswordEncryption=1
Port=              5432
Server=            127.0.0.1
Internal=          0
-----------------------------------------------------------------------------------------------

Generated by HMSSettingsDiagnostics v1.92, Hmailserver Forum.

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

Re: Mail Server not Listening Correctly

Post by Dravion » 2018-08-01 22:06

The Error message means that the resolved DNS IP lookup was perormed correctly but the IP Address hMailServer has received durning the DNS MX lookup Query isnt routable on the internet.

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

Re: Mail Server not Listening Correctly

Post by jimimaseye » 2018-08-01 22:15

caleb.baker194 wrote:
2018-08-01 21:39
That is my external IP,
Windows Firewall is disabled. Its not a ISP firewall problem as this is a commercial internet connection.
So it is a block of port somewhere else because your server is uncontactable from wan side. However you look at it it is a routing error. Check your router forwarding.

P.s just because it's a commercial connection, don't assume they don't make mistakes or that port 25 INBOUND is open.

[Entered by mobile. Excuse my spelling.]
5.7 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

caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Re: Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-02 15:12

That's why i took the packet capture screen shot. It clearly shows the connection request from the external gmail on my computers network card. So my hardware is getting the request. how can it be a routing error if I see the packet?

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-02 15:46

jimimaseye wrote:
2018-08-01 22:15
P.s just because it's a commercial connection, don't assume they don't make mistakes or that port 25 INBOUND is open.
I see from IP lookup that you have att for service. I Googled "att blocking port 25 static IP" and found many results with business accounts having port 25 blocked. You should call your ISP.

caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Re: Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-02 16:34

palinka wrote:
2018-08-02 15:46
I see from IP lookup that you have att for service. I Googled "att blocking port 25 static IP" and found many results with business accounts having port 25 blocked. You should call your ISP.
test25.png
test25.png (10.81 KiB) Viewed 4184 times
This is what I get if I Stop the hmail service and launch a custom jetty server on port 25. with the hmail service running and the jetty server not running The test fails

EDIT:

Here is the same test with hmail running
hmailTest25.png

caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Re: Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-02 17:20

jimimaseye wrote:
2018-08-01 22:15
So it is a block of port somewhere else because your server is uncontactable from wan side.
I would think that, But its just the hmail service. I can put other services in its place and they work fine On port 25

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-02 17:43

A long shot: delete bind IP in SMTP settings.

Is any software firewall running? They often go with services rather than ports.

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

Re: Mail Server not Listening Correctly

Post by jimimaseye » 2018-08-02 18:06

palinka wrote:
2018-08-02 17:43
A long shot: delete bind IP in SMTP settings.

Code: Select all

Bind: 192.168.2.79
Ah yes. Good call. Remove the bind entry (unless you have multiple NICs you dont need to state it).
5.7 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

caleb.baker194
New user
New user
Posts: 6
Joined: 2018-08-01 19:53

Re: Mail Server not Listening Correctly

Post by caleb.baker194 » 2018-08-02 18:28

palinka wrote:
2018-08-02 17:43
Is any software firewall running?
Windows Defender had apparently blocked the service from running some time back. I had since then disabled windows defender but forget that It re-enables itself after some time. Thanks All so much for the help :mrgreen:

PS.
I also removed the bind Address but cant confirm weather or not that was a piece of it

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-02 18:45

That'll do it.

Better to leave bind IP blank unless there a good reason for it. Could make other services looking for localhost:25 etc not find HMS if it only listens on the lan IP. Just another complication to sort out in future troubleshooting.

And windows firewall is trash. On my win 10 box I couldn't make an exception for RDC work AT ALL. Something buggy or broken. I finally gave up and tried a couple other software firewalls. They all have issues as far as I can tell.

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

Re: Mail Server not Listening Correctly

Post by jimimaseye » 2018-08-02 23:26

palinka wrote:
2018-08-02 18:45
And windows firewall is trash.
It worked here, though, didn't it. :mrgreen:
5.7 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

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-02 23:33

jimimaseye wrote:
2018-08-02 23:26
palinka wrote:
2018-08-02 18:45
And windows firewall is trash.
It worked here, though, didn't it. :mrgreen:
It certainly did. It worked for me too. Kept me out completely!

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

Re: Mail Server not Listening Correctly

Post by jimimaseye » 2018-08-02 23:44

palinka wrote:
2018-08-02 18:45
On my win 10 box I couldn't make an exception for RDC work AT ALL
I certainly have windows firewall enabled and rdp forwarding on my server 2008 r2 without a problem.

[Entered by mobile. Excuse my spelling.]
5.7 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

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-03 02:44

I have no idea why it didn't work but it was the only exception that didn't work. I goolaged it and nothing really came up, so either something got seriously messed up somewhere or I had a conflict. But I couldn't find anything so I have up and blamed Microsoft.

palinka
Senior user
Senior user
Posts: 1942
Joined: 2017-09-12 17:57

Re: Mail Server not Listening Correctly

Post by palinka » 2018-08-03 09:35

Renewed interest led me to find an issue with group policy. Not sure why this wouldn't affect everyone since the default values were untouched. Anyway, I'll test next week. Leaving for a long weekend. :-)

Post Reply