1
SMTP connection timed out for external gateway
Problem reported by Mail Server - 3/21/2024 at 12:17 PM
Resolved
Dear SmarterMail team,
I notice problems sendig outgoing mail via a gateway since upgrading to smartermail running on dot.net V8. The setup wasn't changed since years. My mail provider is german strato, a really huge company.

All outgoing mail is send to thier smt.server smtp.strato.de, port 465, SSL.
In the logs I see ...

20:02:34.580 [42485000] Sending remote mail from lars@koellers.net
20:02:34.818 [42485000] Failed to connect to the recipient's mail server. No MX records were found for the 'smtp.strato.de' domain. Failing over to A records.
20:02:34.818 [42485000] MXRecord count: '1' for domain ''
20:02:34.818 [42485000] Attempting MXRecord Host Name: 'smtp.strato.de', preference '1', Ip Count: '1'
20:02:34.818 [42485000] Attempting to send to MXRecord 'smtp.strato.de' ip: '81.169.145.133'
20:02:34.819 [42485000] Sending remote mail to: XXXXX@icloud.com
20:02:34.820 [42485000] Initiating connection to 81.169.145.133
20:02:34.820 [42485000] Connecting to 81.169.145.133:465 (Id: 1)
20:02:34.868 [42485000] Connection to 81.169.145.133:465 from 192.168.5.40:57655 succeeded (Id: 1)
20:03:34.957 [42485000] RSP: 220 smtp.strato.de ESMTP RZmta (P8 -)
20:03:34.959 [42485000] CMD: EHLO mail.koellers.net
20:04:34.982 [42485000] The smtp session has timed out.
20:04:34.983 [42485000] Attempt to ip, '81.169.145.133' success: 'False'
20:04:34.983 [42485000] Failed to send to gateway smtp.strato.de using MX Lookups, error string: Failed to connect to the recipient's mail server.  No MX records were found for the 'smtp.strato.de' domain.
Status: 544 5.4.4 Host not found (not in DNS).Attempted to send the message to the following IPs:
    81.169.145.133
20:04:34.992 [42485000] Removed from RemoteDeliveryQueue (0 queued or processing)
20:08:02.357 [04438007] Added to RemoteDeliveryQueue (1 queued; 0/50 processing)
20:08:02.357 [04438007] [RemoteDeliveryQueue] Begin Processing.
20:08:02.359 [04438007] Sending remote mail from lars@koellers.net
20:08:02.409 [04438007] Failed to connect to the recipient's mail server. No MX records were found for the 'smtp.strato.de' domain. Failing over to A records.
20:08:02.409 [04438007] MXRecord count: '1' for domain ''
20:08:02.409 [04438007] Attempting MXRecord Host Name: 'smtp.strato.de', preference '1', Ip Count: '1'
20:08:02.409 [04438007] Attempting to send to MXRecord 'smtp.strato.de' ip: '81.169.145.133'
20:08:02.409 [04438007] Sending remote mail to: XXXXXXXX@icloud.com
20:08:02.409 [04438007] Initiating connection to 81.169.145.133
20:08:02.409 [04438007] Connecting to 81.169.145.133:465 (Id: 1)
20:08:02.437 [04438007] Connection to 81.169.145.133:465 from 192.168.5.40:57704 succeeded (Id: 1)
20:08:02.479 [04438007] RSP: 220 smtp.strato.de ESMTP RZmta (P12 -)
20:08:02.480 [04438007] CMD: EHLO mail.koellers.net
20:08:02.511 [04438007] RSP: 250-smtp.strato.de greets xx.79.yyyy.94
20:08:02.512 [04438007] RSP: 250-ENHANCEDSTATUSCODES
20:08:02.512 [04438007] RSP: 250-PIPELINING
20:08:02.512 [04438007] RSP: 250-8BITMIME
20:08:02.512 [04438007] RSP: 250-DELIVERBY
20:08:02.512 [04438007] RSP: 250-SIZE 104857600
20:08:02.512 [04438007] RSP: 250-LIMITS RCPTMAX=1000 MAILMAX=1000
20:08:02.512 [04438007] RSP: 250-AUTH PLAIN LOGIN CRAM-MD5 DIGEST-MD5
20:08:02.512 [04438007] RSP: 250-REQUIRETLS
20:08:02.512 [04438007] RSP: 250 HELP
20:08:02.512 [04438007] CMD: AUTH LOGIN
20:08:02.545 [04438007] RSP: 334 VXNlcm5hbWU6
20:08:02.578 [04438007] RSP: 334 UGFzc3dvcmQ6
20:08:02.613 [04438007] RSP: 235 2.7.0 OK Authenticated
20:08:02.614 [04438007] CMD: MAIL FROM:<lars@koellers.net> SIZE=651
20:08:02.645 [04438007] RSP: 250 2.1.0 Sender ok
20:08:02.645 [04438007] CMD: RCPT TO:<lars_koeller@icloud.com>
20:08:02.676 [04438007] RSP: 250 2.1.5 Recipient ok: <lars_koeller@icloud.com>
20:08:02.676 [04438007] CMD: DATA
20:08:02.707 [04438007] RSP: 354 3.0.0 Enter data for mail with id Le0c3a02LJ82DVC
20:08:02.864 [04438007] RSP: 250 2.0.0 OK queued with id Le0c3a02LJ82DVC
20:08:02.865 [04438007] CMD: QUIT
20:08:02.896 [04438007] RSP: 221 2.0.0 smtp.strato.de closing connection
20:08:02.896 [04438007] Attempt to ip, '81.169.145.133' success: 'True'
20:08:02.913 [04438007] Process delivery status notification step from recipient success. Recipient: [lars_koeller@icloud.com], Notify: [], LastError: [], RanDomainFilter: [False], RanGlobalFilter: False
20:08:02.913 [04438007] Delivery for lars@koellers.net to lars_koeller@icloud.com has completed (Delivered)
20:08:02.914 [04438007] Removed from RemoteDeliveryQueue (0 queued or processing)
20:08:05.375 [04438007] Removing Spool message: Killed: False, Failed: False, Finished: True
20:08:05.377 [04438007] Delivery finished for lars@koellers.net at 20:08:05    [id:155004438007]
20:09:17.599 [04438008] Added to RemoteDeliveryQueue (1 queued; 0/50 processing)
20:09:17.599 [04438008] [RemoteDeliveryQueue] Begin Processing.
20:09:17.599 [04438008] Sending remote mail from lars@koellers.net
...

