03-25-2024 02:11 AM - edited 03-25-2024 02:27 AM
PI version 3.10 , I configured an SMTP server in "Administration/Settings/System Settings/Mail Server Configuration" and then clicked "Test" but nothing happen,I never received the test mail.
PI alarm said:
System with IP Address '192.168.99.210' failed to send email .This may be due to possible SMTP misconfiguration or network issues.
I have tried:
1. The SMTP server is functioning properly, as the backup server uses the same SMTP address and the email notifications from the backup server are work great.
2.Port 25 from telnet to SMTP address is open in the Prime shell.
jd-s1-cisco-pi-01/admin# telnet smtp.XXX.XXX.com port 25
Trying 119.xxx.xxx.199...
Connected to smtp.xxx.xxx.com.
Escape character is '^]'.
220 smtp.xxx.com Esmtp xxx Mail Server
quit
3.Replace port from 25 to 465/SSL, not work
4.Disable firewall in Prime shell, not work
ade # systemctl stop firewall
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: root
Password:
==== AUTHENTICATION COMPLETE ===
ade # systemctl status firewall
● firewall.service - CARS firewall
Loaded: loaded (/usr/lib/systemd/system/firewall.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2024-03-25 16:03:12 CST; 2s ago
Process: 24252 ExecStop=/opt/system/bin/firewall_service.sh stop (code=exited, status=0/SUCCESS)
Main PID: 940 (code=exited, status=0/SUCCESS)
5.Use hMailServer to set up an internal SMTP delivery server, and let PI use this internal IP address.
However Click on test, Prime prompts “Failed to send mail using primary SMTP server: Could not connect to SMTP host:192.168.99.181, port:25,response:-1”
But at the same time, PortCheck in my PC is successful:
This thing driving me crazy!
Any idea?
03-25-2024 02:32 AM
- Check the SMTP server's logs too ,
M.
03-25-2024 06:35 PM
Thx for reply :)
Here is the hMailServer log :
"TCPIP" 348 "2024-03-25 15:59:37.177" "TCP - 192.168.99.210 connected to 192.168.99.181:25."
It seems that the SMTP Delivery server can receive PI's SMTP request, but PI still prompts:Failed to send mail using primary SMTP server: Could not connect to SMTP host:192.168.99.181, port:25,response:-1
03-25-2024 11:55 PM
- Could you try with a different SMTP server (brand) , if possible ,
M.
03-26-2024 06:22 PM
I have used two other brands of SMTP servers and both have the same issue.
03-27-2024 12:21 AM
- Use latest patch release for 3.10 , if applicable ; if then still not working contact TAC ,
M.
03-27-2024 07:08 PM
Unfortunately, our service contract has expired and I am unable to download the upgrade package.It seems that I have to give up the email notification function. Anyway, thx for your support.
03-26-2024 12:10 AM
Hello,
maybe restarting the Prime services might help. Obviously, do this during off hours. I think the command is something like this:
--> sudo /etc/init.d/cpi restart
03-26-2024 06:29 PM - edited 03-26-2024 06:30 PM
It seems that there is no CPI file in /etc/init.d/:
ade # pwd
/etc/init.d
ade # ls
cars_root functions NCS netconsole network README sshd
ade # sudo /etc/init.d/cpi restart
sudo: /etc/init.d/cpi: command not found
Then I tried restarting the PI server, but it still didn't work.
12-17-2024 07:36 PM
Did you ever find a solution for this issue? For a long time everything had been working fine and then all of a sudden today, email stopped working. No changes had been made to PI. We simply use the Google SMTP server which works fine on other devices, just not PI. I updated PI to the latest 3.10.6 and that did not help either. At a loss right now. I have restarted PI as well.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide