SMTP missing port in address

Hi grafana team,

I have problem when sending invite to a member email, atfter pressing Invite user button, it said mail sent but actually it does not. It says in the log file that missing port, but i already included
The smtp mail server works, as i still get email daily using that host

Grafana version: grafana-5.1.0-12855pre1

From the log file

=2018-03-26T10:40:52+0000 lvl=eror msg="Async sent email 0 succeed, not send emails: 
trungdinh.le@worldquant.com err: address smtpmailserver.mlp.com: **missing port in address**"
#################################### SMTP / Emailing #####################
[smtp]
enabled = true
host = smtpmailserver.mlp.com:25
user =
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password =
cert_file =
key_file =
skip_verify = false
from_address = admin@grafana.localhost
from_name = Grafana
ehlo_identity =

[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.html

Are the asteriks for hiding the real server name and port or is this what you actually have in your ini file?

Hi danielle,
no it’s
host = smtpmailserver.mlp.com:25
The asterick is for making the text bolden but for some reasons it failed

Just to be sure - have you restarted your grafana server after making a change to the ini file?

/Daniel

Yes, i did kill the process and restart several times

Just moved to another host and i noticed different message
“Async sent email 0 succeed, not send emails: trungdinh.le@worldquant.com err: x509: certificate is valid for Cisco Appliance Demo Certificate, not smtpmailserver.mlp.com

not sure what does that mean

That is a TLS error. The domain on your cert does not match the domain of the email server. If this is an internal Grafana then you could skip the TLS verification with this setting:

http://docs.grafana.org/installation/configuration/#skip-verify

or get a proper TLS cert (https://letsencrypt.org/).

1 Like