failed to send notification email by SMTP

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

Moderators: Developers, Moderators

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

failed to send notification email by SMTP

Post by mzarififar »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

Post by netniV »

Check your firewalls and that your ISP allows SMTP traffic if its external to your network. Many are blocking SMTP from unknown sources.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
mzarififar
Posts: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

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: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

Post by netniV »

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).
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
mzarififar
Posts: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

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: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

and I use spine and I am not sure the logs came with cmd.php.
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

Post by netniV »

You'll need to supply the lines around that entry because that alone isn't enough.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
syed123
Posts: 1
Joined: Sun Nov 17, 2019 1:10 pm

Re: failed to send notification email by SMTP

Post by syed123 »

Dear Team,


I need to configure the SMTP Options could you help me








Thanks
Syed
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

Post by netniV »

Console -> Configuration -> Settings -> Mail/Reporting/DNS
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
mzarififar
Posts: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

I know this is located here it doesn't work based on the configuration.

Please advise!
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: failed to send notification email by SMTP

Post by netniV »

I'll refer mostly to my posts above and also that you check if SELinux is enabled as that can interfere, but it's a generic PHP smtp mailing issue as we utilise either that or PHPmailer library to send email.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
misterbux
Posts: 13
Joined: Thu Aug 09, 2018 10:11 pm

Re: failed to send notification email by SMTP

Post by misterbux »

any solution on this??
mzarififar wrote: 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!
mzarififar
Posts: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

I still have an issue for this. I upgraded to the last version it dosen't work and I haven't got any help though.
mzarififar
Posts: 34
Joined: Thu Oct 10, 2019 8:15 am

Re: failed to send notification email by SMTP

Post by mzarififar »

can someone advise me how I can correct this ?

2020-06-30 14:34:13 - CMDPHP WARNING Backtrace: (/settings.php[280]:email_test(), /lib/functions.php[3974]:send_mail(), /lib/functions.php[3372]:mailer(), /lib/functions.php[3724]:cacti_debug_backtrace())
2020-06-30 14:34:13 - MAILER WARNING: Mail failed via SMTP from 'CACTI Monitoring System Notification <cacti@xxx.com>', to 'xxxx@xxxxx.com', cc '', and took 0.00 seconds, Subject 'Cacti Test Message', Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting :x :x :x :x :x :cry: :cry: :cry:
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: failed to send notification email by SMTP

Post by cigamit »

Error: SMTP connect() failed
That is telling you that it could not connect to the server on the port you specified. I would start by testing whether you can do so from the command line on the cacti server.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests