Originally Posted by robilaur
Hey... after reinstaling the system...the same problem... my contact form isnt sending the mail.
amavis: (13209-03) Blocked BAD-HEADER
BAD_HEADER: Improper use of control character (char 0D hex)
there is the reason.
your script is using windows-type line breaks when composing email-headers.
either fix that, or edit amavis-rules to allow misconfigured headers.
in debian, check these files:
for $final_bad_header_destiny, change it like this:
$final_bad_header_destiny = D_PASS;
if your system is not Debian, try to find files containing this value.
you can try command like this:
grep -rli "final_bad_header_destiny" /etc/
where /etc/ is base location of your distributions config files.
editing these or corresponding amavis-configfiles fixes also situation when emails are rejected because they have improperly encoded international characters in their subject.