From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs 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 Message-ID: <0l7f3559yo.fsf@fencepost.gnu.org> References: <8737dvdzkm.fsf@poste.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1491001220 3869 195.159.176.226 (31 Mar 2017 23:00:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2017 23:00:20 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 26307@debbugs.gnu.org To: marco.maggi-ipsu@poste.it Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 01 01:00:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu5WZ-0008CL-En for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 01:00:07 +0200 Original-Received: from localhost ([::1]:43174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu5Wf-0003QR-Ep for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 19:00:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu5WZ-0003Ou-EM for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 19:00:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu5WV-0000AF-MB for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 19:00:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu5WV-0000A9-J0 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 19:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cu5WV-0008Pg-7k for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 19:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2017 23:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26307 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26307-submit@debbugs.gnu.org id=B26307.149100117832277 (code B ref 26307); Fri, 31 Mar 2017 23:00:03 +0000 Original-Received: (at 26307) by debbugs.gnu.org; 31 Mar 2017 22:59:38 +0000 Original-Received: from localhost ([127.0.0.1]:54875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu5W6-0008OW-9D for submit@debbugs.gnu.org; Fri, 31 Mar 2017 18:59:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu5W5-0008OK-GS for 26307@debbugs.gnu.org; Fri, 31 Mar 2017 18:59:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu5Vz-0008RY-PE for 26307@debbugs.gnu.org; Fri, 31 Mar 2017 18:59:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu5Vv-0008PD-TR; Fri, 31 Mar 2017 18:59:27 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cu5Vv-0004Yv-Gr; Fri, 31 Mar 2017 18:59:27 -0400 X-Spook: SSL CISU militia UMTS Nationalist Majic USDOJ Biological X-Ran: n05g4ocub2R"^~m>%JZ+116VULa(zJUU`)h{F#r27h;G8Fl90$?Ro=q%*_pY\/L\0Rt{Gk X-Hue: white X-Attribution: GM In-Reply-To: <8737dvdzkm.fsf@poste.it> (Marco Maggi's message of "Thu, 30 Mar 2017 08:54:33 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131148 Archived-At: 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?