Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Mar 28, 2017 1:21 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: sending email with TLS auth
PostPosted: Tue Aug 16, 2011 9:17 am 
Offline

Joined: Tue Aug 16, 2011 8:43 am
Posts: 1
Hi!
I have cacti 0.8.7g with Plugin Architecture Version: 2.8. I want send email notification by SMTP server of php mail() function, but i have account on outlook.com where is TLS authentication, when i try to send test email from cacti i got this error:

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
Host: amsprd0402.outlook.com
Port: 587
Authenication: true
Username: mailer@akademiasztuki.eu
Password: (Not Shown for Security Reasons)

Sending Message...

ERROR: SMTP Host does not appear to support authenication: 504 5.7.4 Unrecognized authentication type
SMTP Host does not appear to support authenication: 504 5.7.4 Unrecognized authentication type


I tried to edit /usr/share/cacti/site/plugins/settings/include/mailer.php by adding on line 735 this: fputs($smtp_sock, "STARTTLS\r\n"); :

Code:
/* Perform Authenication - If username and password set */                                                                           
if ((! empty($this->Config["Mail"]["SMTP_Username"])) && (! empty($this->Config["Mail"]["SMTP_Password"]))) {                       
fputs($smtp_sock, "STARTTLS\r\n"); <-- i add this                                                                                                                 
fputs($smtp_sock, "AUTH LOGIN\r\n");                                                                                         
$smtp_response = fgets($smtp_sock, 4096);                                                                                   
if (substr($smtp_response,0,3) != "334") {                                                                                   
$this->Error = "SMTP Host does not appear to support authenication: " . $smtp_response;                             
fclose($smtp_sock);                                                                                                 
return false;


But adding this doesnt help :(

Any idea?


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Sat Sep 17, 2011 12:37 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14863
Location: MI, USA
I believe that there may be some handshaking required. Please log a bug and include the detail from this post at http://bugs.cacti.net

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Sun Sep 18, 2011 9:06 am 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5939
Location: Michigan, USA
The SMTP mailer doesn't currently support TLS.

Do put a bug in.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Wed Nov 19, 2014 11:41 am 
Offline

Joined: Wed Nov 19, 2014 11:34 am
Posts: 1
Long time fan of Cacti, but new member here.

Was wondering if the issue with the SMTP mailer using TLS ever was addressed?


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Fri Jan 02, 2015 2:01 am 
Offline

Joined: Fri Jan 02, 2015 1:11 am
Posts: 2
I think its not supports yet. If TLS or SSL can support, please let me know. Stuck with email alert thing for days.


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Fri Jan 02, 2015 2:23 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2565
Location: Kressbronn, Germany
I think the next Cacti version is going to include an advanced "settings" plugin using the PHPMailer addon. This one does indeed support TLS then.

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Sun Jan 04, 2015 7:58 pm 
Offline

Joined: Fri Jan 02, 2015 1:11 am
Posts: 2
Hello Guys,

Just an update. I managed to send email with ssl. The problem I had was with SELINUX. After set to permissive, it worked.
On tls option, iam still having a trouble because email server responds as "synchronization error".

Cheers


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Mon Jul 27, 2015 2:51 pm 
Offline

Joined: Mon Jul 27, 2015 2:49 pm
Posts: 1
TLS aut was released?


Top
 Profile  
 
 Post subject: Re: sending email with TLS auth
PostPosted: Thu Jun 16, 2016 4:51 am 
Offline

Joined: Fri Nov 07, 2014 8:55 am
Posts: 10
All,

I was just wondering if there has been any movement on having TLS authentication enabled in Cacti?

If not, is there any way I will be able to use SMTP to send e-mails using publicly-available SMTP servers? These e-mails do not need to be particularly secure as no sensitive information is being transmitted, so if anyone can help that'd be appreciated. I've tried a few, but none of them seem to work. As SSL support is being dropped more and more it's getting harder to find one that doesn't only support TLS :(

Regards,

Tom


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group