From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rainer Orth Newsgroups: gmane.emacs.bugs Subject: bug#30347: smtpmail.el doesn't retry with authentication when greylisting is used Date: Sun, 04 Feb 2018 15:01:30 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1517755109 17658 195.159.176.226 (4 Feb 2018 14:38:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Feb 2018 14:38:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (usg-unix-v) To: 30347@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 04 15:38:24 2018 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 1eiLQn-0003Mw-EQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 15:38:09 +0100 Original-Received: from localhost ([::1]:57049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLSm-0003Ou-MT for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Feb 2018 09:40:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLSg-0003O5-T4 for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:40:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiLSc-00044j-QY for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:40:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiLSc-00044b-MQ for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiLSc-0005lx-GJ for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Rainer Orth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Feb 2018 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151775515922137 (code B ref -1); Sun, 04 Feb 2018 14:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Feb 2018 14:39:19 +0000 Original-Received: from localhost ([127.0.0.1]:56267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiLRv-0005kz-FH for submit@debbugs.gnu.org; Sun, 04 Feb 2018 09:39:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiLRt-0005kk-Ir for submit@debbugs.gnu.org; Sun, 04 Feb 2018 09:39:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiLRn-00034J-II for submit@debbugs.gnu.org; Sun, 04 Feb 2018 09:39:12 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44456) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eiLRn-00034E-DI for submit@debbugs.gnu.org; Sun, 04 Feb 2018 09:39:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLRm-00033p-9J for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:39:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiLRi-0002yo-5w for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:39:10 -0500 Original-Received: from smtp.cebitec.uni-bielefeld.de ([129.70.160.84]:51909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiLRh-0002yb-Tf for bug-gnu-emacs@gnu.org; Sun, 04 Feb 2018 09:39:06 -0500 Original-Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 5FC329E2 for ; Sun, 4 Feb 2018 15:01:53 +0100 (CET) X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Original-Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aitglZepjtPz for ; Sun, 4 Feb 2018 15:01:51 +0100 (CET) Original-Received: from manam.CeBiTec.Uni-Bielefeld.DE (p4FDDB9D4.dip0.t-ipconnect.de [79.221.185.212]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id AD4149E1 for ; Sun, 4 Feb 2018 15:01:51 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Windows NT kernel [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:142885 Archived-At: --=-=-= Content-Type: text/plain I've long been dealing with the following problem: I'm using GNU Emacs (current 26.0.91, but the problem has existed for a long time before that) and Gnus to send mail. The relaying MTA uses greylisting when receiving mail for local accounts without authentication, but smtpmail.el cannot deal with the resulting temporary SMTP codes. I'd expect that it would retry with authentication, but doesn't. I've used the following snippet to fix this. Perhaps this (or something similar) can be used to fix this issue? Thanks. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=smtpmail.el.patch --- - 2018-02-04 01:21:02.374212479 +0000 +++ /tmp/smtpmail.el 2018-02-04 01:20:44.340497887 +0000 @@ -838,8 +838,9 @@ ((and auth-mechanisms (not ask-for-password) (integerp (car result)) - (>= (car result) 550) - (<= (car result) 554)) + (or (and (>= (car result) 550) + (<= (car result) 554)) + (eq (car result) 450))) ;; We got a "550 relay not permitted" (or the like), ;; and the server accepts credentials, so we try ;; again, but ask for a password first. --=-=-=--