Page 1 of 1

Message could not be delivered

Posted: 2020-02-13 23:07
by sergiortc
I have hMailserver version 6.6 in a windows 2012R2 box in godaddy.com

It's been working just fine since August 2016.

Last week I began having problems delivering some mail.

Some mails is delivered and some is not.

hMailServer sends all email to a relay server in godaddy.

I asked godaddy's support to help me and they answered

"We have tested the connection to telnet and your relay server for the Server.
The test was successful, so at this time we have determined that your relays functionality is working properly. "

Maybe someone in the forum can help me.

The log for the error is:
"SMTPD" 2108 1540 "2020-02-12 10:22:19.972" "73.139.143.164" "RECEIVED: MAIL FROM: <x@x.com>"
"SMTPD" 2108 1540 "2020-02-12 10:22:19.972" "73.139.143.164" "SENT: 250 OK"
"SMTPD" 2140 1540 "2020-02-12 10:22:20.034" "73.139.143.164" "RECEIVED: RCPT TO: <y@y.com>"
"SMTPD" 2140 1540 "2020-02-12 10:22:20.034" "73.139.143.164" "SENT: 250 OK"
"SMTPD" 2116 1540 "2020-02-12 10:22:20.097" "73.139.143.164" "RECEIVED: DATA"
"SMTPD" 2116 1540 "2020-02-12 10:22:20.112" "73.139.143.164" "SENT: 354 OK, send."
"SMTPD" 1424 1540 "2020-02-12 10:22:20.315" "73.139.143.164" "SENT: 250 Queued (0.202 seconds)"
"APPLICATION" 1452 "2020-02-12 10:22:20.331" "SMTPDeliverer - Message 344558: Delivering message from x@x.com to y@y.com. File: C:\Program Files (x86)\hMailServer\Data\{CA0876D9-BA66-4DCF-BE7F-1C02B8127344}.eml"
"SMTPD" 2108 1540 "2020-02-12 10:22:22.894" "73.139.143.164" "RECEIVED: QUIT"
"SMTPD" 2108 1540 "2020-02-12 10:22:22.894" "73.139.143.164" "SENT: 221 goodbye"
"TCPIP" 2104 "2020-02-12 10:22:27.583" "TCP - 73.139.143.164 connected to 192.169.156.251:110."
"APPLICATION" 1452 "2020-02-12 10:22:31.381" "SMTPDeliverer - Message 344558: Relaying to host relay.godaddy.com."
"APPLICATION" 1452 "2020-02-12 10:22:31.381" "SMTPDeliverer - Message 344558: No mail servers could be found for the address y@y.com."
"APPLICATION" 1452 "2020-02-12 10:22:31.381" "SMTPDeliverer - Message 344558: Message could not be delivered. Scheduling it for later delivery in 60 minutes."
"APPLICATION" 1452 "2020-02-12 10:22:31.381" "SMTPDeliverer - Message 344558: Message delivery thread completed."

Then hMailserver retries every hour four times
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: Delivering message from x@x.com to y@y.com. File: C:\Program Files (x86)\hMailServer\Data\{CA0876D9-BA66-4DCF-BE7F-1C02B8127344}.eml"
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: Relaying to host relay.godaddy.com."
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: No mail servers could be found for the address y@y.com."
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: Message could not be delivered. Scheduling it for later delivery in 60 minutes."
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: Message delivery thread completed."

After 5 trials the sender receives an email from hMailServer saying
From: <mailer-daemon@mail.stcsys.com>
To: <x@x.com>
Subject: Message undeliverable: RE: xxxxxx xxxxxxxxxxx xxxxxxxxxxxx
Date: Wed, 12 Feb 2020 15:24:16 -0500

X-Mailer: Microsoft Outlook 16.0

Your message did not reach some or all of the intended recipients.
Sent: Wed, 12 Feb 2020 11:22:16 -0500
Subject: RE: xxxxxx xxxxxxxxxxx xxxxxxxxxxxx
The following recipient(s) could not be reached:
y@y.com
Error Type: SMTP
Error Description: The host specified as SMTP relay server could not be found. Please contact your server administrator.
Tried 5 time(s)
hMailServer

Re: Message could not be delivered

Posted: 2020-02-13 23:30
by palinka

Re: Message could not be delivered

Posted: 2020-02-14 02:50
by mattg
sergiortc wrote:
2020-02-13 23:07
I have hMailserver version 6.6...
I doubt that

(5.7 is a current alpha)

Your issue sounds like a DNS issue, not a hmailserver one

Re: Message could not be delivered

Posted: 2020-02-14 03:18
by sergiortc
My bad, version is 5.6.6-B2383,
Thank you for the call.

Re: Message could not be delivered

