On Wednesday 30 September 2009 19:25:52 Charles Gregory wrote: > On Wed, 30 Sep 2009, Nauman Yousuf wrote: > > Guys I am getting all my external domain emails tagged as SpamSpam > > mail headers > > X-Amavis-Alert: BAD HEADER Improper folded header field made up entirely > > of whitespace (char 20 hex): Subject: ...?Q?Spam?=\n > > =?utf-8?Q?Spam=0D=0A=20helo123?=\n \n > > Well, according to this, amavis doesn't like the fact that the 'Subject' > header is made up of many spaces. Looks like the original subject was > 'heloo123' plus a BUNCH of spaces. An MTA has 'folded' them properly, but > AMAVIS considers this suspicious. Question would be, how did all those > spaces get in there in the first place? Are you running the message > through some sort of pre-process before sending it to SA? > > There are also some clues in the SA rule match "SUBJECT_ENCODED_TWICE". > This suggests again, something is trying to encapsulate your subject > before it gets to spamassassin. If this is happening on ALL your mail, > then it is something in your front end.
You missed the point, it's not about 'many spaces' or 'trailing spaces', but there was an illegal all-whitespace line in the header section, just following the Subject, as reported: Subject: ...?Q?Spam?=\n =?utf-8?Q?Spam=0D=0A=20h\ elo123?=\n \n ^^^^^ Mark