mayan.apps.mailer.mailers.DjangoSMTP uses "user", but django.core.mail.backends.smtp.EmailBackend expects "username"
django.core.mail.backends.smtp.EmailBackend has this signature:
(host=None, port=None, username=None, password=None, use_tls=None, fail_silently=False, use_ssl=None, timeout=None, ssl_keyfile=None, ssl_certfile=None, **kwargs)
However, mayan.apps.mailer.mailers.DjangoSMTP
uses user
instead of username
:
class_fields = (
'host', 'port', 'use_tls', 'use_ssl', 'user', 'password'
)
This results in username
not being set in the connection, which means authentication will fail which will result in 550, 'relay not permitted'
or some other error.
mayan.apps.mailer.mailers.DjangoSMTP
should use username
and not user
.