valeriansaliou / vigil

🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).
https://crates.io/crates/vigil-server
Mozilla Public License 2.0
1.7k stars 125 forks source link

Email sending fails #131

Open benstadin opened 1 year ago

benstadin commented 1 year ago

I'm running vigil on debian 11 with a dedicated service user. I've configured that service user to allow it to send mails via postfix on the same instance.

Sending an email manually with that user works as expected. But no matter what, vigil does not seem to deliver any email even though the log output suggests that it has been sent.

[notify.email]

from = "root@myserver.intern"
to = "me@myself.com"

smtp_host = "localhost"
smtp_port = 587
smtp_username = "vigilservice"
smtp_encrypt = false

The log shows the following entry, suggesting that the email was sent:

May 22 00:37:20 i1 vigil[85721]: (DEBUG) - dispatched notification to provider: email
May 22 00:37:20 i1 vigil[85721]: (DEBUG) - did not dispatch notification to provider: twilio

The postfix log is empty. No email has been sent.

Is my configuration wrong? or is that a bug with vigil itself?

Also, as a feature request, I'd like to address multiple recipients using e.g. a comma separated list. Sending the email fails (also in the log in this case) when using a list.