[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26307: 25.1; smtpmail hard-coded auth mechanism order does not allow
From: |
Glenn Morris |
Subject: |
bug#26307: 25.1; smtpmail hard-coded auth mechanism order does not allow coping with misbehaving servers |
Date: |
Fri, 31 Mar 2017 18:59:27 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Marco Maggi wrote:
> (defconst smtpmail-auth-supported '(cram-md5 plain login)
> "List of supported SMTP AUTH mechanisms.
> The list is in preference order.")
>
> it would be useful to have a public API mechanism to change such order
> in case the server misbehaves when using the cram-m5 method.
>
> I am customer of a mail service using a server that advertises to
> support the cram-md5, plain and login methods but then when trying
> cram-md5 the authentication fails; the login method succeeds.
>
> Just changing the above code to:
>
> (defconst smtpmail-auth-supported '(login cram-md5 plain)
>
> and recompiling fixes my problems.
Intead of recompiling, you can add to your .emacs:
(with-eval-after-load 'smtpmail
(setq smtpmail-auth-supported '(login cram-md5 plain)))
Perhaps no Emacs change is needed then?