Grafana smtp CRAM-MD5 authentication failed

Hi there,

Hopefully someone can help. I have Grafana running on a server and I cannot get sending e-mails working. I am using postfix + dovecot to send e-mails (I use a mysql database to store users + password hashes for dovecot). When I add the cram-m5 encryption to dovecot and I try to send an e-mail, the mail log complains that:

" SASL CRAM-MD5 authentication failed: (some hash)".

Grafana also shows this error

t=2020-11-02T12:51:45+0100 lvl=eror msg=“Async sent email 0 succeed, not send emails: [mailaddress] err: Failed to send notification to email addresses: [mailaddress] : 535 5.7.8 Error: authentication failed: somehash” logger=notifications

My smtp settings are ():

[smtp]
enabled = true
host = mail.[domain]:25
user = grafana@[domain]
password = some_password_or_hash
skip_verify = false
from_address = grafana@[domain]
from_name = Grafana

EHLO identity in SMTP dialog (defaults to instance_name)

;ehlo_identity =

Does anyone know how to properly configure this? How does Grafana processes these inputs to compose an e-mail and a hash from the password? What for configurations should I set to dovecot?

Many thanks for any help!

Gof