Email notification in OCIS5

I am trying to setup email notification in OCIS. Here my env values:

NOTIFICATIONS_SMTP_HOST=<smtp server>

NOTIFICATIONS_SMTP_PORT=<port>

NOTIFICATIONS_SMTP_AUTHENTICATION=login

NOTIFICATIONS_SMTP_SENDER=noreply@abc.ca

NOTIFICATIONS_SMTP_USERNAME=<user_name>

NOTIFICATIONS_SMTP_PASSWORD=<password>

NOTIFICATIONS_SMTP_ENCRYPTION=starttls

NOTIFICATIONS_EMAIL_TEMPLATE_PATH=/etc/ocis

Errors in cis log file:

Initial error

{"level":"error","service":"notifications","error":"Mail Error: mail: no angle-addr; Header: [From] Address: [Joe Smith via noreply@yyy.ca]","event":"SendEmail","time":"2024-05-15T12:37:18-07:00","message":"failed to send a message"}

I “fixed” that by using angle-addr in user name for user Joe Smith Joe@abc.ca but then I got another error:

{"level":"error","service":"notifications","error":"Mail Error: mail: expected single address, got \"via noreply@abc.ca\"; Header: [From] Address: [Joe Smith<Joe@abc.ca> via noreply@abc.ca]","event":"SendEmail","time":"2024-05-15T12:35:24-07:00","message":"failed to send a message"}

I did not define NOTIFICATIONS_SMTP_SENDER but then I got this error:

{"level":"error","service":"notifications","error":"Mail Error: mail: expected single address, got \"via \"; Header: [From] Address: [Joe Smith<Joe@abc.ca> via ]","event":"SendEmail","time":"2024-05-15T12:12:14-07:00","message":"failed to send a message"}

Any ideas what is going on or is it bug in notification service.

– jp