LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Amavis: invalid header: all-whitespace header field (https://www.linuxquestions.org/questions/linux-server-73/amavis-invalid-header-all-whitespace-header-field-925982/)

deathsfriend99 01-27-2012 08:54 AM

Amavis: invalid header: all-whitespace header field
 
I have a Debian Squeeze mail server that was recently updated from Etch > Lenny > Squeeze. After the updates amavis is sending messages to quarantine. I can't seem to figure out why!

Error: INVALID HEADER: FOLDED HEADER FIELD MADE UP ENTIRELY OF WHITESPACE

My /etc/amavis/conf.d/50-user has
$final_bad_header_destiny = D_PASS;
$bad_header_quarantine_to = undef ;

So it SHOULD be passing them. Any idea on what is going on here?

Other info. Running Postfix/Dovecot with Amavis/Clam/Spamassassin.

rustek 02-01-2012 06:06 PM

I run amavis-new and I don't have the directive in any of the config files.
Quote:

$bad_header_quarantine_to
If it is not in any of your other conf files, maybe just rem it out?

I see a space after undef but not sure if that matters.
.

deathsfriend99 02-16-2012 09:41 AM

I figured this out and figured I'd post to help anyone else who comes along this problem. Not sure how these settings got in the config after the update, but there were additional settings overriding my final_bad_header_destiny = D_PASS;

Code:

%final_destiny_by_ccat = (
  CC_VIRUS,      D_DISCARD,
  CC_SPAM,      D_DISCARD,
  CC_BANNED,    D_BOUNCE,
  CC_OVERSIZED,  D_BOUNCE,
  CC_BADH.',4',  D_BOUNCE,
  CC_BADH.',3',  D_BOUNCE,
  CC_BADH,      D_PASS,
  CC_UNCHECKED,  D_PASS,
  CC_CLEAN,      D_PASS,
  CC_CATCHALL,  D_PASS,
 );

This little nugget was also in there and was bouncing the bad header emails. Removed the CC_BADH.',4', D_BOUNCE, and CC_BADH.',3', D_BOUNCE, to fix.


All times are GMT -5. The time now is 02:02 AM.