From 3284e61d7a7a49620e64c7d634776f8bcf4f8119 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 20 May 2014 02:14:50 +0200 Subject: Treat ECONNREFUSED the same as ETIMEDOUT After an SMTP connection attempt times out, qmail-remote records the relevant IP address. If the same address fails again (after at least two minutes with no intervening successful connections), qmail-remote assumes that further attempts will fail for at least another hour. --- qmail-remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qmail-remote.c') diff --git a/qmail-remote.c b/qmail-remote.c index dc00d08..b865b4d 100644 --- a/qmail-remote.c +++ b/qmail-remote.c @@ -951,7 +951,7 @@ char **argv; #endif smtp(); /* only returns when the next MX is to be tried */ } - tcpto_err(&ip.ix[i].ip,errno == error_timeout); + tcpto_err(&ip.ix[i].ip,errno == error_timeout || errno == error_refused); close(smtpfd); } -- cgit v1.2.3