failed to send notification email by SMTP

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
mzarififar
Posts: 26
Joined: Thu Oct 10, 2019 8:15 am

failed to send notification email by SMTP

#1 Post by mzarififar » Fri Oct 18, 2019 10:36 pm

Hi,

I am not able to send notification email with SMTP and I get this message.

Checking Configuration...
Method: SMTP
Creating Message Text...

This is a test message generated from Cacti. This message was sent to test the configuration of your Mail Settings.

Your email settings are currently set as follows

Method: SMTP
Device: mail.toromont.com
Port: 25
Authentication: false
Ping Results: Bypassed


Sending Message...

SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting


can someone helps ?

Thx!

netniV
Cacti Guru User
Posts: 2978
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

#2 Post by netniV » Sun Oct 20, 2019 6:17 am

Check your firewalls and that your ISP allows SMTP traffic if its external to your network. Many are blocking SMTP from unknown sources.

mzarififar
Posts: 26
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

#3 Post by mzarififar » Sun Oct 20, 2019 12:00 pm

Thanks for your response!

this is not related to our ISP as I configured this in my enterprise network and we have SMTP server in our network. :-? I use our SMTP server IP but it can send any emails...

netniV
Cacti Guru User
Posts: 2978
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

#4 Post by netniV » Sun Oct 20, 2019 5:39 pm

Then you need to check your network configuration. Something is blocking it and it is not Cacti. Check all firewall logs, IP restrictions, and whether the web server service is allowed to make network connections (for example, SELinux can stop apache making network connections).

mzarififar
Posts: 26
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

#5 Post by mzarififar » Fri Nov 08, 2019 1:44 pm

I try to send a message with SMTP configuration on CACTI but I get this message in clog.

2019/11/08 13:35:53 - CMDPHP WARNING Backtrace: (/settings.php[254]:email_test(), /lib/functions.php[3919]:send_mail(), /lib/functions.php[3330]:mailer(), /lib/functions.php[3672]:cacti_debug_backtrace())

can you please advise ?

mzarififar
Posts: 26
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

#6 Post by mzarififar » Fri Nov 08, 2019 2:30 pm

and I use spine and I am not sure the logs came with cmd.php.

netniV
Cacti Guru User
Posts: 2978
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

#7 Post by netniV » Fri Nov 08, 2019 10:42 pm

You'll need to supply the lines around that entry because that alone isn't enough.

Post Reply