Sending email to external domain receiver goes into infinite loop

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
Luket
New user
New user
Posts: 24
Joined: 2018-01-03 15:45

Sending email to external domain receiver goes into infinite loop

Post by Luket » 2018-01-04 13:44

I all,
this post is to report a problem sending email by hmailserver.

Sending emails is fine between accounts within my domains, but is not possible if receiver belongs to an external domain.
If receiver belongs to an external domains then the email goes into an infinite loop between sender and receiver.

Before to proceed with related logs it has to be sed i was in trouble during hMailServer-5.6.6-B2383 installation as libmysql.dll was not accepted.
To solve this issue I applied solution suggested into Issue with libmysql.dll post:
libmysql.dll from mysql-connector-c-6.1.9-win32 has been stored into hMailServer/Bin directory.

Following you can find HMSSettingsDiagnostics report:

[code]2018-01-04 Hmailserver: 5.6.6-B2383

DOMAINS

"Domain1.com" - a.zaxxx.me 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" - l.zaxxx.me 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 : False
POP3: False Antivirus: False
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: False 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 - False
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: 3
Minutes Before Reset: 30 (0,50 hours, 0,02 days)
Minutes to Autoban: 60 (1,00 hours, 0,04 days)

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: True Bind:
Host: EXTERNAL.TLD Empty sender: True Batch recipients: 100
Max Msg Size: 20480 Relay:- Incorrect endings: False Use STARTTLS: True
(none entered) Disc. on invalid: True Delivered-To hdr: True
Max number commands: 100 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-01-04.log
Error: C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2018-01-04.log
Event: C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
Awstats: C:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
APPLICATION - .
SMTP - True
POP3 - .
IMAP - .
TCPIP - True
DEBUG - .
AWSTATS - .
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MySQL

IPv6 support is available in operating system.

Backup directory D:\hMail BKP 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= MYSQL
Username= root
PasswordEncryption=1
Port= 3306
Server= localhost
Internal= 0
-----------------------------------------------------------------------------------------------

[/code]
Generated by HMSSettingsDiagnostics v1.88, Hmailserver Forum.

Then, following you will find part of log of infinte loop.

