GNU bug report logs -
#26307
25.1; smtpmail hard-coded auth mechanism order does not allow coping with misbehaving servers
Previous Next
Reported by: marco.maggi-ipsu <at> poste.it
Date: Thu, 30 Mar 2017 06:55:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 25.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26307 in the body.
You can then email your comments to 26307 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26307
; Package
emacs
.
(Thu, 30 Mar 2017 06:55:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
marco.maggi-ipsu <at> poste.it
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 30 Mar 2017 06:55:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In GNU Emacs 25.1.1 (x86_64-slackware-linux-gnu, GTK+ Version 2.24.30)
the library "smtpmail.el" contains the hard-coded list of authentication
mechanisms to try in sequence:
(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.
It is hard to contact the service administrators and having them fix
the problem, so a workaround is useful.
TIA
--
Marco Maggi
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26307
; Package
emacs
.
(Fri, 31 Mar 2017 23:00:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 26307 <at> debbugs.gnu.org (full text, mbox):
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?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26307
; Package
emacs
.
(Sat, 01 Apr 2017 11:12:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 26307 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris wrote:
> 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.
> 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?
But the symbol is defined as a constant, so it would be bad style? It
is also undocumented. Ideally one should be able to select such
configuration on a per-server basis.
--
Marco Maggi
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26307
; Package
emacs
.
(Sun, 02 Apr 2017 15:36:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 26307 <at> debbugs.gnu.org (full text, mbox):
Marco Maggi wrote:
>> (with-eval-after-load 'smtpmail
>> (setq smtpmail-auth-supported '(login cram-md5 plain)))
>
>> Perhaps no Emacs change is needed then?
>
> But the symbol is defined as a constant, so it would be bad style? It
> is also undocumented. Ideally one should be able to select such
> configuration on a per-server basis.
It's (presumably) a constant because in normal operation there's no need
to change it, but if you have a special need to change it, it's easy to
do so.
Personally I don't see a need to add complexity to Emacs to cater to
misconfigured servers.
Added tag(s) wontfix.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 02 Apr 2017 15:37:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
26307 <at> debbugs.gnu.org and marco.maggi-ipsu <at> poste.it
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 15 Apr 2018 17:19:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 14 May 2018 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 349 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.