I cant send smtp notifications due to grafana is using 'localhost' to identify itself with the HELO command,
Jan 11 16:11:22 mailgw02 postfix/smtpd: NOQUEUE: reject: RCPT from grafana01[10.0.0.96]: 504 5.5.2 : Helo command rejected: need fully-qualified hostname; email@example.com firstname.lastname@example.org proto=ESMTP helo=
Jan 11 16:11:22 mailgw02 postfix/smtpd: disconnect from grafana01[10.0.0.96]
I found in the source code it uses 'localhost', https://github.com/grafana/grafana/blob/5bf5ed68e17dabb8c3aa957c6a0b6a9e3e117817/vendor/gopkg.in/gomail.v2/smtp.go#L33-L35
I would like this to be a config option under [smtp] and maybe use the hostname by default.
Would be great if we could avoid adding an extra setting for this.
Using instance_name would be a preferred solution.
feat(mailer): set localname to hostname
Some email providers does not accept localhost
in the HELO message. So we set it to hostname
instead. Our hope is that should be enough for
those providers who does not accept localhost.
docs(changelog): adds note about closing #7223