Outlook can't send mail - "Invalid authentication mechanism: LOGIN"
Why Outlook is refused when sending while another mail program works with the same password, and how to fix it.
A customer's Outlook refuses to send, with an error such as 535 5.7.8 ... Invalid authentication mechanism: 'LOGIN', on both port 465 and port 587. The same mailbox and password work in another program, for example Thunderbird.
What it means
Mail programs sign in using one of two methods, called PLAIN and LOGIN. Thunderbird uses PLAIN. Outlook only ever offers LOGIN. If the server accepts PLAIN only, Outlook is refused on every send even though the password is right. The password is not the problem.
Steps
- On the server, ask the mail system which methods it accepts:
It should printsudo doveconf auth_mechanismsauth_mechanisms = plain login. If it prints onlyplain, that is the cause. - Upgrade the server. The update adds
loginto the list automatically and leaves any list you tuned yourself alone:sudo jsopctl upgrade - Run the first command again to confirm it now lists
login, then ask the customer to send again from Outlook.
Tip: if it still fails, check the customer's settings: the user name must be the full email address, with SSL/TLS on port 465 or STARTTLS on port 587, and the server name must be the one on the mailbox's setup page.
For the customer's side of this, see Outlook says it can't send mail.