[code]
"TCPIP" 3464 "2018-01-04 12:26:27.274" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 3464 2657 "2018-01-04 12:26:27.281" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 868 2657 "2018-01-04 12:26:27.290" "2.236.184.53" "RECEIVED: EHLO [IPv6:::ffff:192.168.21.70]"
"SMTPD" 868 2657 "2018-01-04 12:26:27.297" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.309" "2.236.184.53" "RECEIVED: AUTH LOGIN"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.314" "2.236.184.53" "SENT: 334 VXNlcm5hbWU6"
"SMTPD" 868 2657 "2018-01-04 12:26:27.320" "2.236.184.53" "RECEIVED: bHVjYUBsLnphcHBpLm1l"
"SMTPD" 868 2657 "2018-01-04 12:26:27.327" "2.236.184.53" "SENT: 334 UGFzc3dvcmQ6"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.333" "2.236.184.53" "RECEIVED: ***"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.340" "2.236.184.53" "SENT: 235 authenticated."
"SMTPD" 868 2657 "2018-01-04 12:26:27.346" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 868 2657 "2018-01-04 12:26:27.353" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.358" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.363" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3464 2657 "2018-01-04 12:26:27.369" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 3464 2657 "2018-01-04 12:26:27.374" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2657 "2018-01-04 12:26:27.539" "2.236.184.53" "SENT: 250 Queued (0.176 seconds)"
"TCPIP" 2024 "2018-01-04 12:26:27.540" "DNS MX lookup: hotmail.com"
"SMTPD" 868 2657 "2018-01-04 12:26:27.548" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 868 2657 "2018-01-04 12:26:27.554" "2.236.184.53" "SENT: 221 goodbye"
"TCPIP" 2024 "2018-01-04 12:26:27.606" "DNS - MX Result: 2 IP addresses were found."
"TCPIP" 2024 "2018-01-04 12:26:27.611" "Connecting to 104.47.1.33:25..."
"TCPIP" 3464 "2018-01-04 12:26:27.616" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 3464 2668 "2018-01-04 12:26:27.621" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPC" 868 2669 "2018-01-04 12:26:27.625" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 868 2669 "2018-01-04 12:26:27.630" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.635" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.639" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.644" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.649" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.653" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.658" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 868 2669 "2018-01-04 12:26:27.663" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2669 "2018-01-04 12:26:27.667" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.672" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.677" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.682" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.686" "104.47.1.33" "SENT: DATA"
"SMTPD" 868 2668 "2018-01-04 12:26:27.691" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 868 2668 "2018-01-04 12:26:27.695" "2.236.184.53" "SENT: 354 OK, send."
"SMTPC" 3532 2669 "2018-01-04 12:26:27.702" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 3532 2669 "2018-01-04 12:26:27.706" "104.47.1.33" "SENT: [nl]."
"SMTPD" 1936 2668 "2018-01-04 12:26:27.721" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"
"TCPIP" 3936 "2018-01-04 12:26:27.723" "DNS MX lookup: hotmail.com"
"SMTPC" 12396 2669 "2018-01-04 12:26:27.726" "104.47.1.33" "RECEIVED: 250 Queued (0.016 seconds)"
"TCPIP" 3936 "2018-01-04 12:26:27.731" "DNS - MX Result: 2 IP addresses were found."
"SMTPC" 12396 2669 "2018-01-04 12:26:27.735" "104.47.1.33" "SENT: QUIT"
"TCPIP" 3936 "2018-01-04 12:26:27.739" "Connecting to 104.47.1.33:25..."
"SMTPD" 868 2668 "2018-01-04 12:26:27.744" "2.236.184.53" "RECEIVED: QUIT"
"TCPIP" 3464 "2018-01-04 12:26:27.749" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 868 2668 "2018-01-04 12:26:27.753" "2.236.184.53" "SENT: 221 goodbye"
"SMTPD" 3464 2670 "2018-01-04 12:26:27.758" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPC" 8284 2669 "2018-01-04 12:26:27.761" "104.47.1.33" "RECEIVED: 221 goodbye"
"SMTPC" 868 2671 "2018-01-04 12:26:27.766" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 868 2671 "2018-01-04 12:26:27.775" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.782" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.786" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.791" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.796" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.801" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.807" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.811" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.817" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.822" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.827" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.831" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.836" "104.47.1.33" "SENT: DATA"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.840" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.845" "2.236.184.53" "SENT: 354 OK, send."
"SMTPC" 3464 2671 "2018-01-04 12:26:27.850" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 3464 2671 "2018-01-04 12:26:27.855" "104.47.1.33" "SENT: [nl]."
"SMTPD" 1936 2670 "2018-01-04 12:26:27.870" "2.236.184.53" "SENT: 250 Queued (0.032 seconds)"
"TCPIP" 2024 "2018-01-04 12:26:27.871" "DNS MX lookup: hotmail.com"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.874" "104.47.1.33" "RECEIVED: 250 Queued (0.032 seconds)"
"TCPIP" 2024 "2018-01-04 12:26:27.879" "DNS - MX Result: 2 IP addresses were found."
"SMTPC" 8284 2671 "2018-01-04 12:26:27.883" "104.47.1.33" "SENT: QUIT"
"TCPIP" 2024 "2018-01-04 12:26:27.888" "Connecting to 104.47.1.33:25..."
"SMTPD" 3464 2670 "2018-01-04 12:26:27.892" "2.236.184.53" "RECEIVED: QUIT"
"TCPIP" 868 "2018-01-04 12:26:27.897" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 3464 2670 "2018-01-04 12:26:27.901" "2.236.184.53" "SENT: 221 goodbye"
"SMTPD" 868 2672 "2018-01-04 12:26:27.905" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.910" "104.47.1.33" "RECEIVED: 221 goodbye"
"SMTPC" 3464 2673 "2018-01-04 12:26:27.915" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 3464 2673 "2018-01-04 12:26:27.924" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPD" 868 2672 "2018-01-04 12:26:27.929" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 868 2672 "2018-01-04 12:26:27.933" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 8284 2673 "2018-01-04 12:26:27.938" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 8284 2673 "2018-01-04 12:26:27.942" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.947" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.952" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.956" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.960" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.965" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.970" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.974" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.978" "104.47.1.33" "SENT: DATA"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.983" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.988" "2.236.184.53" "SENT: 354 OK, send."
"SMTPC" 868 2673 "2018-01-04 12:26:27.992" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 868 2673 "2018-01-04 12:26:27.997" "104.47.1.33" "SENT: [nl]."
"SMTPD" 1936 2672 "2018-01-04 12:26:28.011" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"
"TCPIP" 3936 "2018-01-04 12:26:28.013" "DNS MX lookup: hotmail.com"
"SMTPC" 8284 2673 "2018-01-04 12:26:28.017" "104.47.1.33" "RECEIVED: 250 Queued (0.016 seconds)"
"TCPIP" 3936 "2018-01-04 12:26:28.021" "DNS - MX Result: 2 IP addresses were found."
"SMTPC" 8284 2673 "2018-01-04 12:26:28.025" "104.47.1.33" "SENT: QUIT"
"TCPIP" 3936 "2018-01-04 12:26:28.029" "Connecting to 104.47.1.33:25..."
"SMTPD" 3464 2672 "2018-01-04 12:26:28.034" "2.236.184.53" "RECEIVED: QUIT"
"TCPIP" 868 "2018-01-04 12:26:28.039" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 3464 2672 "2018-01-04 12:26:28.042" "2.236.184.53" "SENT: 221 goodbye"
"SMTPD" 868 2674 "2018-01-04 12:26:28.047" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPC" 8284 2673 "2018-01-04 12:26:28.051" "104.47.1.33" "RECEIVED: 221 goodbye"
"SMTPC" 12396 2675 "2018-01-04 12:26:28.055" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 12396 2675 "2018-01-04 12:26:28.063" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.068" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.073" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 868 2675 "2018-01-04 12:26:28.077" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 868 2675 "2018-01-04 12:26:28.082" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 12396 2674 "2018-01-04 12:26:28.086" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 12396 2674 "2018-01-04 12:26:28.092" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.097" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.101" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2674 "2018-01-04 12:26:28.106" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2674 "2018-01-04 12:26:28.111" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.116" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.121" "104.47.1.33" "SENT: DATA"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.126" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.130" "2.236.184.53" "SENT: 354 OK, send."
"SMTPC" 12396 2675 "2018-01-04 12:26:28.135" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 12396 2675 "2018-01-04 12:26:28.140" "104.47.1.33" "SENT: [nl]."
"SMTPD" 1936 2674 "2018-01-04 12:26:28.155" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"

[/code]
Forum.

Sorry for bad english spelling, am an italian writer.
Looking forward to soon read your related opinion, Luken

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

Re: Sending email to external domain receiver goes into infinite loop

Post by jimimaseye » 2018-01-04 14:45

Thanks for proactively postings the settings script and the relevant logs. That makes life a lot easier.

The log clearly shows that it is RECEIVING the mail from the email client multiple times (see the SMTPD entries below) and that it sends the email out to Hotmail successfully each time (see the SMTPC entries below). Check your email client to find out why.

[quote]SMTPD
Session: 2657

