Cacti 1.2.16 unable to send mails

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

Moderators: Developers, Moderators

Post Reply
arnautalic
Posts: 1
Joined: Mon Jan 25, 2021 6:52 am

Cacti 1.2.16 unable to send mails

Post by arnautalic »

Hello,

i have installed Cacti 1.2.16 and wanted to set the notifications but the SMTP is not working and maybe someone could help me...

1. the server can connect to the mail server which i tested in the cli (Cacti1.png)
2. after sending the test mail i can see the connection to the mail server using tcpdump but for some reason the Cacti server after receiving SMTP 250 code send the quit (cacti-tcpdump.png)
3. in the log i see the output in the attachement (Cacti4.png)

I also tried using my gmail account and i have the same situation so it must be something on the Cacti server.
Attachments
cacti-tcpdump.PNG
cacti-tcpdump.PNG (90.55 KiB) Viewed 553 times
Cacti4.PNG
Cacti4.PNG (13.5 KiB) Viewed 553 times
Cacti1.PNG
Cacti1.PNG (8.12 KiB) Viewed 553 times
User avatar
zuka1337
Posts: 21
Joined: Thu Jan 28, 2021 9:08 am

Re: Cacti 1.2.16 unable to send mails

Post by zuka1337 »

Hello,

I had the same issue latter on, I can sugest you an work arround but is on your responsabilite all the security faults.

Following an issue I've I openned a while ago https://github.com/Cacti/cacti/issues/4024

Try to edit this file:

Code: Select all

include/vendor/phpmailer/src/PHPMailer.php
On SMTPOptions replace with this:

Code: Select all

public $SMTPOptions = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) );
Github https://github.com/zuka1337
Killspikealt https://github.com/zuka1337/killspikealt "Graphical Interface to Remove Spikes"
Spikepyrrd https://github.com/zuka1337/Spikepyrrd "Python Script to remove spikes from graph"
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest