Re: Blocked BAD-HEADER-0 {RejectedInbound,Quarantined

Matus UHLAR - fantomas <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
>>>I've got a few remote senders whose messages my server is 
>>>rejecting and putting this in syslog: Blocked BAD-HEADER-0 
>>>{RejectedInbound,Quarantined}

>On 8/27/22 2:36 AM, Damian wrote:
>>This is strange, I cannot find a code path which sets CC_BADH 
>>without setting the minor > 0.

On 28.08.22 22:05, [email protected] wrote:
>I think I'm using a version packaged for RHEL (2.12.0-10.el7), so it's 
>probably old, but other than that, I don't think I've done anything 
>that should change code paths.

this is quite new version. from epel archive I guess.

>>>How do I determine what exactly is wrong with the header that the 
>>>remote server is sending?

you should see the message in quarantine.

>>What is your log_level and do you see "check_header: " log lines?

>$log_level = 1;
>
>I don't see check_header in the logs.
>
>What should I set it to?

I use:

$log_level = 1;
$log_templ = $log_verbose_templ;

and it produces nice logs.

>>>If I can't get the remote site to fix their stuff, is there a way 
>>>to bypass the header check for their domains only?
>>
>>If they DKIM-sign their mails, you can use 
>>author_to_policy_bank_maps and disable header checks inside such 
>>policy_bank.
>
>And if they don't, what's suggested?
>
>Is there a way to configure the system to reject messages with bad 
>headers, but to do the rejection with a temporary, rather than a 
>permanent code, so that the the remote system should attempt the 
>sending again later?

-- 
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Nothing is fool-proof to a talented fool.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.