Posted: 2020-02-14 03:42
by sergiortc
palinka wrote:
2020-02-13 23:30
Run this and post the results: https://www.hmailserver.com/forum/viewt ... 20&t=30914

Code: Select all

2020-02-13   Hmailserver: 5.6.6-B2383

DOMAINS

   "Domain1.com" - aexxxx.aexx                    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

   "Domain2.com" - anxxx.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

   "Domain3.com" - laxxxxxxxxxxxx.orx             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

   "Domain4.com" - myxxxx.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

   "Domain5.com" - stxxxx.com                     Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:    10240                      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
     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 :   True
     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       -  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: True       Max invalid logon attempts:     10
                              Minutes Before Reset:           30  (0.50 hours, 0.02 days)
                              Minutes to Autoban:            600  (10.00 hours, 0.42 days)

There is a total of 2 auto-ban IP ranges.
-----------------------------------------------------------------------------------------------

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

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

PROTOCOLS

SMTP
GENERAL             DELIVERY                  RFC COMPLIANCE            ADVANCED
No. Connections: 20  No Retries:  4 Mins: 60   Plain Text:         True  Bind: 192.169.156.251
                     Host: EXTERNAL.TLD        Empty sender:       True  Batch recipients:    15
Max Msg Size: 20480  Relay:-                   Incorrect endings:  True  Use STARTTLS:      True
                      EXTERNAL.TLD  (ok)       Disc. on invalid:   True  Delivered-To hdr: False
                     Port:  25                 Max number commands:   5  Loop limit:           5
                     Req Auth: False                                     Recipient hosts:     15
                     Con. Sec.: None
  Routes:
     No routes defined.

POP3
  No. Connections: 40

IMAP
 GENERAL                   PUBLIC FOLDERS                    ADVANCED
  No. Connections:  40      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:    True
  Add X-HmailServer-Spam:     True    Check HELO host:   False        Hostname:       127.0.0.1
  Add X-HmailServer-Reason:   True    Check MX records:  False        Port:                 783
  Add X-HmailServer-Subject:  True    Verify DKIM:       False        Use SA score:        True
              Subject Text: "[SPAM]"
  Spam delete threshold: 100         Maximum message size: 1024

DNSBL ENTRIES:
                  zen.spamhaus.org      Score: 3     Result: 127.0.0.2-8|127.0.0.10-11

SURBL ENTRIES:
                   multi.surbl.org      Score: 3

GREYLISTING:
  Greylisting:  False

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

ANTIVIRUS:  No application configured.

  Block Attachments: True
               *.bat             Batch processing file
               *.cmd             Command file for Windows NT
               *.com             Command
               *.cpl             Windows Control Panel extension
               *.csh             CSH script
               *.exe             Executable file
               *.inf             Setup file
               *.lnk             Windows link file
               *.msi             Windows Installer file
               *.msp             Windows Installer patch
               *.pif             Program Information file
               *.reg             Registration key
               *.scf             Windows Explorer command
               *.scr             Windows Screen saver
-----------------------------------------------------------------------------------------------

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_2020-02-13.log
    Error:    C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2020-02-13.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        -      .
                        IMAP        -    True
                        TCPIP       -    True
                        DEBUG       -      .
                        AWSTATS     -    True
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MSSQL Compact

IPv6 support is available in operating system.

Backup directory C:\Users\sergio\Documents\hMailBackup 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: C:\Program Files (x86)\hMailServer\Database
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=              MSSQLCE
Username=           
PasswordEncryption=1
Port=              0
Server=             
Internal=          1
-----------------------------------------------------------------------------------------------

Generated by HMSSettingsDiagnostics v1.98, Hmailserver Forum.

Re: Message could not be delivered

Posted: 2020-02-14 07:09
by mattg
mattg wrote:
2020-02-14 02:50
Your issue sounds like a DNS issue, not a hmailserver one

Re: Message could not be delivered

Posted: 2020-02-14 15:31
by sergiortc
I checked and the principal domain has 2 dns servers reported.
Any suggestion? Maybe change them for other 2?
Thanks in advance.

Re: Message could not be delivered

Posted: 2020-02-15 00:00
by mattg
"APPLICATION" 1756 "2020-02-12 11:22:51.622" "SMTPDeliverer - Message 344558: Relaying to host relay.godaddy.com."
"APPLICATION" 1452 "2020-02-12 10:22:31.381" "SMTPDeliverer - Message 344558: No mail servers could be found for the address y@y.com."
If there are any MX records, the DNS for the machine that hMailserver is installed on can't find them


In fact, I suspect that hMailserver can't resolve 'relay.godaddy.com'

Re: Message could not be delivered

Posted: 2020-02-15 16:18
by sergiortc
Thank you.
I´ll do what I can to ensure dns works ok.