Mattermost, Inc.

SMTP Relay configuration not working

Summary

Mattermost SMTP configuration for SMTP relay using

Steps to reproduce

Mattermost Team Edition
Mattermost Version: 5.14.0
Database Schema Version: 5.14.0
Database: postgres
SMTP configuration:


I have smtp relay in gmail,configurated to allow all messages from mattermost server IP ,with TLS on and without SMTP authentication off.I dont have TLS configurated on mattermost server - only on proxy.

Expected behavior

Mail messages should be delivered to recipient.

Observed behavior

Mail messages are not sent by the Mattermost server.He asks for turning on SMTP authentification.But noreply@example.com accounts they don’t need it.
From logs:
{“level”:“error”,“ts”:1567412113.274531,“caller”:“app/email.go:354”,“msg”:“Failed to send invite email successfully err=SendMail: Error setting “From Address”, 530 5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError o20sm2236716ljg.31 - gsmtp”}

Hi, @Przemek_Boniarczyk

Thanks for sharing the details. Based on the error that you are getting here 530 5.5.1 Authentication Required, I suspect that it might be related to the settings on Gmail side itself. With reference to the following article:

Can you please check if the suggestions of enabling the less secure apps or the rest of suggestions work for you?