How to Remove X-headers

Randal, Phil prandal at herefordshire.gov.uk
Thu Mar 12 10:18:49 GMT 2009


Oops, a bit of a stutter there - 32766, not 327766.

Cheers,

Phil 


--
Phil Randal | Networks Engineer
Herefordshire Council | Deputy Chief Executive's Office | I.C.T.
Services Division
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160
email: prandal at herefordshire.gov.uk

Any opinion expressed in this e-mail or any attached files are those of
the individual and not necessarily those of Herefordshire Council.

This e-mail and any attached files are confidential and intended solely
for the use of the addressee. This communication may contain material
protected by law from being passed on. If you are not the intended
recipient and have received this e-mail in error, you are advised that
any use, dissemination, forwarding, printing or copying of this e-mail
is strictly prohibited. If you have received this e-mail in error please
contact the sender immediately and destroy all copies of it.

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Randal,
Phil
Sent: 12 March 2009 10:07
To: MailScanner discussion
Subject: RE: How to Remove X-headers

We've hit the same issue this week.

The relevant Microsoft documentation is here:

Understanding the Impact of Named Property and Replica Identifier Limits
on Exchange Databases

http://technet.microsoft.com/en-us/library/bb851492.aspx

Events 9666, 9667, 9668, and 9669 Received When Named Properties or
Replica Identifiers Are Depleted for An Exchange Database

http://technet.microsoft.com/en-us/library/bb851495.aspx 

Note how Microsoft has completely lost the plot on this one, and fails
to understand that there could be any number of unique X- header lines,
not just their arbitrary limit of at most 327766 "Named properties".

Cheers,

Phil

--
Phil Randal | Networks Engineer
Herefordshire Council | Deputy Chief Executive's Office | I.C.T.
Services Division
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160
email: prandal at herefordshire.gov.uk

Any opinion expressed in this e-mail or any attached files are those of
the individual and not necessarily those of Herefordshire Council.

This e-mail and any attached files are confidential and intended solely
for the use of the addressee. This communication may contain material
protected by law from being passed on. If you are not the intended
recipient and have received this e-mail in error, you are advised that
any use, dissemination, forwarding, printing or copying of this e-mail
is strictly prohibited. If you have received this e-mail in error please
contact the sender immediately and destroy all copies of it.

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Alex
Broens
Sent: 11 March 2009 22:54
To: MailScanner discussion
Subject: Re: How to Remove X-headers

On 3/11/2009 10:50 PM, Glenn wrote:
> We use MailScanner and Postfix on a mail gateway server and forward 
> mail to an internal Microsoft Exchange 2003 server.  Evidently, enough

> X-headers have accumulated in an Exchange database to cause a problem,

> so we need to remove X-headers before they are forwarded to the
Exchange server.
> 
> There is a line in MailScanner.conf that allows us to name whatever 
> headers we want to remove ("Remove These Headers"), but this raises
some questions.
> If we just blanket remove all X-headers, won't this defeat features of

> MailScanner that depend on MailScanner adding headers?
> 
> According to hints in the MailScanner rules directory, we should be 
> able to use regular Perl expresssions to create a ruleset to exclude 
> certain headers from the delete list.  My problem is that I don't have

> a clue how to write regular Perl expressions.  From what I've read 
> online, for example, the lines below should be equivalent, but when I 
> use the Perl expression in the ruleset it doesn't work.
> 
> From:  [ipaddress]  X-MimeOLE:    ##this removes the X-MimeOLE header
> 
> From:  [ipaddress]  /^XMime.*\:/  ##this doesn't
> 
> I know this isn't a Perl forum, but I'm hoping that someone who has 
> tried this can enlighten me.  If I could just get a simple expression
to work, I
> might be able to build what I need.  Thanks.   -Glenn.

Before you start breaking MIME headers, who told you this or what MS KB
article covers this?

--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list