|
From: Mark M. <Mar...@ij...> - 2007-07-24 15:16:40
|
Steve,
> i have a Problem with amavis-new and amavis-milter. Both latest
> Versions (fresh compiled) on a CentOs5. I have a Problem that the
> Milter filling every Mail Header with a:
>
> Jul 4 10:51:29 myserver sendmail[16298]: l648pSuU016298: Milter
> insert (0): header: X-Spam-Status: No, score=1.184
> tagged_above=-9999 required=3.4\n\ttests=[ALL_TRUSTED=-1.44,
> INVALID_MSGID=1.71, MISSING_HEADERS=0.189,\n\tTO_CC_NONE=0.134,
> UPPERCASE_50_75=0.591]
> Jul 4 10:51:29 myserver sendmail[16298]: l648pSuU016298: Milter
> insert (0): header: X-Amavis-Alert: BAD HEADER, Missing required
> header field: "Date"
>
> Here comes the Header from the Mail above:
> "Date: Wed, 4 Jul 2007 10:33:41 +0200"
> What could be my Problem ?
Even the SpamAssassin tests show that there was something weird
with the mail header (INVALID_MSGID, MISSING_HEADERS, no To or Cc),
so it looks the mail header was indeed somehow broken, or maybe
just genuinely submitted like that.
Did the message arrive from outside, regularly through SMTP,
or was it generated locally and submitted on the same host?
Examining the message carefully could tell what happened.
There is no need to quarantine mail with bad headers (except as
a troubleshooting aid), if it is being delivered anyway:
$final_bad_header_destiny = D_PASS;
$bad_header_quarantine_to = undef;
It is possible to selectively turn off individual header checks
but keep remaining header tests enabled:
amavisd-new-2.4.4 release notes:
- new configuration variable %allowed_header_tests, also member of policy
banks, allows for selectively disabling some of the header checks,
e.g. checks for non-encoded 8-bit characters. The %allowed_header_tests
hash contains all available header tests as its keys by default
(with a value of true); removing a key, or setting its value to false,
disables a test, e.g.:
$allowed_header_tests{'8bit'} = 0;
$allowed_header_tests{'missing'} = 0;
Currently available keys (i.e. tests) are:
other mime 8bit control empty long syntax missing multiple
each corresponding to its own minor contents category of CC_BADH;
ccat test
min name description
--- ------- -----------
0 other (catchall for everything else, normally not used)
1 mime Bad MIME (sub)headers or bad MIME structure
2 8bit Invalid non-encoded 8-bit characters in header
3 control Invalid control characters in header (CR or NUL)
4 empty Folded header field made up entirely of whitespace
5 long Header line longer than RFC 2822 limit of 998 characters
6 syntax Header field syntax error
7 missing Missing required header field
8 multiple Duplicate or multiple occurrence of a header field
legend:
ccat min: minor contents category under a major category CC_BADH,
available in templates as a macro ccat_min;
test name: corresponding test name - a key in %allowed_header_tests;
descr.: description of a header test or MIME subheaders/structure
test;
Mark
|