summaryrefslogtreecommitdiff
path: root/common/smtppass.c
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
commitccc145652935afed1466e34c141ccbbcd7357cff (patch)
tree9fb02df5144faee8070380a5420d2d90d735a4df /common/smtppass.c
parentc8cd96ec4a349ea032dbcadb9730a3522a1c2bc7 (diff)
Fixed some ESMTP bugs
Diffstat (limited to 'common/smtppass.c')
-rw-r--r--common/smtppass.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index e26ea07..a969e74 100644
--- a/common/smtppass.c
+++ b/common/smtppass.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)