From c1cf83738a260121cf7dcc007af8709d0bc15419 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 24 Feb 2010 01:54:22 +0100 Subject: Feature: bad-header {reject|pass} --- transact.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'transact.c') diff --git a/transact.c b/transact.c index c6ea7e35..9d151607 100644 --- a/transact.c +++ b/transact.c @@ -583,7 +583,10 @@ eoh: * message/rfc822 attachment and forward to postmaster (Rob * MacGregor) */ - if (!refuse_mail && !isspace((unsigned char)line[0]) && !strchr(line, ':')) + if (!refuse_mail + && !ctl->server.badheader == BHPASS + && !isspace((unsigned char)line[0]) + && !strchr(line, ':')) { if (linelen != strlen (line)) has_nuls = TRUE; -- cgit v1.2.3