NethServer / dev

NethServer issue tracker
https://github.com/NethServer/dev/issues
62 stars 20 forks source link

No auth mechanism available with Mail relay rule #6926

Closed DavidePrincipi closed 4 months ago

DavidePrincipi commented 4 months ago

The SMTP AUTH LOGIN authentication method is not considered valid by the Mail SMTP client. Some SMTP servers (e.g. Outlook.com) do not provide the PLAIN method and our client does not support LOGIN as it used to do in NS7: the SMTP authentication fails with a no mechanism available error message.

Steps to reproduce

Expected behavior

Apart from the fake.test domain which is an undeliverable domain, the message should be delivered after a succesful SMTP authentication. The Mail log evidence should be something like

2024-05-17T13:23:38+02:00 [1:mail3:postfix/smtpd] 581C96C756475: client=cluster-localnode[10.5.4.1], sasl_method=LOGIN, sasl_username=davidep2

Actual behavior

The message is in the queue. If you see the message delay reason is

SASL authentication failed; cannot authenticate to server 10.5.4.1[10.5.4.1]: no mechanism available

It seems Postfix does not support LOGIN method: maybe the container is missing some Cyrus library?

Components

Mail 1.4.0

See also

https://community.nethserver.org/t/relay-implementation-does-not-work-on-smtp-outlook/23659


Thanks to france

stephdl commented 4 months ago

QA

Test the bug is not reproducible (as alternative you have another way to validate the code is workable, you need an account to outlook.com)

stephdl commented 4 months ago

verification seems good at https://community.nethserver.org/t/relay-implementation-does-not-work-on-smtp-outlook/23659/12

DavidePrincipi commented 4 months ago

Released https://github.com/NethServer/ns8-mail/releases/tag/1.4.1