Sometimes the mail bounces several times and it not delivered.
DNS checked and ok.
This is new, and not seen before.

When testing via telnet smtp.strato.de 25 an issu the EHLO comman it always succeed.

Any help would be appreciated

10 Replies

Reply to Thread
0
Mail Server Replied
I installed on another server the IIS simple SMTP server and configure it as a relay.
  • No Problem to forward the mail to Strato
  • So far no problem by smartermail to relay to the new internal server
It would be nice to fix this in smartermail, so I can deconfigure the local SMTP relay,
0
Mail Server Replied
Dear SmarterMail team,
first of all thanks for the fix in Build 9091 (Nov 22, 2024)!

However, it would be nict to get a short reply that there is a real problem with the SMTP relay function in this thread. I suppose you don't take my report not serious ... 

Thanks and best regards

Lars
0
Jorel Haggard Replied
Employee Post
Hello there,

In the logs you sent, it looks like the deliveries eventually go through. Are these timeouts occurring regularly?

Jorel Haggard System/Network Administrator SmarterTools Inc. www.smartertools.com
0
Mail Server Replied
Hi Jorel,
sometimes the delivery goes through but after many retries. As a workaround I configure a IIS SMTP Proxy. With this proxy all went smoth. Send from SmaterMail works, and the IIS Proxy deliver without problem to Strato mail server, where my domain is hosted.

With the mentined release, the delivery from SmarterMail to Strato works smooth again, without retries.

=> So I think there was an bug in SmarterMail, which is fixed now.

Thanks & beat regard

Lars
0
Kyle Kerst Replied
Employee Post
Hi Lars - can you confirm the build version you were on prior to upgrading? I'm curious which of our fixes may have affected your results. Thanks Lars!
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com
1
Mail Server Replied
Hi Kyle,
the last verison I run with the "workaround SMPT Proxy" was the V9056 (installed an checked: 27. Oct. 2024). After upgrading to V9119 (2. Jan 2025, I skip the versions between) I test the delivery to my e-mail provider Strato (smtp.strato.de, 81.169.145.133) again and it works till now without any problems.
Best regards
0
Jereming Chen Replied
Employee Post
Thank you for the additional information. 
I am glad your issue has been resolved.
Jereming Chen System/Network Administrator SmarterTools Inc. www.smartertools.com
0
Kyle Kerst Replied
Employee Post
Thanks Lars, I appreciate your follow up. There were a couple of SMTP related fixes between those builds so likely one of these resolved the issue you were having. That is excellent news, happy to hear it!
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com
0
Mail Server Replied
Hi Kyle,
thanks for the reply and the confirmation of the fix. If I remember right, out of the release notes, it was not really obvious for me, that my issue could have been fixed. I only find one or two notes about SMTP fixes which not correlates directly to the issue. 

However it’s fine, that the well known solid protocol implementation is back now.

Many thanks and best regards

Lars
0
Kyle Kerst Replied
Employee Post
You're very welcome Lars. That does happen from time to time usually when we identify the issue internally as the affected area we see might differ than the one you see. If you end up having any trouble just let us know :)
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com

Reply to Thread