Forum Discussion
Could not connect to SMTP host.
From CLI: telnet host 25
If you get no answer, then check the routing and make sure F5 has a route to the host if it is not directly connected. If routing is OK then check if there is any firewall in the path that is blocking the traffic
Hello Amine,
Thanks for your swift response.
I could telnet to port 25 to the said IP using CLI.
but when i query from the GUI
System ›› Configuration : Device : SMTP ›› SMTP_Host
click test connection i get "SMTP Error: Could not connect to SMTP host."
- FAJUMOMay 09, 2024
Cirrus
SEE the output below
14:10:14.630034 IP 10.158.11.74.25 > 10.161.6.6.60672: Flags [P.], seq 1:106, ack
14:10:24.625476 IP 10.158.11.74.25 > 10.161.6.6.33740: Flags [P.], seq 1:106, ack 2, win 8195, options [nop,nop,TS val 1601907323 ecr 1568290787], length 105: SMTP: 220 MBX01.etexample.com Microsoft ESMTP MAIL Service ready at Thu, 9 May 2024 14:10:23 +0100 in slot1/tmm1 lis=
14:10:24.625559 IP 10.161.6.6.33740 > 10.158.11.74.25: Flags [R], seq 4003805261, win 0, length 0 out slot1/tmm1 lis=
14:10:24.625728 IP 10.158.11.74.25 > 10.161.6.6.33740: Flags [F.], seq 106, ack 2, win 8195, options [nop,nop,TS val 1601907323 ecr 1568290787], length 0 in slot1/tmm1 lis=
14:10:24.625736 IP 10.161.6.6.33740 > 10.158.11.74.25: Flags [R.], seq 2, ack 107, win 0, length 0 out slot1/tmm1 lis=- Amine_KadimiMay 09, 2024
MVP
The output confirms that F5 can indeed reach the host but the SMTP connection is reset at some point, did you confirm that actual SMTP delivery is not working (not the test button). If so, can you try to send an email using telnet connection and see if it gets through or if you receive any aditionnal message (for example, the server is not allowing you to send emails from/to some addresses).
To send mail from telnet:
- Type telnet <server> 25
- Type HELO <domain>
- Type MAIL FROM: <email address>
- You may get a message saying “250 ok“
- Type RCPT TO: <email address>, <email address>, <email address>, etc.
- You may get another message saying “250 ok“
- To write the message, type DATA, followed by your message.
- To enter a Subject, type SUBJECT:, followed by your message.
- To end the message, put a period on a new line by itself and press Enter.
- Type QUIT to exit Telnet.
credits: Using Telnet to Send Mail - Microsoft Consulting Services - CloudServus - United States
- FAJUMOMay 09, 2024
Cirrus
Thanks again.
Some users get the email whil some wont get.
some get after trying 2 times .
When i initiate through the CLI , i got the emails
220 OREEMT.etisalat.com Microsoft ESMTP MAIL Service ready at Thu, 9 May 2024 14:52:54 +0100
[->] HELO vipiron1.etisalat.com.ng
[<-] 250 OREEMTSE19CAS01.etisalatng.com Hello [10.161.6.6]
[->] MAIL FROM:<root@vipiron1.etisalat.com.ng>
[<-] 250 2.1.0 Sender OK
[->] RCPT TO:<david.fajumo@9m>
[<-] 250 2.1.5 Recipient OK
[->] DATA
[<-] 354 Start mail input; end with <CRLF>.<CRLF>
[->] Received: by vipiron1.etisalat.com.ng (sSMTP sendmail emulation); Thu, 9 May 2024 14:52:55 +0100
[->] From: "root" <root@vipiron1.etisalat.com.ng>
[->] Date: Thu, 09 May 2024 14:52:55 +0100
[->] To: david.fajumo@9m
[->] Subject: Testing CLI Mail
[->] User-Agent: Heirloom mailx 12.4 7/29/08
[->] MIME-Version: 1.0
[->] Content-Type: text/plain; charset=us-ascii
[->] Content-Transfer-Encoding: 7bit
[->]
[->] SMTP Test
[->] .
[<-] 250 2.6.0 <4222eada-869f-49c5-8ae9-69f28e573ef3@OREEMTSE19CAS01.etisalatng.com> [InternalId=6382321402017, Hostname=OREEMTSE13MBX01.etisalatng.com] Queued mail for delivery
[->] QUIT
[<-] 221 2.0.0 Service closing transmission channel
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com