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: Select all
/* 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;
Any idea?