From unknown Sun Jun 15 08:29:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#35682 <35682@debbugs.gnu.org> To: bug#35682 <35682@debbugs.gnu.org> Subject: Status: 27.0.50; Weird failure to authenticate in smtpmail Reply-To: bug#35682 <35682@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:29:44 +0000 retitle 35682 27.0.50; Weird failure to authenticate in smtpmail reassign 35682 emacs submitter 35682 Stefan Monnier severity 35682 normal tag 35682 fixed thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 10 19:27:05 2019 Received: (at submit) by debbugs.gnu.org; 10 May 2019 23:27:05 +0000 Received: from localhost ([127.0.0.1]:39431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPEuu-00082S-PD for submit@debbugs.gnu.org; Fri, 10 May 2019 19:27:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPEur-00081Z-IY for submit@debbugs.gnu.org; Fri, 10 May 2019 19:27:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:33599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPEum-00044X-CS for submit@debbugs.gnu.org; Fri, 10 May 2019 19:26:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPEuk-0002Dy-P7 for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 19:26:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPEuj-000438-9v for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 19:26:54 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3035) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hPEuj-00042U-2P for bug-gnu-emacs@gnu.org; Fri, 10 May 2019 19:26:53 -0400 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 476331008C6 for ; Fri, 10 May 2019 19:26:51 -0400 (EDT) Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6A46E100870 for ; Fri, 10 May 2019 19:26:49 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1557530809; bh=Q0jk/j8wXAW50f3RHQZzqdr8ZS5zb5ivWH+KT4HlcuA=; h=From:To:Subject:Date:From; b=UW8sddIewcGQ50Liiyn/+o+cw1P4oLInt4AI/VlPvlL+zaXW0OB/IJXzbHXN6ttAX 1c/SU6LOGqbveYb0rfvZo4hJunu15F5YbXzcEKoevaMIgIKzhPMQ+zx6X/iMb+1kV9 HjusTQ1latZshJ/ZcRhLoZiXGdON+/G9mgucm6KiCt7IPzpSBC64LZJ3vEc0S+rWYS +EF2xgNNkZwm5MCBWRUa3CiZaex05KJI+PQof/vhi6KK/qtKlH+jLbc1fMcVBfmHiC 5WRy+GvfIicPOUO91SfrJFOs3L5eYBhsTqNAvLHnRuP1/TSeJ80nwOstiTcPO0vG0e ubjbQyX+eTViA== Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 1C75C120E0F for ; Fri, 10 May 2019 19:26:49 -0400 (EDT) From: Stefan Monnier To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Weird failure to authenticate in smtpmail Date: Fri, 10 May 2019 19:26:42 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Package: Emacs Version: 27.0.50 Recently my SMTP server was updated and I started to get authentication errors when sending email. More specifically, when sending from message-mode, I get the following error: Debugger entered--Lisp error: (error "Sending failed: 453 4.7.1 : Sender address rejected: not logged in") signal(error ("Sending failed: 453 4.7.1 : Sender address rejected: not logged in")) error("Sending failed: 453 4.7.1 : Sender address rejected: not logged in") smtpmail-send-it() message-smtpmail-send-it() message-multi-smtp-send-mail() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) funcall-interactively(message-send-and-exit nil) call-interactively(message-send-and-exit nil nil) command-execute(message-send-and-exit) My smtpmail-related settings are: (setq send-mail-function #'smtpmail-send-it) (setq smtpmail-smtp-service 587) (setq smtpmail-smtp-server ) (setq smtpmail-smtp-user "monnier@iro.umontreal.ca") and until recently this worked fine, prompting me for a password and authenticating with it. But now, I don't get prompted for a password any more. I can work around the problem with the patch below, but I have no idea what other undesired effects it should have. Apparently the code catches the error 530 and treats it as a request to perform authentication, so maybe the origin of the problem is that the mail server now returns 453 instead of 530? Should Emacs handle 453 like it handles 530? Should I report the problem to my SMTP admin instead? Stefan In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2019-05-08 built on pastel Repository revision: e8754776a6d9cef4b28c3f0ad8320669656500d9 Repository branch: work Windowing system distributor 'The X.Org Foundation', version 11.0.11902000 System Description: Debian GNU/Linux 9 (stretch) Recent messages: Saving file /home/monnier/src/emacs/elpa/packages/haskell-tng/test/haskell-tng-syntax-test.el... Wrote /home/monnier/src/emacs/elpa/packages/haskell-tng/test/haskell-tng-syntax-test.el Saving file /home/monnier/src/emacs/elpa/packages/haskell-tng/test/haskell-tng-syntax-test.el... Wrote /home/monnier/src/emacs/elpa/packages/haskell-tng/test/haskell-tng-syntax-test.el Mark saved where search started Finding changes in /home/monnier/src/elisp/haskell-tng.el/...done Warning: hide-sublevels is obsolete! Mark set [3 times] Saved text until "eftest haskell-tng-syntax-file-tests () " Configured using: 'configure -C --enable-checking --with-modules --enable-check-lisp-object-type 'CFLAGS=-Wall -g3 -Og -Wno-pointer-sign' PKG_CONFIG_PATH=/home/monnier/lib/pkgconfig' Configured features: XAW3D XPM JPEG TIFF GIF PNG SOUND GPM DBUS NOTIFY INOTIFY GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings: value of $LANG: fr_CH.UTF-8 locale-coding-system: utf-8-unix Major mode: InactiveMinibuffer Minor modes in effect: shell-dirtrack-mode: t electric-pair-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t global-compact-docstrings-mode: t url-handler-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t file-name-shadow-mode: t global-font-lock-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/monnier/src/emacs/elpa/packages/adaptive-wrap/adaptive-wrap hides /home/monnier/src/emacs/elpa/packages/taskpaper-mode/adaptive-wrap /home/monnier/src/emacs/elpa/packages/svg/svg hides /home/monnier/src/emacs/work/lisp/svg /home/monnier/src/emacs/elpa/packages/ada-mode/ada-prj hides /home/monnier/src/emacs/work/lisp/progmodes/ada-prj /home/monnier/src/emacs/elpa/packages/ada-mode/ada-stmt hides /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt /home/monnier/src/emacs/elpa/packages/ada-mode/ada-mode hides /home/monnier/src/emacs/work/lisp/progmodes/ada-mode /home/monnier/src/emacs/elpa/packages/ada-mode/ada-xref hides /home/monnier/src/emacs/work/lisp/progmodes/ada-xref /home/monnier/src/emacs/elpa/packages/hyperbole/set hides /home/monnier/src/emacs/work/lisp/emacs-lisp/set /home/monnier/src/emacs/elpa/packages/crisp/crisp hides /home/monnier/src/emacs/work/lisp/obsolete/crisp /home/monnier/src/emacs/elpa/packages/landmark/landmark hides /home/monnier/src/emacs/work/lisp/obsolete/landmark Features: (shadow sort mail-extr emacsbug sendmail log-view vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc shell pcomplete grep log-edit message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util pcase add-log smerge-mode vc vc-dispatcher cl-print debug backtrace executable copyright dabbrev eieio-opt speedbar imenu sb-image ezimage dframe find-func completion cl-extra advice help-fns autoload radix-tree misearch multi-isearch vc-git diff-mode filecache epa-file epa derived epg server time-date flymake-proc flymake compile comint ansi-color ring warnings noutline outline easy-mmode flyspell ispell checkdoc lisp-mnt thingatpt help-mode load-dir elec-pair reveal autoinsert savehist minibuf-eldef disp-table compact-docstrings cl-seq inline kotl-autoloads realgud-recursive-autoloads finder-inf url-auth info vm-autoloads mule-util lmc-autoloads proof-site proof-autoloads package easymenu epg-config url-handlers url-parse auth-source eieio eieio-core cl-macs gv eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame simple minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 285720 39081) (symbols 48 15867 1) (strings 32 68170 6261) (string-bytes 1 2205149) (vectors 16 65536) (vector-slots 8 1453965 117536) (floats 8 137 228) (intervals 56 3877 887) (buffers 992 62)) From debbugs-submit-bounces@debbugs.gnu.org Sat May 11 06:16:20 2019 Received: (at 35682) by debbugs.gnu.org; 11 May 2019 10:16:20 +0000 Received: from localhost ([127.0.0.1]:39932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPP3D-0008VE-PQ for submit@debbugs.gnu.org; Sat, 11 May 2019 06:16:20 -0400 Received: from mail-wm1-f42.google.com ([209.85.128.42]:54555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPP3B-0008V0-RA for 35682@debbugs.gnu.org; Sat, 11 May 2019 06:16:18 -0400 Received: by mail-wm1-f42.google.com with SMTP id i3so3874982wml.4 for <35682@debbugs.gnu.org>; Sat, 11 May 2019 03:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=75ZYjFCvv38VOmMDUjFKDpKojTdPWKPJb9tBnxIoP9Y=; b=MLZeXDkyEuwLolZUab5BzHomHyMhh6G+rQgE6eTEteW4P08PuqVio40yanK8a9x3Hh q2vkdr/HfK62CIMQMdAycQseHyDl6Fcl8rTtRaZpCJO1+icbiqz6dc1s/GpakJrE+Oyt /g0muMGoZxBlV2cQEIsy5NTw2yfWBYcO4NqJSz6p0tPag6GdAzQDi8I9/A+U212h0M5A 0JbJBsRtvZ0QN18rP9AD8jikzUz0tevLehtIuqo3QkDa8/3hakgnm50SYbxnqm93knBa xwo87cT6eZ73Z+DCsmnn0jP2SWNZl5CZHVfy9ujkUhrQ8P8RDPpK0aQHVSkkhw0XZK2j IpJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=75ZYjFCvv38VOmMDUjFKDpKojTdPWKPJb9tBnxIoP9Y=; b=iCpO9YHyghbIPuPzmzw0hh3pBG1lE5pry8JmUvgXfMjCcQ5hTvKgS4ztvZmu6Ogm37 IB+ZkwMSFroJCWvcFerCjZqxh7jg1jrkCCf0Kmxana/pFbzRGXQCHXObYpJ71/c26AeP jmIZKoHtFxP61b8U0vERwc3XMUwKjR2ImUtA4hcQ4hWnGM2HLbCb1vitP3uIAcMD/s7K p0WCYpnUXs2iv+xgnrzSwaLrkzP4S5Wwj3pWtZpogUptjSvugetLdEvDDNxC+6KH4suR S9aoTC7O3dbb50r0FG9JbmfnPpQhEwwtFsHrrItfwD7O33G6PW4oBX0XW9kR7rcwfvij JJiQ== X-Gm-Message-State: APjAAAV1D3PaysET7sVyG26z6tt/lu7vHIf5zTVEJ7BE9cYM/aGkL+Si 9q/ciRAC5Vva/UuZSmYOupRniXIw X-Google-Smtp-Source: APXvYqzPA70Te9JnsP8XlJ7jIhvAV0V+BpbcapWyuQC31eoEnF+JrvIQiUO3iEusqBr0Akms69rHZA== X-Received: by 2002:a7b:c74e:: with SMTP id w14mr9605162wmk.19.1557569771645; Sat, 11 May 2019 03:16:11 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:5197:f2f2:1d4e:f66b]) by smtp.gmail.com with ESMTPSA id x187sm5411582wmb.33.2019.05.11.03.16.09 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 11 May 2019 03:16:10 -0700 (PDT) From: Robert Pluim To: Stefan Monnier Subject: Re: bug#35682: 27.0.50; Weird failure to authenticate in smtpmail References: X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sat, 11 May 2019 12:16:09 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 10 May 2019 19:26:42 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35682 Cc: 35682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Fri, 10 May 2019 19:26:42 -0400, Stefan Monnier said: Stefan> Package: Emacs Version: 27.0.50 Stefan> Recently my SMTP server was updated and I started to get Stefan> authentication errors when sending email. More Stefan> specifically, when sending from message-mode, I get the Stefan> following error: Stefan> Debugger entered--Lisp error: (error "Sending failed: Stefan> 453 4.7.1 : Sender address Stefan> rejected: not logged in") signal(error ("Sending failed: Stefan> 453 4.7.1 : Sender address Stefan> rejected: not logged in")) error("Sending failed: 453 Stefan> 4.7.1 : Sender address rejected: Stefan> not logged in") smtpmail-send-it() Stefan> message-smtpmail-send-it() message-multi-smtp-send-mail() Stefan> message-send-mail(nil) message-send-via-mail(nil) Stefan> message-send(nil) message-send-and-exit(nil) Stefan> funcall-interactively(message-send-and-exit nil) Stefan> call-interactively(message-send-and-exit nil nil) Stefan> command-execute(message-send-and-exit) Stefan> My smtpmail-related settings are: Stefan> (setq send-mail-function #'smtpmail-send-it) (setq Stefan> smtpmail-smtp-service 587) (setq smtpmail-smtp-server Stefan> ) (setq smtpmail-smtp-user Stefan> "monnier@iro.umontreal.ca") I=CA=BCd encourage 465 rather than 587, but that might not work for you. Stefan> and until recently this worked fine, prompting me for a Stefan> password and authenticating with it. But now, I don't get Stefan> prompted for a password any more. Stefan> I can work around the problem with the patch below, but I =20=20=20=20 ENOPATCH (but I can imagine what it looks like) Stefan> have no idea what other undesired effects it should have. Stefan> Apparently the code catches the error 530 and treats it as Stefan> a request to perform authentication, so maybe the origin Stefan> of the problem is that the mail server now returns 453 Stefan> instead of 530? Should Emacs handle 453 like it handles Stefan> 530? Should I report the problem to my SMTP admin Stefan> instead? Talk to your SMTP admin, they've messed something up. 453 is basically 'go away, I=CA=BCm not accepting messages'. 530 is 'go away, you haven't authenticated yourself'. I=CA=BCm assuming you don=CA=BCt have an authinfo entry for this user? If I remember correctly, when you do have such an entry (including a passwordless one) smtpmail.el will proactively authenticate, rather than wait for a rejection. (see smtpmail-try-auth-methods) Robert From debbugs-submit-bounces@debbugs.gnu.org Sat May 11 09:12:49 2019 Received: (at 35682) by debbugs.gnu.org; 11 May 2019 13:12:49 +0000 Received: from localhost ([127.0.0.1]:40062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPRo1-0006RM-IL for submit@debbugs.gnu.org; Sat, 11 May 2019 09:12:49 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPRo0-0006R8-2f for 35682@debbugs.gnu.org; Sat, 11 May 2019 09:12:48 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A07AB8107A; Sat, 11 May 2019 09:12:42 -0400 (EDT) Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 78B5B80077; Sat, 11 May 2019 09:12:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1557580361; bh=yALCaxCSWb6L8SAaRlvHvffkXuazHd8+r5ycpDAuERk=; h=From:To:Subject:In-Reply-To:References:Date:From; b=PYTFrxBZbmPhcfsizhGGyHsv68/KgaxHPDwRdIbLbvwdMf0EclXZjYy+BeWHEvZmL gfYiWv6BdiEDJ4VMz/eYuEBEHJO4oBYls/xU0jfZFFuRLxu59v7weeGmcmwYD6gEgi LpkylEBjOcO8qbI+3aXjktAuZN2mjmHss9h2R1LGcI32dJ//Vwn4+kHtzSVQ4PQtUz cNhgVaZYLHsRyb6NRq5L6qVWY5uTHXsYWluAuvrf9FNxxbhCZzUOzrY6EhK1+ltEiW cudoEWOSrKHwonakDieaAmrQNOc9LfJ3Ag88adZHnaQ1zoQ/tSN3SxDRI43KGbDYaJ 4jqo1SXXG+BXQ== Received: from pastel (69-196-155-191.dsl.teksavvy.com [69.196.155.191]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id 24D61120D22; Sat, 11 May 2019 09:12:41 -0400 (EDT) From: Stefan Monnier To: 35682@debbugs.gnu.org Subject: Re: bug#35682: 27.0.50; Weird failure to authenticate in smtpmail In-Reply-To: (Robert Pluim's message of "Sat, 11 May 2019 12:16:09 +0200") Message-ID: References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Sat, 11 May 2019 09:12:40 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35682 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Stefan> (setq send-mail-function #'smtpmail-send-it) (setq > Stefan> smtpmail-smtp-service 587) (setq smtpmail-smtp-server > Stefan> ) (setq smtpmail-smtp-user > Stefan> "monnier@iro.umontreal.ca") > I=CA=BCd encourage 465 rather than 587, but that might not work for you. Indeed, 465 doesn't work here. > Stefan> I can work around the problem with the patch below, but I > ENOPATCH (but I can imagine what it looks like) Duh. See below. > Talk to your SMTP admin, they've messed something up. 453 is basically > 'go away, I=CA=BCm not accepting messages'. 530 is 'go away, you haven't > authenticated yourself'. Yet the text they return says pretty much what you describe of 530. > I=CA=BCm assuming you don=CA=BCt have an authinfo entry for this user? Indeed. > If I remember correctly, when you do have such an entry (including > a passwordless one) smtpmail.el will proactively authenticate, rather > than wait for a rejection. (see smtpmail-try-auth-methods) Shouldn't smtpmail.el also proactively authenticate when smtpmail-smtp-user is set? Stefan diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index a79e3db52d..8bb8cb8fad 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el @@ -336,7 +336,11 @@ smtpmail-send-it (if (not (null smtpmail-recipient-address-list)) (when (setq result (smtpmail-via-smtp - smtpmail-recipient-address-list tembuf)) + smtpmail-recipient-address-list tembuf + ;; FIXME: It looks like I need this setting + ;; otherwise my SMTP server signals a 453 e= rror + ;; because I'm not authenticated. + t)) ;ask-for-password (error "Sending failed: %s" result)) (error "Sending failed; no recipients")) (let* ((file-data From debbugs-submit-bounces@debbugs.gnu.org Sat May 11 10:47:20 2019 Received: (at 35682) by debbugs.gnu.org; 11 May 2019 14:47:20 +0000 Received: from localhost ([127.0.0.1]:40794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPTHT-0002VZ-Pw for submit@debbugs.gnu.org; Sat, 11 May 2019 10:47:20 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:37041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPTHS-0002VL-Fc for 35682@debbugs.gnu.org; Sat, 11 May 2019 10:47:18 -0400 Received: by mail-wm1-f43.google.com with SMTP id 7so3918423wmo.2 for <35682@debbugs.gnu.org>; Sat, 11 May 2019 07:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=wNdXydP6LabXMnrCE+nF72CSemWjnsNlnPFJikFNIiw=; b=mXghLRWfUq41sliCq2aWbyXpvIGlX3rdCw+SFbTn+GUpZcKRaJ5t5DXmNHV2zm6AeY l2OD+PBWqG3OT1B8FbtpCKw5B+Jw7eotl90iTqFqSsjLmKdW5aeKMr22bN4ombnLB5Ay 45BeXLkrl/GmoN+GjYikO5Ur5bwjAyzDCLiVzwykBJnYn6WqiXpW2V8pU3/sECccY5Xu RK6qRgSE48cfEySoyPmShEBI7xZrQLfMY22I6Oodj4G2bT8Jkbzc8IZfJHDD4bx2WCZ5 W67yUYcZGQb1j4kELcROE4eLMQThvO3iY7IutLcYt9UUscyA0BgVZqBnTek+Uaj6Rc6W HLlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=wNdXydP6LabXMnrCE+nF72CSemWjnsNlnPFJikFNIiw=; b=VgTRP4c0XAFxeTP08EAFY5NxoY+C4fFaxoM2gwmtsyl4us4if/c/5OpgwePvg+ZQlI fMaBdexOlzXGqd8h8m3/xlTWR8grR54nRk1euptxkghgC6JVYoO3Y4HVIoj3oFYrZ1OX Hx02boopPI/kEMP3Ihi6V2Rm5HUNw+i31pJ01GQpf61zTYsDOFg2u5sgCzGpmz/NAngC RqA2pHf4gVNINvM+oRLxcULgtIXk6jdWYUzy8Dnf/QYIVjd41TYXMV8p2aRkOs8zMtxd HEDmJZ9eM5KqHYk1BjG33rz21d61Al5Jfvgnop7N3dTdw1sqaf2i0YPgni3hpFTECaSn 9Alg== X-Gm-Message-State: APjAAAVv3pFrdR/691Ss6U6R9fLwF2/e1fZhBRWMb0FD9wa6LiW8HTif MhzkFXyBX9/+gQ3vmzBHMnWl3NGO X-Google-Smtp-Source: APXvYqynyKj3HmmYwpjrWwB2yZmSMJGtLyzCdQIrlVICjka6CiRwnx8re3VSh6J8Zp9KNVqNc7mXZA== X-Received: by 2002:a7b:c7d5:: with SMTP id z21mr4957571wmk.56.1557586032091; Sat, 11 May 2019 07:47:12 -0700 (PDT) Received: from rpluim-mac ([2a01:e34:ecfc:a860:5197:f2f2:1d4e:f66b]) by smtp.gmail.com with ESMTPSA id v5sm18102496wra.83.2019.05.11.07.47.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 11 May 2019 07:47:10 -0700 (PDT) From: Robert Pluim To: Stefan Monnier Subject: Re: bug#35682: 27.0.50; Weird failure to authenticate in smtpmail References: X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sat, 11 May 2019 16:47:09 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 11 May 2019 09:12:40 -0400") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35682 Cc: 35682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> On Sat, 11 May 2019 09:12:40 -0400, Stefan Monnier said: >> Talk to your SMTP admin, they've messed something up. 453 is >> basically 'go away, I=CA=BCm not accepting messages'. 530 is 'go >> away, you haven't authenticated yourself'. Stefan> Yet the text they return says pretty much what you Stefan> describe of 530. Yes, but=20 1. That text has no semantics in SMTP, it=CA=BCs only for humans 2. The extended error code they send is 4.7.1, which is=20 a) Not meant to be used with 453 b) Means "you are not allowed to send to this specific destination" =20=20=20 They should be sending 530, like SMTP servers have forever (and then smtpmail won't care about the specific extended error). >> I=CA=BCm assuming you don=CA=BCt have an authinfo entry for this use= r? Stefan> Indeed. >> If I remember correctly, when you do have such an entry >> (including a passwordless one) smtpmail.el will proactively >> authenticate, rather than wait for a rejection. (see >> smtpmail-try-auth-methods) Stefan> Shouldn't smtpmail.el also proactively authenticate when Stefan> smtpmail-smtp-user is set? Not unless you want to change longstanding default behaviour, I=CA=BCm sure people will object (although I personally think it=CA=BCs a good change). Is there a reason you can=CA=BCt put the entry in authinfo (without a password)? Robert From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 08:51:38 2019 Received: (at 35682) by debbugs.gnu.org; 26 Jul 2019 12:51:38 +0000 Received: from localhost ([127.0.0.1]:41110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqzhC-0003qY-7K for submit@debbugs.gnu.org; Fri, 26 Jul 2019 08:51:38 -0400 Received: from mail-io1-f54.google.com ([209.85.166.54]:41850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hqzh9-0003qG-T5; Fri, 26 Jul 2019 08:51:36 -0400 Received: by mail-io1-f54.google.com with SMTP id j5so100381924ioj.8; Fri, 26 Jul 2019 05:51:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=tS8OLJPK8ruaWmI1qzGTF+h6UHPgSgPixUhhau4N4XQ=; b=FQppk8bRvUAZjdAiwXql1p4xmDwgxkQ+3ATyH61pzCnIqcJGNQTUe0F2CvfUzHrOE/ o6GMFCExxZLCYhjr8z3tEjpBi0QwrP2joJBteM5YgJZHxdJT6Y0cDgGK7tTpGdiuvZS0 1YCw1urfp0qZXUAgBJlYZC2tpyromwbyqgvQwbzfDOrCMovNEMUOFMmOkpQgZdLSXzBR qcRakl+AgI4wfD+FSS05yf+zE2nxr4FZWErW9J6KkgNYU3MmM0LXKeOcsk3J2CFSbGBu teVFSJEY8AZX8x3GruZ2Lr86HIm5XSXXZ6cuAgchlYp7SXi52jV6RM4weJ5lhI/MZys5 OPzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=tS8OLJPK8ruaWmI1qzGTF+h6UHPgSgPixUhhau4N4XQ=; b=OVLPXn9eaNNp9MknMuePw8iTCA7YAzCm9HbudAZ9IKqSFqfEn4ytRLVIUfQ3uYxa2d c6V17lgpQTmyX82iTCMz4YhpZf9CZ9sS/jD6g39nlgTEZskRpKddsZQlME4j1simItZx mxC254Zj4LCl33fNaH+vgKuCpAlYTrBlYOSNN3kwjxvMMNWd767G/g2mB+K6Rbql3G5p n3+P808W6+xvSZicUz/4BhIeJcn7C6mauHs0aCl5/y2TJBHjKFIA87py3KCtpg/wKyru CLhPqx6iytMntNNFfu8B+DKPpsw40msqGErgyFnPAWHVgaCcyHBvv/FQtWfKOP6iu3ua P6rw== X-Gm-Message-State: APjAAAXit7tQJnOPKgjndNAP4nO1cxq4T6jGxuWnwE036SnTV8ucvzrD 3ou7atpXbZDcNFZIx0tnPjGljurV X-Google-Smtp-Source: APXvYqybi/ELpxXLsEUNvtg84JdqImwKoljJ4WzHGpnIVGEdNV0mjO1TvhXPvO4YBmzqBYODhVJGRg== X-Received: by 2002:a5d:8416:: with SMTP id i22mr62319300ion.248.1564145490162; Fri, 26 Jul 2019 05:51:30 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id s3sm43550632iob.49.2019.07.26.05.51.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jul 2019 05:51:29 -0700 (PDT) From: Noam Postavsky To: Stefan Monnier Subject: Re: bug#35682: 27.0.50; Weird failure to authenticate in smtpmail References: Date: Fri, 26 Jul 2019 08:51:28 -0400 In-Reply-To: (Stefan Monnier's message of "Sat, 11 May 2019 09:12:40 -0400") Message-ID: <87tvb9uffz.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 35682 Cc: 35682@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 26359 35682 quit Stefan Monnier writes: > + smtpmail-recipient-address-list tembuf > + ;; FIXME: It looks like I need this setting > + ;; otherwise my SMTP server signals a 453 error > + ;; because I'm not authenticated. > + t)) ;ask-for-password This can now be controlled with smtpmail-servers-requiring-authorization. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 26 09:19:50 2019 Received: (at control) by debbugs.gnu.org; 26 Jul 2019 13:19:50 +0000 Received: from localhost ([127.0.0.1]:41144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr08U-0006dH-8b for submit@debbugs.gnu.org; Fri, 26 Jul 2019 09:19:50 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:38503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr08S-0006d5-CR for control@debbugs.gnu.org; Fri, 26 Jul 2019 09:19:49 -0400 Received: by mail-wm1-f49.google.com with SMTP id s15so26318073wmj.3 for ; Fri, 26 Jul 2019 06:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:mail-copies-to:gmane-reply-to-list:date:message-id :mime-version; bh=lJHiAwSLWEOUOlOqUje5Bd5KzgAd0owHmy+5M8fCKV4=; b=r80EnYL7MQclzvni5d9KPrfwXfc7sEZ9SqaWGhugtRiVGLBIQp+uon6UpHqj25fy84 VOcip/SoIPp9M6g6T1lPJwtu3NHBoCgJ0iiIJt0qzsgdRVxaPOnXhc6EZeEZKCGrJG+q LD33sRiYFRUi0NbBqi9aJWombAAXNxasQc17cyAOTH4lulSNcyMDWvt0j9ogq0i97o+N dKCJJCRLfvJZgZUd9IywAu4KxVHWCiXQFufTEmqi45h4JdffSvnAYvuYVikDaBgocgDy HwlRvAtHID8YWZP9Zl9BWkpGPAuT4a8Q2mM87FLuXererprof5kylzYZSw7lK9wIv9kR 5FaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:mail-copies-to:gmane-reply-to-list:date :message-id:mime-version; bh=lJHiAwSLWEOUOlOqUje5Bd5KzgAd0owHmy+5M8fCKV4=; b=oG2iKl6mjdK6ykIha6zGqWj0qagrIpLdn0EQN+qIhtqVSHMKo4WNMx8FRXXKz5aLIE oqUpaV1/N6JF/wVUT1voXyooFvX4QxNa1c9D8xD5qa0WWZhWjqMp1yuXVkfU0QCnRohR Q4SrhZjr29WtAkXXKQSZW9ssThSCxI7uhZ5BxpLeRcR9eZ9zeV2ZFlecAUr38V1FpyiM tgqehbCm6Iyt2LnKLonWQROvBXDg+rn7la34TC4AVLN1boAdFNboN8QsNAMpNG2BZrve gdQGdLgWR2jx7OZZ3ZMS+rqyiCRYsL+jneWRdzfHw97GW+rMJniFl2jdWQ7QgJ5bowBd U44g== X-Gm-Message-State: APjAAAXxFJRpAOLKfldpBsBzPP1su0RutAX6oLfzceb+Zy0hpw3RPmC3 BWhqcmg1Rr1t0XQNQVukTA1YEUba X-Google-Smtp-Source: APXvYqzr7MI1j+k6I2tId+uccM3zetDJ81HGF5kEupO3sBAMCvQ5IaWdiXFPoWfmhmeyvGLmi08gyw== X-Received: by 2002:a1c:7e90:: with SMTP id z138mr82541559wmc.128.1564147182009; Fri, 26 Jul 2019 06:19:42 -0700 (PDT) Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id g19sm96071084wrb.52.2019.07.26.06.19.41 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 06:19:41 -0700 (PDT) From: Robert Pluim To: control@debbugs.gnu.org X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Fri, 26 Jul 2019 15:19:40 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: forcemerge 26359 31990 quit Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rpluim[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.49 listed in list.dnswl.org] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) forcemerge 26359 31990 quit From unknown Sun Jun 15 08:29:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 24 Aug 2019 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator