From bf0efbcb3e635ae698a0cdb513b9ceef3e4724e8 Mon Sep 17 00:00:00 2001 From: alexhudson Date: Wed, 5 Sep 2007 14:33:33 +0000 Subject: [PATCH] Don't try to redeliver failed/delivered mail --- src/agents/smtp/smtpd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/agents/smtp/smtpd.c b/src/agents/smtp/smtpd.c index 3f1d23b..4b414a5 100644 --- a/src/agents/smtp/smtpd.c +++ b/src/agents/smtp/smtpd.c @@ -32,7 +32,6 @@ #include #include -#include #define LOGGERNAME "smtpd" #define PRODUCT_NAME "Bongo SMTP Agent" @@ -2323,9 +2322,13 @@ DeliverRemoteMessage (ConnectionStruct * Client, unsigned char *Sender, } FreeInternalConnection(Client->remotesmtp); - if ((RetVal==DELIVER_SUCCESS) || (RetVal==DELIVER_FAILURE) || Exiting) { + if (RetVal == DELIVER_SUCCESS) { goto finish; } + if (RetVal == DELIVER_FAILURE) { + goto finish; + } + if (Exiting) goto finish; // ping the Queue agent to ensure we don't time out NMAPSendCommand (Client->client.conn, "NOOP\r\n", 6);