Details
-
Help
-
Resolution: Unresolved
-
Major
-
None
-
CE-21.10
-
None
Description
Hi all,
I'm running Observium CE 22.5.12042 and I'm facing issues with my observium installation, regarding alerting by email.
My machine has postfix configured correctly, and If I try to send an email from the console, everything seems to be ok.
echo "test message" | /usr/sbin/sendmail -v myemail@mydomain.it |
Following your support area, I also configured config.php manually to fit all the SMTP settings for my server.
$config['email']['enable'] = TRUE; |
$config['email']['from'] = "'Observium' <geoobs@geo.local>"; |
$config['email']['default'] = "XXXXXX@myaddress.it"; |
$config['email']['default_only'] = TRUE; |
$config['email']['backend'] = 'smtp'; |
$config['email']['sendmail_path'] = '/usr/sbin/sendmail'; // The location of the sendmail program. |
$config['email']['smtp_host'] = 'smtp-relay.sendinblue.com'; // Outgoing SMTP server name. |
$config['email']['smtp_port'] = 587; // The port to connect. |
$config['email']['smtp_timeout'] = 10; // SMTP connection timeout in seconds. |
$config['email']['smtp_secure'] = "tls"; // Enable encryption. Use 'tls' or 'ssl' or 'starttls' |
$config['email']['smtp_auth'] = TRUE; // Whether or not to use SMTP authentication. |
$config['email']['smtp_username'] = "XXXXXXX@XXXXXX.it"; // SMTP username. |
$config['email']['smtp_password'] = "XXXXXXXXXXXXXXX"; // Password for SMTP authentication. |
However, no emails were sent from my observium, even if alert occurred. And I cannot see any log in /var/log/syslog or mail.log or mail.err
Could you help me to fix it and to see if postfix is trying to send messages or not?
Thanks in advance
D.
It'll likely work if you remove almost all of that configuration mess. Why have you told it to use SMTP and configured SMTP parameters, and are then testing with sendmail binary?
DO NOT USE SMTP IF YOU DON'T HAVE TO.
Just use local mta, this requires no special configuration except for the 'from' field. It does require a working mail server on the Observium system.