![](https://secure.gravatar.com/avatar/11b54b3dd25b712395dab9818c67596f.jpg?s=120&d=mm&r=g)
My experience has been that just using a local MTA is the more reliable setup indeed.
I'm not sure how good a job we do of explaining the mail setup in the documentation though (or how to use test_alert.php).
Adam.
From: observium observium-bounces@observium.org On Behalf Of Joe Brouillette via observium Sent: 19 May 2022 19:58 To: Observium observium@observium.org Cc: Joe Brouillette jobee@linktransit.com Subject: Re: [Observium] Unable to email
Thanks Adam! I removed postfix (I had to manually remove the folders) and then reinstalled it, I brought the default config.php (I leave copies of some files in their folders) back to life and configured it, and then I tried yet another mail -s test. I think we're good.
userX@Observium2:/opt/observium$ sudo ./test_alert.php -a 11
Observium 22.5.12000
Test Alert Notification
o Queueing Notification [327]
o Notifying [email] userX - Email: {"email":"userX@domain.com mailto:userX@domain.com "} [OK]
userX@Observium2:/opt/observium$
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com mailto:jobee@linktransit.com
"Any sufficiently advanced science looks like magic." - Arthur C. Clarke
"All magic comes with a price." - Rumplestiltskin
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong via observium Sent: Thursday, May 19, 2022 6:49 AM To: 'Observium' <observium@observium.org mailto:observium@observium.org > Cc: Adam Armstrong <adama@observium.org mailto:adama@observium.org > Subject: Re: [Observium] Unable to email
Why are you using SMTP if the postfix can send email? :D
I swear, almost every single "why doesn't email work" email is people trying to make the SMTP transport work. There's something seriously deficient in the SMTP libraries.
It's way easier just to use normal mail delivery with a working local MTA.
Adam.
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org > On Behalf Of Joe Brouillette via observium Sent: 19 May 2022 02:03 To: Observium <observium@observium.org mailto:observium@observium.org > Cc: Joe Brouillette <jobee@linktransit.com mailto:jobee@linktransit.com > Subject: Re: [Observium] Unable to email
I did the debug and this was the result:
[ authentication failure [SMTP: STARTTLS failed (code: 220, response: 2.0.0 Ready to start TLS)]]
(I tried -dd hoping for more information and my computer unplugged itself)
Googling that error had a few hits about authentication. I checked my Exchange server logs but didn't find much there. It is a local Exchange server so I checked for Observium tips on using Exchange server but I didn't find anything pertinent. Are there any additional configuration steps to get Observium to shoot through Exchange?
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com mailto:jobee@linktransit.com
"Any sufficiently advanced science looks like magic." - Arthur C. Clarke
"All magic comes with a price." - Rumplestiltskin
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Adam Armstrong via observium Sent: Wednesday, May 18, 2022 2:44 PM To: 'Observium' <observium@observium.org mailto:observium@observium.org > Cc: Adam Armstrong <adama@observium.org mailto:adama@observium.org > Subject: Re: [Observium] Unable to email
That's not how test_alert.php works:
USAGE:
test_alert.php -a alert_entry_id [-d debug]
test_alert.php -c contact_id [-r] [-d debug]
The -a argument should be an alert_entry_id (an individual alert), or you can use -c where the argument should be a contact_id. You can find these IDs in the UI when you visit the pages for the entries they refer to.
Adam.
From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org > On Behalf Of Joe Brouillette via observium Sent: 18 May 2022 19:25 To: Observium <observium@observium.org mailto:observium@observium.org > Cc: Joe Brouillette <jobee@linktransit.com mailto:jobee@linktransit.com > Subject: [Observium] Unable to email
I had to redo my Observium installation and at this time I'm unable to receive any alerts. I tried testing postfix and that works:
sudo echo "This is the body of the email" | mail -s "This is the subject line" userX@domain.com mailto:userX@domain.com
When I try it with Observium I get nothing:
userX@Observium2:/opt/observium$ ./test_alert.php -a userx@domain.com mailto:userx@domain.com
Observium 22.5.12000
Test Alert Notification
userX@Observium2:
I've Googled this and I found serveral hits to change the PHP file, but I understood that we shouldn't be "tweaking" that file. Any ideas on what I've missed?
Thanks,
Joe Brouillette
IT Specialist
Link Transit
509.664.7643
jobee@linktransit.com mailto:jobee@linktransit.com
"Any sufficiently advanced science looks like magic." - Arthur C. Clarke
"All magic comes with a price." - Rumplestiltskin