unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30347: smtpmail.el doesn't retry with authentication when greylisting is used
@ 2018-02-04 14:01 Rainer Orth
  2018-04-15 17:24 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 10+ messages in thread
From: Rainer Orth @ 2018-02-04 14:01 UTC (permalink / raw)
  To: 30347

[-- Attachment #1: Type: text/plain, Size: 678 bytes --]

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



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: smtpmail.el.patch --]
[-- Type: text/x-patch, Size: 534 bytes --]

--- -	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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-08 10:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-04 14:01 bug#30347: smtpmail.el doesn't retry with authentication when greylisting is used Rainer Orth
2018-04-15 17:24 ` Lars Ingebrigtsen
2018-04-16 14:58   ` Robert Pluim
2018-04-16 18:45     ` Lars Ingebrigtsen
2018-04-17 10:33       ` Robert Pluim
2018-04-17 12:45         ` Lars Ingebrigtsen
2018-04-17 16:14           ` Robert Pluim
2020-09-07 20:49             ` Lars Ingebrigtsen
2020-09-08  9:59               ` Robert Pluim
2020-09-08 10:02                 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).