summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-25 23:29:03 +0000
committerStef Walter <stef@memberwebs.com>2004-08-25 23:29:03 +0000
commiteb4d31917af2c3f9debec731b1ecb69779b4618b (patch)
treedbff6665188b6fe9085487e9229048930c2047e7 /src
parentfdbef128b98cc85edb4b3654f71d8ce036e83eaa (diff)
Fixed some ESMTP bugs
Diffstat (limited to 'src')
-rw-r--r--src/clamsmtpd.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/clamsmtpd.c b/src/clamsmtpd.c
index e26ea07..a969e74 100644
--- a/src/clamsmtpd.c
+++ b/src/clamsmtpd.c
@@ -721,6 +721,10 @@ static int smtp_passthru(clamsmtp_context_t* ctx)
continue;
}
+ /* Only valid after an EHLO command */
+ if(filter_ehlo)
+ filter_ehlo = 0;
+
/* Handle the DATA section via our AV checker */
if(is_first_word(ctx->line, DATA_CMD, KL(DATA_CMD)))
{
@@ -851,15 +855,10 @@ static int smtp_passthru(clamsmtp_context_t* ctx)
is_first_word(p, ESMTP_BINARY, KL(ESMTP_BINARY)) ||
is_first_word(p, ESMTP_CHECK, KL(ESMTP_CHECK)))
{
- messagex(ctx, LOG_DEBUG, "filtered ESMTP feature: %s", p);
+ messagex(ctx, LOG_DEBUG, "filtered ESMTP feature: %s", trim_space(p));
continue;
}
}
- else
- {
- filter_ehlo = 0;
- messagex(ctx, LOG_DEBUG, "done filtering ESMTP response");
- }
}
if(write_data(ctx, &(ctx->client), ctx->line) == -1)