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. --- error.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index d51304f..e705cf4 100644 --- a/error.c +++ b/error.c @@ -93,3 +93,10 @@ EACCES; #else -13; #endif + +int error_refused = +#ifdef ECONNREFUSED +ECONNREFUSED; +#else +-14; +#endif -- cgit v1.2.3