GNU bug report logs -
#26359
25.2; smtpmail.el tries useless unauthenticated connection
Previous Next
Reported by: Ulrich Mueller <ulm <at> gentoo.org>
Date: Tue, 4 Apr 2017 10:22:01 UTC
Severity: normal
Tags: fixed
Merged with 31990,
35682
Found in versions 25.2, 26.1, 27.0.50
Fixed in version 27.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 26359 in the body.
You can then email your comments to 26359 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#26359
; Package
emacs
.
(Tue, 04 Apr 2017 10:22:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ulrich Mueller <ulm <at> gentoo.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 04 Apr 2017 10:22:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Some mail servers implement a policy that limits the number of
concurrent or quasi-concurrent connections per host. The method how
smtpmail.el connects to a server doesn't help to avoid such limits.
In detail: smtpmail.el will always try an unauthenticated connection
first by calling smtpmail-via-smtp without the ask-for-password
argument. If the mail server allows only authenticated connections,
it will reject the connection either with status 530 "auth required"
or with status 554 "relaying denied". smtpmail-via-smtp catches these
errors and subsequently calls itself, but now with ask-for-password
set to t.
However, if the server has implemented a policy as mentioned above,
that retry may be enough to trip the limit and the second connection
will be refused by the server.
So could this be made configurable please, such that smtpmail will
immediately try with an authenticated connection? AFAICS, this should
be easily possible in either smtpmail-via-smtp or in its callers, by
conditionally setting ask-for-password depending on some configuration
variable.
Currently I am working around the problem with an advice:
(defadvice smtpmail-via-smtp
(around always-ask-for-password
(recipient smtpmail-text-buffer &optional ask-for-password)
activate)
(let ((ask-for-password t))
ad-do-it))
In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, X toolkit)
of 2017-03-28 built on juno
Windowing system distributor 'The X.Org Foundation', version 11.0.11903000
System Description: Gentoo Base System release 2.3
Configured using:
'configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --docdir=/usr/share/doc/emacs-25.2_rc2
--htmldir=/usr/share/doc/emacs-25.2_rc2/html --libdir=/usr/lib64
--program-suffix=-emacs-25 --infodir=/usr/share/info/emacs-25
--localstatedir=/var
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
--with-gameuser=:gamestat --without-compress-install
--with-file-notification=inotify --enable-acl --with-dbus
--without-modules --with-gpm --without-hesiod --without-kerberos
--without-kerberos5 --with-xml2 --without-selinux --with-gnutls
--without-wide-int --with-zlib --with-sound=alsa --with-x
--without-ns --without-gconf --with-gsettings
--without-toolkit-scroll-bars --with-gif --with-jpeg --with-png
--with-rsvg --with-tiff --with-xpm --with-imagemagick --with-xft
--without-cairo --with-libotf --with-m17n-flt --with-x-toolkit=lucid
--with-xaw3d GENTOO_PACKAGE=app-editors/emacs-25.2_rc2
'CFLAGS=-march=core2 -ggdb -O2 -pipe' CPPFLAGS= 'LDFLAGS=-Wl,-O1
-Wl,--as-needed''
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB LUCID X11
Important settings:
value of $LC_CTYPE: en_GB.UTF-8
value of $LANG: POSIX
locale-coding-system: utf-8-unix
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26359
; Package
emacs
.
(Fri, 26 Jul 2019 10:18:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 26359 <at> debbugs.gnu.org (full text, mbox):
Ulrich Mueller <ulm <at> gentoo.org> writes:
> So could this be made configurable please, such that smtpmail will
> immediately try with an authenticated connection? AFAICS, this should
> be easily possible in either smtpmail-via-smtp or in its callers, by
> conditionally setting ask-for-password depending on some configuration
> variable.
Makes sense. I've now added smtpmail-servers-requiring-authorization to
the trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 26 Jul 2019 10:18:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
26359 <at> debbugs.gnu.org and Ulrich Mueller <ulm <at> gentoo.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 26 Jul 2019 10:18:04 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26359
; Package
emacs
.
(Fri, 26 Jul 2019 12:14:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 26359 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 26 Jul 2019 12:17:25 +0200
> Cc: 26359 <at> debbugs.gnu.org
>
> I've now added smtpmail-servers-requiring-authorization to the
> trunk.
Please add a :version tag to it.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#26359
; Package
emacs
.
(Fri, 26 Jul 2019 12:18:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 26359 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> I've now added smtpmail-servers-requiring-authorization to the
>> trunk.
>
> Please add a :version tag to it.
Sorry; I keep forgetting to do that... Fixed now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Forcibly Merged 26359 35682.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 26 Jul 2019 12:52:02 GMT)
Full text and
rfc822 format available.
Forcibly Merged 26359 31990 35682.
Request was from
Robert Pluim <rpluim <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 26 Jul 2019 13:20: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
.
(Sat, 24 Aug 2019 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.