From 1fa1333ca1a744ce7fa8af3fc73872b082631fe3 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 19 Jan 2019 22:28:54 +0000 Subject: Events: log a non-success when a client connect is denied by an event --- src/src/deliver.c | 1 + src/src/log.c | 1 + src/src/macros.h | 1 + 3 files changed, 3 insertions(+) (limited to 'src') diff --git a/src/src/deliver.c b/src/src/deliver.c index 1baf7d371..307989d40 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -856,6 +856,7 @@ if (action) { DEBUG(D_deliver) debug_printf("Event(%s): event_action returned \"%s\"\n", event, s); + errno = ERRNO_EVENT; return s; } } diff --git a/src/src/log.c b/src/src/log.c index 4905b6d54..0aaf94a31 100644 --- a/src/src/log.c +++ b/src/src/log.c @@ -112,6 +112,7 @@ static const uschar * exim_errstrings[] = { US"Local-only delivery", US"Domain in queue_domains", US"Transport concurrency limit", + US"Event requests alternate response", }; diff --git a/src/src/macros.h b/src/src/macros.h index e797615a1..185ea6aff 100644 --- a/src/src/macros.h +++ b/src/src/macros.h @@ -570,6 +570,7 @@ table exim_errstrings[] in log.c */ #define ERRNO_LOCAL_ONLY (-54) /* Local-only delivery */ #define ERRNO_QUEUE_DOMAIN (-55) /* Domain in queue_domains */ #define ERRNO_TRETRY (-56) /* Transport concurrency limit */ +#define ERRNO_EVENT (-57) /* Event processing request alternate response */ -- cgit v1.2.3