"SMTPD" 3464 2657 "2018-01-04 12:26:27.281" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 868 2657 "2018-01-04 12:26:27.290" "2.236.184.53" "RECEIVED: EHLO [IPv6:::ffff:192.168.21.70]"
"SMTPD" 868 2657 "2018-01-04 12:26:27.297" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.309" "2.236.184.53" "RECEIVED: AUTH LOGIN"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.314" "2.236.184.53" "SENT: 334 VXNlcm5hbWU6"
"SMTPD" 868 2657 "2018-01-04 12:26:27.320" "2.236.184.53" "RECEIVED: bHVjYUBsLnphcHBpLm1l"
"SMTPD" 868 2657 "2018-01-04 12:26:27.327" "2.236.184.53" "SENT: 334 UGFzc3dvcmQ6"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.333" "2.236.184.53" "RECEIVED: ***"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.340" "2.236.184.53" "SENT: 235 authenticated."
"SMTPD" 868 2657 "2018-01-04 12:26:27.346" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 868 2657 "2018-01-04 12:26:27.353" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.358" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 12396 2657 "2018-01-04 12:26:27.363" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3464 2657 "2018-01-04 12:26:27.369" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 3464 2657 "2018-01-04 12:26:27.374" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2657 "2018-01-04 12:26:27.539" "2.236.184.53" "SENT: 250 Queued (0.176 seconds)"
"SMTPD" 868 2657 "2018-01-04 12:26:27.548" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 868 2657 "2018-01-04 12:26:27.554" "2.236.184.53" "SENT: 221 goodbye"
Session: 2668

"SMTPD" 3464 2668 "2018-01-04 12:26:27.621" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.635" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.639" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.653" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.658" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.672" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2668 "2018-01-04 12:26:27.677" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 868 2668 "2018-01-04 12:26:27.691" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 868 2668 "2018-01-04 12:26:27.695" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2668 "2018-01-04 12:26:27.721" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"
"SMTPD" 868 2668 "2018-01-04 12:26:27.744" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 868 2668 "2018-01-04 12:26:27.753" "2.236.184.53" "SENT: 221 goodbye"
Session: 2670

"SMTPD" 3464 2670 "2018-01-04 12:26:27.758" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.782" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.786" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 868 2670 "2018-01-04 12:26:27.801" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.807" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 868 2670 "2018-01-04 12:26:27.822" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2670 "2018-01-04 12:26:27.827" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.840" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 8284 2670 "2018-01-04 12:26:27.845" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2670 "2018-01-04 12:26:27.870" "2.236.184.53" "SENT: 250 Queued (0.032 seconds)"
"SMTPD" 3464 2670 "2018-01-04 12:26:27.892" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 3464 2670 "2018-01-04 12:26:27.901" "2.236.184.53" "SENT: 221 goodbye"
Session: 2672

"SMTPD" 868 2672 "2018-01-04 12:26:27.905" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 868 2672 "2018-01-04 12:26:27.929" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 868 2672 "2018-01-04 12:26:27.933" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.947" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.952" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.965" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.970" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.983" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 3464 2672 "2018-01-04 12:26:27.988" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2672 "2018-01-04 12:26:28.011" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"
"SMTPD" 3464 2672 "2018-01-04 12:26:28.034" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 3464 2672 "2018-01-04 12:26:28.042" "2.236.184.53" "SENT: 221 goodbye"
Session: 2674

"SMTPD" 868 2674 "2018-01-04 12:26:28.047" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.068" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.073" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 12396 2674 "2018-01-04 12:26:28.086" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 12396 2674 "2018-01-04 12:26:28.092" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 868 2674 "2018-01-04 12:26:28.106" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 868 2674 "2018-01-04 12:26:28.111" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.126" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 8284 2674 "2018-01-04 12:26:28.130" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2674 "2018-01-04 12:26:28.155" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"


Session: 2669

"SMTPC" 868 2669 "2018-01-04 12:26:27.625" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 868 2669 "2018-01-04 12:26:27.630" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.644" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.649" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPC" 868 2669 "2018-01-04 12:26:27.663" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2669 "2018-01-04 12:26:27.667" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.682" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.686" "104.47.1.33" "SENT: DATA"
"SMTPC" 3532 2669 "2018-01-04 12:26:27.702" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 3532 2669 "2018-01-04 12:26:27.706" "104.47.1.33" "SENT: [nl]."
"SMTPC" 12396 2669 "2018-01-04 12:26:27.726" "104.47.1.33" "RECEIVED: 250 Queued (0.016 seconds)"
"SMTPC" 12396 2669 "2018-01-04 12:26:27.735" "104.47.1.33" "SENT: QUIT"
"SMTPC" 8284 2669 "2018-01-04 12:26:27.761" "104.47.1.33" "RECEIVED: 221 goodbye"
Session: 2671

"SMTPC" 868 2671 "2018-01-04 12:26:27.766" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 868 2671 "2018-01-04 12:26:27.775" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.791" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.796" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.811" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.817" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.831" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.836" "104.47.1.33" "SENT: DATA"
"SMTPC" 3464 2671 "2018-01-04 12:26:27.850" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 3464 2671 "2018-01-04 12:26:27.855" "104.47.1.33" "SENT: [nl]."
"SMTPC" 8284 2671 "2018-01-04 12:26:27.874" "104.47.1.33" "RECEIVED: 250 Queued (0.032 seconds)"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.883" "104.47.1.33" "SENT: QUIT"
"SMTPC" 8284 2671 "2018-01-04 12:26:27.910" "104.47.1.33" "RECEIVED: 221 goodbye"
Session: 2673

"SMTPC" 3464 2673 "2018-01-04 12:26:27.915" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 3464 2673 "2018-01-04 12:26:27.924" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPC" 8284 2673 "2018-01-04 12:26:27.938" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 8284 2673 "2018-01-04 12:26:27.942" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPC" 868 2673 "2018-01-04 12:26:27.956" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.960" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPC" 868 2673 "2018-01-04 12:26:27.974" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2673 "2018-01-04 12:26:27.978" "104.47.1.33" "SENT: DATA"
"SMTPC" 868 2673 "2018-01-04 12:26:27.992" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 868 2673 "2018-01-04 12:26:27.997" "104.47.1.33" "SENT: [nl]."
"SMTPC" 8284 2673 "2018-01-04 12:26:28.017" "104.47.1.33" "RECEIVED: 250 Queued (0.016 seconds)"
"SMTPC" 8284 2673 "2018-01-04 12:26:28.025" "104.47.1.33" "SENT: QUIT"
"SMTPC" 8284 2673 "2018-01-04 12:26:28.051" "104.47.1.33" "RECEIVED: 221 goodbye"
Session: 2675

