Discussion:
How to turn OFF "Improper folded header field made up entirely of whitespace"
(too old to reply)
Mike Schleif
2016-05-18 14:48:18 UTC
Permalink
postfix 2.10.1

How can I turn OFF the following particular header check ONLY for outgoing
email?
"Improper folded header field made up entirely of whitespace"

We're using postfix between the internet and MS Exchange 2010, and MS
Outlook 2010 MUA.

Several times per week, outgoing mail is quarantined for this header
violation, always in the References: header, example below:

...
References: <
***@BY1PR13MB0151.namprd13.prod.outlook.com
<***@SemExchange.sempris.local>
<
***@BY1PR13MB0151.namprd13.prod.outlook.com
Accept-Language: en-US
...

We do not want to turn header checks off completely. Incoming email is not
a problem for us.

For internal automated emails from legacy systems, we have already
implemented:
$interface_policy{'10027'} = 'SENDERBYPASS';
$policy_bank{'SENDERBYPASS'} = {
bypass_header_checks_maps => [1],
final_bad_header_destiny => D_PASS,
... }
via: /etc/postfix/amavis_sender_bypass

How can we turn OFF only this one header check for all outbound email?
Mike Schleif
2016-05-24 13:48:09 UTC
Permalink
Why does adding "allow_fixing_improper_header_folding" to
"$policy_bank{'MYNETS'}" NOT fix this problem for outgoing email?

$policy_bank{'MYNETS'} = {
allow_fixing_improper_header_folding => 0,
originating => 1,
os_fingerprint_method => undef,
};
Post by Mike Schleif
postfix 2.10.1
How can I turn OFF the following particular header check ONLY for outgoing
email?
"Improper folded header field made up entirely of whitespace"
We're using postfix between the internet and MS Exchange 2010, and MS
Outlook 2010 MUA.
Several times per week, outgoing mail is quarantined for this header
...
References: <
<
Accept-Language: en-US
...
We do not want to turn header checks off completely. Incoming email is not
a problem for us.
For internal automated emails from legacy systems, we have already
$interface_policy{'10027'} = 'SENDERBYPASS';
$policy_bank{'SENDERBYPASS'} = {
bypass_header_checks_maps => [1],
final_bad_header_destiny => D_PASS,
... }
via: /etc/postfix/amavis_sender_bypass
How can we turn OFF only this one header check for all outbound email?
Mike Schleif
2016-06-03 18:24:53 UTC
Permalink
Since nobody will tell me: fix_whitespace_lines: Why does it NOT fix
whitespace lines?

Do I have any other choice, other than turning OFF header checks, to avoid
outgoing mail failing for this cause?

How can I turn OFF header checks for all outgoing mail?

~ Mike
Post by Mike Schleif
postfix 2.10.1
How can I turn OFF the following particular header check ONLY for outgoing
email?
"Improper folded header field made up entirely of whitespace"
We're using postfix between the internet and MS Exchange 2010, and MS
Outlook 2010 MUA.
Several times per week, outgoing mail is quarantined for this header
...
References: <
<
Accept-Language: en-US
...
We do not want to turn header checks off completely. Incoming email is not
a problem for us.
For internal automated emails from legacy systems, we have already
$interface_policy{'10027'} = 'SENDERBYPASS';
$policy_bank{'SENDERBYPASS'} = {
bypass_header_checks_maps => [1],
final_bad_header_destiny => D_PASS,
... }
via: /etc/postfix/amavis_sender_bypass
How can we turn OFF only this one header check for all outbound email?
Simon B
2016-06-03 18:37:55 UTC
Permalink
Post by Mike Schleif
Since nobody will tell me: fix_whitespace_lines: Why does it NOT fix
whitespace lines?
Post by Mike Schleif
Do I have any other choice, other than turning OFF header checks, to
avoid outgoing mail failing for this cause?
Post by Mike Schleif
How can I turn OFF header checks for all outgoing mail?
Probably with a policy bank.

To disable bad header checks for certain recipients you can use
@bypass_header_checks_maps in amavisd.conf.

I imagine you can somehow set that for outgoing only.

But frankly if it's for *outgoing* mail you could better just solve the
application/script causing the issue..

Simon
Post by Mike Schleif
~ Mike
Post by Mike Schleif
postfix 2.10.1
How can I turn OFF the following particular header check ONLY for
outgoing email?
Post by Mike Schleif
Post by Mike Schleif
"Improper folded header field made up entirely of whitespace"
We're using postfix between the internet and MS Exchange 2010, and MS
Outlook 2010 MUA.
Post by Mike Schleif
Post by Mike Schleif
Several times per week, outgoing mail is quarantined for this header
...
References: <
<
Accept-Language: en-US
...
We do not want to turn header checks off completely. Incoming email is
not a problem for us.
Post by Mike Schleif
Post by Mike Schleif
For internal automated emails from legacy systems, we have already
$interface_policy{'10027'} = 'SENDERBYPASS';
$policy_bank{'SENDERBYPASS'} = {
bypass_header_checks_maps => [1],
final_bad_header_destiny => D_PASS,
... }
via: /etc/postfix/amavis_sender_bypass
How can we turn OFF only this one header check for all outbound email?
Mike Schleif
2016-06-03 19:04:56 UTC
Permalink
Post by Mike Schleif
Post by Simon B
Post by Mike Schleif
Since nobody will tell me: fix_whitespace_lines: Why does it NOT fix
whitespace lines?
Post by Simon B
Post by Mike Schleif
Do I have any other choice, other than turning OFF header checks, to
avoid outgoing mail failing for this cause?
Post by Simon B
Post by Mike Schleif
How can I turn OFF header checks for all outgoing mail?
Probably with a policy bank.
To disable bad header checks for certain recipients you can use
@bypass_header_checks_maps in amavisd.conf.
Post by Simon B
I imagine you can somehow set that for outgoing only.
But frankly if it's for *outgoing* mail you could better just solve the
application/script causing the issue..
Post by Simon B
Simon
How ought I do that for Microsoft Outlook 2010?
It only happens on replying to messages from outside; but, it happens
several times per week and users are getting quite restless when their
replies don't get to intended recipients ...
File a ticket with Microsoft? :D
I understand your pain, but I haven't seen this with any of my MS clients
and we check ALL outgoing mail.
Are you able to pin it down to certain users/versions?
All 100+ users are using identical MSE version. I find no pattern in users;
nor have I found a single recipient domain.
Post by Mike Schleif
I would expect that if this were a known outlook issue, you would have a)
a known workaround, b) more engagement from the it professionals here (with
larger organisations than mine).
Yes, I'm puzzled by that, too.

That's why I started the other thread regarding: fix_whitespace_lines ,
which appears to intend to fix this condition when found. It would be great
to know if that is truly its intention ...
Post by Mike Schleif
Sorry I can't be more help..
Simon
~ Mike

Loading...