-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to send email: gomail: could not send email 1: 550 5.2.0 Spam message rejected #4313
Comments
I'm afraid that's something you will need to figure out as there is not enough information here to know what the problem might be. Your SMTP server should be able to log the headers of the outgoing email and also show you the reason it was rejected by the recipient mailbox. |
Then what can I do to leverage, for example, Alertmanager's logging to find out more information? Here is a third party mail provider in use, which is used for a variety of purposes, including these alerts and the only mails, which do not arrive, are from Alertmanager. Even Grafana sent alerts arrive. So, Alertmanager must do something special here. |
If the email is rejected by your SMTP server then you'll see an error in your Alertmanager logs with either You could also run a local SMTP server to see the full contents of the email, including headers, sent from Alertmanager, and compare that to emails sent from Grafana. Any differences could be what is causing the recipients spam filter to reject the email. |
Yes, this precedes the error message in the title: Then this means, the sending SMTP server is already rejecting the to be sent e-mails? |
Can you share the full log line? |
|
This is a log line from Grafana. Isn't the issue in Prometheus Alertmanager? In which case there shouldn't be an |
As far as I can see Maybe, I need to be more clear.
|
I'm afraid your explanation is not making sense for a number of reasons:
Datasource Managed Alerts in Grafana cannot (to my knowledge) use Grafana's internal Alertmanager. However, the logs you have shared are from Grafana's internal Alertmanager as they start with If you are running Prometheus Alertmanager as a seperate program, please can you share the logs from that that show this error? If it only happens in the Grafana internal Alertmanager, and you are not actually running Prometheus Alertmanager as a seperate program, you need to open an issue at github.com/grafana/grafana. Grafana uses it's own email implementation for sending emails, swapping out the default implementation in Alertmanager. |
If Grafana's Alertmanager supposedly were not to work, why do I get notifications from Grafana for the Grafana alerts and no notifications from data source managed alerts, when they are, according to all UIs, fired? Grafana's alerts work fine. Data source managed ones do not send anything. So, how does Grafana's Alertmanager not work, when in fact it is the other way around?
No, Grafana Alertmanager runs fine.... I don't know what I need to show or explain to you, to make that clear. I can forward you the mail notification coming from Grafana, if you want to see it. And I cannot forward you any mail from the separate Alertmanager, because it does not arrive, ever. Or do I need to show you the three different The error does not make any sense for Grafana's internal Alertmanager, as Grafana's e-mail notifications work fine. So, why would that error appear in regards to Grafana, when Grafana's notifications work? Does not make sense. |
The log line you shared shows Grafana alerts not working? The reason is the log line for the failed email notification starts with If you are running Prometheus Alertmanager, and emails from that are not working as well, please can you share those logs? It seems to me that you have shared the logs from your Grafana pod instead of your Alertmanager pod. |
Did you have any luck with getting logs from your Alertmanager pod? |
It's easy to blame the mail provider here, but finish reading this issue first.
rules.yml
andalertmanager.yml
.Therefore, Alertmanaged specifically does something different from Grafana, that causes the e-mail messages to become rejected.
What is the cause? How to solve this issue?
I'm very surprised I did not find any other such issue on this topic, so far.
The text was updated successfully, but these errors were encountered: