X-Mozilla-Status

Scott Silva ssilva at SGVWATER.COM
Fri Sep 3 16:09:31 IST 2004


<x-flowed>
Julian Field wrote:
> At 11:21 03/09/2004, you wrote:
>
>> At 10:44 03/09/2004, you wrote:
>>
>>> Martin Sapsed wrote:
>>>
>>>>>> Unfortunately, some spammers puts these two headers into spam:
>>>>>> X-Mozilla-Status:
>>>>>> X-Mozilla-Status2:
>>>>>> Can mailscanner remove those two headers from all
>>>>>> processed e-mails?
>>>>
>>>> Unless I'm much mistaken that's a job for your MTA - sendmail, postfix
>>>> or whatever...?
>>>
>>> I'm using sendmail. I've search on google and i did find nothing that
>>> could help
>>> solving my problem.
>>> I see that MIMEDefang is able to remove headers:
>>>
>>> action_delete_header($hdr, $index) - Deletes an existing header in the
>>> message.
>>> This can be used in filter_begin or filter_end. The $hdr parameter is
>>> the
>>> header
>>> name without the colon. The $index parameter is optional; it defaults to
>>> 1. If
>>> you supply it, then the $index'th occurrence of the header is
>>> deleted, if
>>> there
>>> is more than one header with the same name.
>>>
>>> But does installing MIMEDefang only to remove 2 headers make sense?
>>
>>
>> I have just added a setting
>>
>> Remove These Headers
>>
>> so that you can specify a list of headers which you want removed from all
>> messages. This can of course be a ruleset so you could use it to
>> delete all
>> x-mozilla-status and x-mozilla-status2 headers from incoming mail.
>>
>> A good use for it would be to automatically remove receipt requests from
>> any incoming mail, so you don't reveal information about your staff
>> and who
>> is currently at work reading their mail.
>
>
> Apply this patch to your installation:
>         cd /usr/lib/MailScanner/MailScanner
>         patch < remove.headers.patch
> That will update your ConfigDefs.pl and Message.pm files.
> Then add this to your MailScanner.conf file:
>
> # If any of these headers are included in a a message, they will be
> deleted.
> # This is very useful for removing return-receipt requests and any headers
> # which mean special things to your email client application, such as
> # X-Mozilla-Status.
> # Each header should end in a ":", but MailScanner will add it if you
> forget.
> # Headers should be separated by commas or spaces.
> # This can also be the filename of a ruleset.
> Remove These Headers =
>
> This will all be included in the next release, but I thought I would post
> the patch for those who don't want to (or can't) wait for it.
Like they say in all the movies:
"You da man!!!"

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
</x-flowed>



More information about the MailScanner mailing list