Hello dear Percona team.
While setting up PMM3 (deployed as a Docker container) and SMTP settings, we are facing an issue while testing/validating it.
While testing email sending, we are getting this error:
Failed to send test alert: failed to send email: gomail: could not send email 1: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
Our setting is defined on “/etc/grafana/grafana.ini“ and can be seem below:
[smtp]
enabled = true
host = <smtp-server-ommitted>:587
user = ""
password = ""
skip_verify = true
from_address = <from-address-ommitted>
from_name = PerconaAlerting
I could not find useful info on the logs.
Would you be able to give some guidance on how to overcome this?
Thanks.
Did you restart grafana after adding the SMTP settings? supervisorctl restart grafana
Hello Matthew,
I did restart the entire container after the change:
sudo docker stop pmm-server
sudo docker start pmm-server
Hi @FabricioPedrosoJorge,
The error message above means that you need to login to the smtp server for it to allow you to send mails.
You are not using credentials:
user = ""
password = ""
So please double-check your settings.
Hello Agustin,
thanks for your help on this.
Our network team informed that SMTP authentication is not required and emails can be send anonymously. This this supported by Percona?
Have you tried not setting user/password, then? Like I’m showing above.
Thanks again Agustin.
I did the change to grafana.ini, restarted the container, but still facing the same issue:
Failed to send test alert: failed to send email: gomail: could not send email 1: 530 5.7.57 SMTP; Client was not authenticated to send anonymous mail during MAIL FROM
Thanks.
Hi @FabricioPedrosoJorge,
I’d suggest you to check with your IT team or SMTP provider to check exactly what configurations should be used, then. From PMM’s side, you are doing things correctly in terms of how to configure it.