"SMTPC" 12396 2675 "2018-01-04 12:26:28.055" "104.47.1.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 12396 2675 "2018-01-04 12:26:28.063" "104.47.1.33" "SENT: EHLO mail.l.zappi.me"
"SMTPC" 868 2675 "2018-01-04 12:26:28.077" "104.47.1.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 868 2675 "2018-01-04 12:26:28.082" "104.47.1.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPC" 868 2675 "2018-01-04 12:26:28.097" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.101" "104.47.1.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPC" 868 2675 "2018-01-04 12:26:28.116" "104.47.1.33" "RECEIVED: 250 OK"
"SMTPC" 868 2675 "2018-01-04 12:26:28.121" "104.47.1.33" "SENT: DATA"
"SMTPC" 12396 2675 "2018-01-04 12:26:28.135" "104.47.1.33" "RECEIVED: 354 OK, send."
"SMTPC" 12396 2675 "2018-01-04 12:26:28.140" "104.47.1.33" "SENT: [nl]."[/quote]
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

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

Re: Sending email to external domain receiver goes into infinite loop

Post by jimimaseye » 2018-01-04 14:48

By the way: You should ENABLE AUTHENTICATION on 'Local to External' deliveres for Internet range otherwaise you are open to being a spambot.
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

Luket
New user
New user
Posts: 24
Joined: 2018-01-03 15:45

Re: Sending email to external domain receiver goes into infinite loop

Post by Luket » 2018-01-04 15:37

Thanks jimimaseye for your answer.

I just enabled authentication on 'Local to External' deliveres for Internet range, but now the comunication is dropped by receiver.

I wish to check my email client but I use standard clients in Windows 10 and Android and their configuration is really basic and both of them perfectly receive email from external domains: looks like are well configured.

Following is the log for email sent to external domain receiver with authentication on local to external deliveres enabled.
SMTP, IMAP and TCP/IP loging has been enabled.

I can't understand how to get out from this mess.

[code]
"IMAPD" 7364 2749 "2018-01-04 14:24:19.504" "2.236.184.53" "SENT: * 3 EXISTS"
"IMAPD" 7364 2749 "2018-01-04 14:24:19.514" "2.236.184.53" "SENT: * 1 RECENT"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.515" "2.236.184.53" "RECEIVED: DONE"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.532" "2.236.184.53" "SENT: A63 OK IDLE terminated"
"IMAPD" 11760 2749 "2018-01-04 14:24:19.565" "2.236.184.53" "RECEIVED: A64 UID FETCH 30:* (UID FLAGS)"
"IMAPD" 11760 2749 "2018-01-04 14:24:19.575" "2.236.184.53" "SENT: * 3 FETCH (UID 30 FLAGS ())"
"IMAPD" 11760 2749 "2018-01-04 14:24:19.582" "2.236.184.53" "SENT: A64 OK UID completed"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.625" "2.236.184.53" "RECEIVED: A65 FETCH 3 (INTERNALDATE UID FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE PRIORITY X-PRIORITY THREAD-TOPIC REPLY-TO)] BODYSTRUCTURE)"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.630" "2.236.184.53" "SENT: * 3 FETCH (UID 30 RFC822.SIZE 765 FLAGS () INTERNALDATE " 4-Jan-2018 14:23:19 +0100" BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL "Message undeliverable: Test" "quoted-printable" 409 17) BODY[HEADER.FIELDS (DATE FROM SUBJECT CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE PRIORITY X-PRIORITY THREAD-TOPIC REPLY-TO)] {158}"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.634" "2.236.184.53" "SENT: )"
"IMAPD" 10976 2749 "2018-01-04 14:24:19.639" "2.236.184.53" "SENT: A65 OK FETCH completed"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.702" "2.236.184.53" "RECEIVED: A66 UID FETCH 30 (RFC822.HEADER BODY.PEEK[1])"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.714" "2.236.184.53" "SENT: * 3 FETCH (UID 30 RFC822.HEADER {402}"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.724" "2.236.184.53" "SENT: BODY[1] {409}"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.733" "2.236.184.53" "SENT: )"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.740" "2.236.184.53" "SENT: A66 OK UID completed"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.777" "2.236.184.53" "RECEIVED: A67 IDLE"
"IMAPD" 3936 2749 "2018-01-04 14:24:19.782" "2.236.184.53" "SENT: + idling"
"TCPIP" 8356 "2018-01-04 14:24:25.614" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"SMTPD" 8356 2770 "2018-01-04 14:24:25.619" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.624" "2.236.184.53" "RECEIVED: EHLO [IPv6:::ffff:192.168.21.70]"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.629" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.636" "2.236.184.53" "RECEIVED: AUTH LOGIN"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.640" "2.236.184.53" "SENT: 334 VXNlcm5hbWU6"
"SMTPD" 3936 2770 "2018-01-04 14:24:25.645" "2.236.184.53" "RECEIVED: bHVjYUBsLnphcHBpLm1l"
"SMTPD" 3936 2770 "2018-01-04 14:24:25.649" "2.236.184.53" "SENT: 334 UGFzc3dvcmQ6"
"SMTPD" 8356 2770 "2018-01-04 14:24:25.654" "2.236.184.53" "RECEIVED: ***"
"SMTPD" 8356 2770 "2018-01-04 14:24:25.661" "2.236.184.53" "SENT: 235 authenticated."
"SMTPD" 3936 2770 "2018-01-04 14:24:25.669" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3936 2770 "2018-01-04 14:24:25.674" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.680" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 10976 2770 "2018-01-04 14:24:25.685" "2.236.184.53" "SENT: 250 OK"
"SMTPD" 3936 2770 "2018-01-04 14:24:25.690" "2.236.184.53" "RECEIVED: DATA"
"SMTPD" 3936 2770 "2018-01-04 14:24:25.695" "2.236.184.53" "SENT: 354 OK, send."
"SMTPD" 1936 2770 "2018-01-04 14:24:25.719" "2.236.184.53" "SENT: 250 Queued (0.016 seconds)"
"TCPIP" 7364 "2018-01-04 14:24:25.721" "DNS MX lookup: hotmail.com"
"SMTPD" 8356 2770 "2018-01-04 14:24:25.728" "2.236.184.53" "RECEIVED: QUIT"
"IMAPD" 10976 2749 "2018-01-04 14:24:25.729" "2.236.184.53" "RECEIVED: DONE"
"SMTPD" 8356 2770 "2018-01-04 14:24:25.735" "2.236.184.53" "SENT: 221 goodbye"
"IMAPD" 10976 2749 "2018-01-04 14:24:25.740" "2.236.184.53" "SENT: A67 OK IDLE terminated"
"TCPIP" 7364 "2018-01-04 14:24:25.757" "DNS - MX Result: 2 IP addresses were found."
"IMAPD" 3936 2749 "2018-01-04 14:24:25.757" "2.236.184.53" "RECEIVED: A68 NAMESPACE"
"TCPIP" 7364 "2018-01-04 14:24:25.762" "Connecting to 104.47.0.33:25..."
"IMAPD" 3936 2749 "2018-01-04 14:24:25.767" "2.236.184.53" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A68 OK namespace command complete"
"TCPIP" 8356 "2018-01-04 14:24:25.772" "TCP - 2.236.184.53 connected to 192.168.21.70:25."
"IMAPD" 10976 2749 "2018-01-04 14:24:25.778" "2.236.184.53" "RECEIVED: A69 LIST "" %"
"SMTPD" 8356 2771 "2018-01-04 14:24:25.781" "2.236.184.53" "SENT: 220 mail.l.zappi.me ESMTP"
"IMAPD" 10976 2749 "2018-01-04 14:24:25.786" "2.236.184.53" "SENT: * LIST (\HasNoChildren) "." "INBOX"[nl]* LIST (\HasNoChildren) "." "Posta indesiderata"[nl]* LIST (\HasNoChildren) "." "Posta eliminata"[nl]* LIST (\HasNoChildren) "." "Posta inviata"[nl]* LIST (\HasNoChildren) "." "Sent"[nl]A69 OK LIST completed"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.791" "104.47.0.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.800" "104.47.0.33" "SENT: EHLO mail.l.zappi.me"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.803" "2.236.184.53" "RECEIVED: A70 SELECT "INBOX""
"SMTPD" 3936 2771 "2018-01-04 14:24:25.806" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.810" "2.236.184.53" "SENT: * 3 EXISTS[nl]* 0 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1514940291] current uidvalidity[nl]* OK [UNSEEN 30] unseen messages[nl]* OK [UIDNEXT 31] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]A70 OK [READ-WRITE] SELECT completed"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.815" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.821" "2.236.184.53" "RECEIVED: A71 SEARCH UNDELETED SINCE 7-Oct-2017"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.825" "104.47.0.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.830" "2.236.184.53" "SENT: * SEARCH 1 2 3[nl]A71 OK Search completed"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.835" "104.47.0.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.840" "2.236.184.53" "RECEIVED: A72 FETCH 1:3 (UID FLAGS)"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.844" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.850" "2.236.184.53" "SENT: * 1 FETCH (UID 20 FLAGS (\Seen))"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.854" "2.236.184.53" "SENT: 250 OK"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.858" "2.236.184.53" "SENT: * 2 FETCH (UID 28 FLAGS (\Seen))"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.863" "104.47.0.33" "RECEIVED: 250 OK"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.868" "2.236.184.53" "SENT: * 3 FETCH (UID 30 FLAGS ())"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.872" "104.47.0.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"IMAPD" 8356 2749 "2018-01-04 14:24:25.877" "2.236.184.53" "SENT: A72 OK FETCH completed"
"SMTPD" 10976 2771 "2018-01-04 14:24:25.881" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 10976 2771 "2018-01-04 14:24:25.891" "2.236.184.53" "SENT: 530 SMTP authentication is required."
"SMTPC" 11760 2772 "2018-01-04 14:24:25.897" "104.47.0.33" "RECEIVED: 530 SMTP authentication is required."
"SMTPC" 11760 2772 "2018-01-04 14:24:25.901" "104.47.0.33" "SENT: QUIT"
"IMAPD" 10976 2749 "2018-01-04 14:24:25.904" "2.236.184.53" "RECEIVED: A73 SELECT "Posta inviata""
"SMTPD" 8356 2771 "2018-01-04 14:24:25.907" "2.236.184.53" "RECEIVED: QUIT"
"IMAPD" 10976 2749 "2018-01-04 14:24:25.912" "2.236.184.53" "SENT: * 19 EXISTS[nl]* 0 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1514940550] current uidvalidity[nl]* OK [UIDNEXT 20] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]A73 OK [READ-WRITE] SELECT completed"
"SMTPD" 8356 2771 "2018-01-04 14:24:25.917" "2.236.184.53" "SENT: 221 goodbye"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.922" "2.236.184.53" "RECEIVED: A74 SEARCH UNDELETED SINCE 7-Oct-2017"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.926" "104.47.0.33" "RECEIVED: 221 goodbye"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.931" "2.236.184.53" "SENT: * SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19[nl]A74 OK Search completed"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.941" "2.236.184.53" "RECEIVED: A75 FETCH 1:19 (UID FLAGS)"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.945" "2.236.184.53" "SENT: * 1 FETCH (UID 1 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.950" "2.236.184.53" "SENT: * 2 FETCH (UID 2 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.955" "2.236.184.53" "SENT: * 3 FETCH (UID 3 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.960" "2.236.184.53" "SENT: * 4 FETCH (UID 4 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.964" "2.236.184.53" "SENT: * 5 FETCH (UID 5 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.969" "2.236.184.53" "SENT: * 6 FETCH (UID 6 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.973" "2.236.184.53" "SENT: * 7 FETCH (UID 7 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.978" "2.236.184.53" "SENT: * 8 FETCH (UID 8 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.982" "2.236.184.53" "SENT: * 9 FETCH (UID 9 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.987" "2.236.184.53" "SENT: * 10 FETCH (UID 10 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.991" "2.236.184.53" "SENT: * 11 FETCH (UID 11 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:25.995" "2.236.184.53" "SENT: * 12 FETCH (UID 12 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.000" "2.236.184.53" "SENT: * 13 FETCH (UID 13 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.005" "2.236.184.53" "SENT: * 14 FETCH (UID 14 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.009" "2.236.184.53" "SENT: * 15 FETCH (UID 15 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.014" "2.236.184.53" "SENT: * 16 FETCH (UID 16 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.018" "2.236.184.53" "SENT: * 17 FETCH (UID 17 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.022" "2.236.184.53" "SENT: * 18 FETCH (UID 18 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.027" "2.236.184.53" "SENT: * 19 FETCH (UID 19 FLAGS (\Seen))"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.032" "2.236.184.53" "SENT: A75 OK FETCH completed"
"IMAPD" 10976 2749 "2018-01-04 14:24:26.077" "2.236.184.53" "RECEIVED: A76 FETCH 19 (INTERNALDATE UID FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (DATE FROM SUBJECT CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE PRIORITY X-PRIORITY THREAD-TOPIC REPLY-TO)] BODYSTRUCTURE)"
"IMAPD" 10976 2749 "2018-01-04 14:24:26.082" "2.236.184.53" "SENT: * 19 FETCH (UID 19 RFC822.SIZE 2186 FLAGS (\Seen) INTERNALDATE " 4-Jan-2018 14:23:19 +0100" BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "quoted-printable" 96 5)("TEXT" "HTML" ("CHARSET" "utf-8") NIL NIL "quoted-printable" 1512 40) "ALTERNATIVE" ("BOUNDARY" "_C42C3105-357C-4A8A-AA93-ADAE596710F8_") NIL NIL) BODY[HEADER.FIELDS (DATE FROM SUBJECT CONTENT-TYPE X-MS-TNEF-Correlator CONTENT-CLASS IMPORTANCE PRIORITY X-PRIORITY THREAD-TOPIC REPLY-TO)] {206}"
"IMAPD" 10976 2749 "2018-01-04 14:24:26.087" "2.236.184.53" "SENT: )"
"IMAPD" 10976 2749 "2018-01-04 14:24:26.092" "2.236.184.53" "SENT: A76 OK FETCH completed"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.140" "2.236.184.53" "RECEIVED: A77 UID FETCH 19 (RFC822.HEADER BODY.PEEK[2])"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.152" "2.236.184.53" "SENT: * 19 FETCH (UID 19 RFC822.HEADER {263}"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.159" "2.236.184.53" "SENT: BODY[2] {1512}"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.166" "2.236.184.53" "SENT: )"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.173" "2.236.184.53" "SENT: A77 OK UID completed"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.198" "2.236.184.53" "RECEIVED: UPLOAD00 APPEND "Posta inviata" (\Seen) {2182}"
"IMAPD" 11760 2749 "2018-01-04 14:24:26.203" "2.236.184.53" "SENT: + Ready for literal data"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.219" "2.236.184.53" "SENT: * 20 EXISTS[nl]* 1 RECENT[nl]UPLOAD00 OK APPEND completed"
"IMAPD" 8356 2749 "2018-01-04 14:24:26.262" "2.236.184.53" "RECEIVED: A78 SELECT "INBOX""
"IMAPD" 8356 2749 "2018-01-04 14:24:26.267" "2.236.184.53" "SENT: * 3 EXISTS[nl]* 0 RECENT[nl]* FLAGS (\Deleted \Seen \Draft \Answered \Flagged)[nl]* OK [UIDVALIDITY 1514940291] current uidvalidity[nl]* OK [UNSEEN 30] unseen messages[nl]* OK [UIDNEXT 31] next uid[nl]* OK [PERMANENTFLAGS (\Deleted \Seen \Draft \Answered \Flagged)] limited[nl]A78 OK [READ-WRITE] SELECT completed"
"IMAPD" 3936 2749 "2018-01-04 14:24:26.273" "2.236.184.53" "RECEIVED: A79 IDLE"
"IMAPD" 3936 2749 "2018-01-04 14:24:26.279" "2.236.184.53" "SENT: + idling"
[/code]
[/size]

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

Re: Sending email to external domain receiver goes into infinite loop

Post by mattg » 2018-01-05 00:41

Luket wrote:I just enabled authentication on 'Local to External' deliveres for Internet range, but now the comunication is dropped by receiver.
I don't believe that is accurate.


It is really important that you 'require AUTH' for local to external on internet range.
In fact, there is a default button on the IP ranges page - select that.

Luket wrote:I wish to check my email client but I use standard clients in Windows 10 and Android and their configuration is really basic and both of them perfectly receive email from external domains: looks like are well configured.
jimimaseye wrote:The log clearly shows that it is RECEIVING the mail from the email client multiple times (see the SMTPD entries below) and that it sends the email out to Hotmail successfully each time (see the SMTPC entries below). Check your email client to find out why.
This is absolutely correct - the logs show that to be happening. This is NOT normal.

Back to your recent logs
Luket wrote:Following is the log for email sent to external domain receiver with authentication on local to external deliveres enabled.
SMTP, IMAP and TCP/IP loging has been enabled.

I can't understand how to get out from this mess.


"SMTPC" 11760 2772 "2018-01-04 14:24:25.791" "104.47.0.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.800" "104.47.0.33" "SENT: EHLO mail.l.zappi.me"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.806" "2.236.184.53" "RECEIVED: EHLO mail.l.zappi.me"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.815" "2.236.184.53" "SENT: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.825" "104.47.0.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.835" "104.47.0.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.844" "2.236.184.53" "RECEIVED: MAIL FROM:<luca@l.zappi.me>"
"SMTPD" 3936 2771 "2018-01-04 14:24:25.854" "2.236.184.53" "SENT: 250 OK"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.863" "104.47.0.33" "RECEIVED: 250 OK"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.872" "104.47.0.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 10976 2771 "2018-01-04 14:24:25.881" "2.236.184.53" "RECEIVED: RCPT TO:<zapsson@hotmail.com>"
"SMTPD" 10976 2771 "2018-01-04 14:24:25.891" "2.236.184.53" "SENT: 530 SMTP authentication is required."
"SMTPC" 11760 2772 "2018-01-04 14:24:25.897" "104.47.0.33" "RECEIVED: 530 SMTP authentication is required."
"SMTPC" 11760 2772 "2018-01-04 14:24:25.901" "104.47.0.33" "SENT: QUIT"
"SMTPD" 8356 2771 "2018-01-04 14:24:25.907" "2.236.184.53" "RECEIVED: QUIT"
"SMTPD" 8356 2771 "2018-01-04 14:24:25.917" "2.236.184.53" "SENT: 221 goodbye"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.926" "104.47.0.33" "RECEIVED: 221 goodbye"
Note that your server is responding to all outgoing calls itself.

As you had no routes or SMTP relayer set up in hMailserver (as per your setting s posted above), something else in your local network is causing this, either a hosts file or a poorly configured DNS
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Luket
New user
New user
Posts: 24
Joined: 2018-01-03 15:45

Re: Sending email to external domain receiver goes into infinite loop

Post by Luket » 2018-01-05 04:49

mattg wrote: Note that your server is responding to all outgoing calls itself.

As you had no routes or SMTP relayer set up in hMailserver (as per your setting s posted above), something else in your local network is causing this, either a hosts file or a poorly configured DNS
I see you got the point, well done.

I'm quite confident DNS configuration is accurate enought as I'm satisfied by the report obtained by intoDNS.
intoDNS Report

It is possible the problem depends on NAT translation and expecially on rules for NAT loopback.
Probably those rules are not as perfect as I belived.

This is the sintax I used for them, ofcourse under unix environment:
iptables -t nat -A POSTROUTING -d <private_LAN_IP> -s <LAN_address/24> -p tcp --dport <local_port> -j SNAT --to <public_IP>

Good ideas are needed now :)
Probably someone with expiriens behind NAT should help.

//L.

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

Re: Sending email to external domain receiver goes into infinite loop

Post by mattg » 2018-01-05 06:39

I'm not talking about your publicly accessible DNS records, I'm talking about a local DNS server being incorrectly configured

It's possible that NAT is not working correctly, but my experience with NAT is limited at best.
What router / firewall are you using IPtables in? Is it also your local DNS?
Have you asked for help with the support team for that product? (That's where you will find appropriately experienced people in iptables configuration)

Are you certain that you don't have a hosts file entry on your windows machine with hMailserver installed?
C:/Windows/system32/drivers/etc/hosts
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

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

Re: Sending email to external domain receiver goes into infinite loop

Post by jimimaseye » 2018-01-05 10:00

According to the log:.....
Session: 2772
"SMTPC" 11760 2772 "2018-01-04 14:24:25.791" "104.47.0.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.800" "104.47.0.33" "SENT: EHLO mail.l.zappi.me"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.825" "104.47.0.33" "RECEIVED: 250-mail.l.zappi.me[nl]250-SIZE 20480000[nl]250-AUTH LOGIN PLAIN[nl]250 HELP"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.835" "104.47.0.33" "SENT: MAIL FROM:<luca@l.zappi.me>"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.863" "104.47.0.33" "RECEIVED: 250 OK"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.872" "104.47.0.33" "SENT: RCPT TO:<zapsson@hotmail.com>"
"SMTPC" 11760 2772 "2018-01-04 14:24:25.897" "104.47.0.33" "RECEIVED: 530 SMTP authentication is required."
"SMTPC" 11760 2772 "2018-01-04 14:24:25.901" "104.47.0.33" "SENT: QUIT"
"SMTPC" 10976 2772 "2018-01-04 14:24:25.926" "104.47.0.33" "RECEIVED: 221 goodbye"
...it seems 104.47.0.33 is the server being connected to and issuing the rejection. A lookup of MX records for hotmail.com shows:

hotmail-com.olc.protection.outlook.com 104.47.0.33 (based in Helsinki)

.....the same as 104.47.0.33 above (repeated lookups change the highlighted number). So it does look like that it is Hotmail issuing the rejection.

HOWEVER, the fact that that server responds:
"SMTPC" 11760 2772 "2018-01-04 14:24:25.791" "104.47.0.33" "RECEIVED: 220 mail.l.zappi.me ESMTP"
means it is clearly NOT hotmail and is looping round to your own server. So I concur with Matt - that you have some weird NAT/firewall/routing/loopback thing going on.

Thought: you dont have OUTBOUND port 25 redirected to your server by chance do you?
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

Luket
New user
New user
Posts: 24
Joined: 2018-01-03 15:45

Re: Sending email to external domain receiver goes into infinite loop

Post by Luket » 2018-01-07 21:18

Great, thanks to you, I solved the mess.

The mail server is now able to communicate with client and other mailserver.
In the following log 93.32.223.154 is an Android mobile phone client and 104.47.44.33 il the receiving mail server.

[code]
"SMTPD" 6136 2028 "2018-01-07 19:55:16.379" "93.32.223.154" "SENT: 220 mail.zappi.me ESMTP"
"SMTPD" 6148 2028 "2018-01-07 19:55:16.441" "93.32.223.154" "RECEIVED: EHLO [10.151.184.7]"
"SMTPD" 6148 2028 "2018-01-07 19:55:16.457" "93.32.223.154" "SENT: 250-mail.zappi.me[nl]250-SIZE 20480000[nl]250 AUTH LOGIN"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.519" "93.32.223.154" "RECEIVED: AUTH LOGIN"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.535" "93.32.223.154" "SENT: 334 VXNlcm5hbWU6"
"SMTPD" 6136 2028 "2018-01-07 19:55:16.582" "93.32.223.154" "RECEIVED: YW5kcmVhQGwuemFwcGkubWU="
"SMTPD" 6136 2028 "2018-01-07 19:55:16.597" "93.32.223.154" "SENT: 334 UGFzc3dvcmQ6"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.660" "93.32.223.154" "RECEIVED: ***"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.675" "93.32.223.154" "SENT: 235 authenticated."
"SMTPD" 6148 2028 "2018-01-07 19:55:16.722" "93.32.223.154" "RECEIVED: MAIL FROM:<andrea@l.zappi.me>"
"SMTPD" 6148 2028 "2018-01-07 19:55:16.738" "93.32.223.154" "SENT: 250 OK"
"SMTPD" 6136 2028 "2018-01-07 19:55:16.800" "93.32.223.154" "RECEIVED: RCPT TO:<ZAPSSON@Hotmail.com>"
"SMTPD" 6136 2028 "2018-01-07 19:55:16.800" "93.32.223.154" "SENT: 250 OK"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.863" "93.32.223.154" "RECEIVED: DATA"
"SMTPD" 6140 2028 "2018-01-07 19:55:16.863" "93.32.223.154" "SENT: 354 OK, send."
"SMTPD" 2640 2028 "2018-01-07 19:55:17.082" "93.32.223.154" "SENT: 250 Queued (0.224 seconds)"
"SMTPC" 6148 2112 "2018-01-07 19:55:17.441" "104.47.44.33" "RECEIVED: 220 SN1NAM04FT005.mail.protection.outlook.com Microsoft ESMTP MAIL Service ready at Sun, 7 Jan 2018 18:55:17 +0000"
"SMTPC" 6148 2112 "2018-01-07 19:55:17.457" "104.47.44.33" "SENT: EHLO mail.zappi.me"
"SMTPC" 6140 2112 "2018-01-07 19:55:17.613" "104.47.44.33" "RECEIVED: 250-SN1NAM04FT005.mail.protection.outlook.com Hello [2.236.184.53][nl]250-SIZE 49283072[nl]250-PIPELINING[nl]250-DSN[nl]250-ENHANCEDSTATUSCODES[nl]250-STARTTLS[nl]250-8BITMIME[nl]250-BINARYMIME[nl]250-CHUNKING[nl]250 SMTPUTF8"
"SMTPC" 6140 2112 "2018-01-07 19:55:17.613" "104.47.44.33" "SENT: STARTTLS"
"SMTPC" 6152 2112 "2018-01-07 19:55:17.972" "104.47.44.33" "RECEIVED: 220 2.0.0 SMTP server ready"
"SMTPC" 6140 2112 "2018-01-07 19:55:18.441" "104.47.44.33" "SENT: EHLO mail.zappi.me"
"SMTPC" 6148 2112 "2018-01-07 19:55:18.597" "104.47.44.33" "RECEIVED: 250-SN1NAM04FT005.mail.protection.outlook.com Hello [2.236.184.53][nl]250-SIZE 49283072[nl]250-PIPELINING[nl]250-DSN[nl]250-ENHANCEDSTATUSCODES[nl]250-8BITMIME[nl]250-BINARYMIME[nl]250-CHUNKING[nl]250 SMTPUTF8"
"SMTPC" 6148 2112 "2018-01-07 19:55:18.613" "104.47.44.33" "SENT: MAIL FROM:<andrea@l.zappi.me>"
"SMTPC" 6136 2112 "2018-01-07 19:55:18.754" "104.47.44.33" "RECEIVED: 250 2.1.0 Sender OK"
"SMTPC" 6136 2112 "2018-01-07 19:55:18.769" "104.47.44.33" "SENT: RCPT TO:<ZAPSSON@Hotmail.com>"
"SMTPC" 6148 2112 "2018-01-07 19:55:18.941" "104.47.44.33" "RECEIVED: 250 2.1.5 Recipient OK"
"SMTPC" 6148 2112 "2018-01-07 19:55:18.957" "104.47.44.33" "SENT: DATA"
"SMTPC" 6152 2112 "2018-01-07 19:55:19.113" "104.47.44.33" "RECEIVED: 354 Start mail input; end with <CRLF>.<CRLF>"
"SMTPC" 6152 2112 "2018-01-07 19:55:19.129" "104.47.44.33" "SENT: [nl]."
"SMTPC" 6148 2112 "2018-01-07 19:55:19.972" "104.47.44.33" "RECEIVED: 250 2.6.0 <dc2f1aae-4384-4405-b5c5-73e8a2bf19b4@email.android.com> [InternalId=66404489418197, Hostname=SN1NAM04HT177.eop-NAM04.prod.protection.outlook.com] 5936 bytes in 0.323, 17.939 KB/sec Queued mail for delivery"
"SMTPC" 6148 2112 "2018-01-07 19:55:19.988" "104.47.44.33" "SENT: QUIT"
"SMTPC" 6136 2112 "2018-01-07 19:55:20.144" "104.47.44.33" "RECEIVED: 221 2.0.0 Service closing transmission channel"
[/code]


Issue was mainly generated, as jim sed, by redirection of outbound port 25.
The real problem has been I was defently not aware about that at all.

Bad start, I would now concentrate on security configuration, making easy to create accounts on remote devices: now it's need to set no security on devices, that is no nice.

Sure I'll come back for your help again.

Thanks again, Luken.

Post Reply