And thus continues the saga of SMTP configurations never working.

Remove all of that SMTP configuration and set up a local mail relay on the Observium server and it'll probably start working again.

Also,  YOU NEVER EVER CHANGE DEFAULTS.INC.PHP

NEVER
EVER
NEVER
EVER
NEVER

adam.

------ Original Message ------
From: "San Rollheiser" <san.rollheiser@gmail.com>
To: "Observium Network Observation System" <observium@observium.org>
Sent: 2018-05-24 13:57:48
Subject: [Observium] [Question] Problem Alert Mails

Hi guys, sorry for bother you, but have a question about the email configuration.
After the update a few versions back work fine the alerts by email. But now not work, only work my integration with Slack, but i need the email alerts.

My configuration is this:

config.php

// Set up a default alerter (email to a single address)

$config['email']['default']        = "alarmas@tinitix.com";
$config['email']['from']           = "Alarmas <alarmas@tinitix>";
$config['email']['default_only']   = TRUE;


/include/defaults.inc.php

// Mailer backend Settings

$config['email']['enable']          = TRUE;                 // Enable/Disable email globally
$config['email']['from']            = TRUE;                 // Mail from. Default: "Observium" <observium@`hostname`>
$config['email']['default']         = TRUE;                 // Default alert recipient
$config['email']['default_only']    = FALSE;                // Only use default recipient (all alerts send to default recipient)
$config['email']['graphs']          = TRUE;                 // Allow graphs in mail body
$config['email']['backend']         = 'smtp';               // Mail backend. Allowed: "mail" (PHP's built-in), "sendmail", "smtp".

// sendmail backend specific options

$config['email']['sendmail_path']   = '/usr/sbin/sendmail'; // The location of the sendmail program.

// smtp backend specific options

$config['email']['smtp_host']       = 'my_ip_smtp_server';          // Outgoing SMTP server name.
$config['email']['smtp_port']       = '465';                   // The port to connect.
$config['email']['smtp_timeout']    = '60';                   // SMTP connection timeout in seconds.
$config['email']['smtp_secure']     = 'ssl';                 // Enable encryption. Use 'tls' or 'ssl'
$config['email']['smtp_auth']       = TRUE;                // Whether or not to use SMTP authentication.
$config['email']['smtp_username']   = 'soporte@tinitix.com';                 // SMTP username.

Thx.
BR
Santiago