about postfix and Mailscanner

Cheng Bruce itlist at gmail.com
Fri Sep 29 04:26:26 IST 2006


Hi Fajar,

Thank you for your tip.
But I didn't work it out, I think my setting is maybe wrong, would you
please advise me ?
PS: After modifying, I did restart service via "service MailScanner restart"

Thank you in advance.

I tried to remove the private information of messages from inside to
outside and tried to remove the MUA header if the MUA is webmail
(IMP).

But both of them are failed.

/etc/MailScanner/rules/remove.headers.rules

FromOrTo:       192.168.1.    User-Agent: Internet Messaging Program
(IMP) H3 (4.1.3):
FromOrTo:       192.168.1.    Received: from 192.168.1.:
FromOrTo:       default         X-Mozilla-Status:       X-Mozilla-Status2:

The orginal header is for example, FYI

Return-Path: <bruce at linux01.com>
Delivered-To: bruce at linux01.com
Received: from mail.linux01.com (mail.linux01.com [192.168.1.70])
	by mail.linux01.com (Postfix) with ESMTP id E7181148081
	for <wendy at linux01.com>; Fri, 29 Sep 2006 09:02:38 +0200 (CST)
Received: from 192.168.1.86 ([192.168.1.86]) by
	mail.linux01.com (Horde MIME library) with HTTP; Fri, 29 Sep
	2006 09:02:38 +0200
Message-ID: <20060929110238.vk3x3qvy9wgks0oc at linux01.com>
Date: Fri, 29 Sep 2006 09:02:38 +0200
From: bruce at linux01.com
To: wendy at linux01.com
Subject: test if it can REMOVE HEADER 03
MIME-Version: 1.0
Content-Type: text/plain;
	charset=UTF-8;
	DelSp="Yes";
	format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
User-Agent: Internet Messaging Program (IMP) H3 (4.1.3)
X-linux01-MailScanner-Information: Please contact the ISP for more information
X-linux01-MailScanner: Found to be clean
X-linux01-MailScanner-From: bruce at linux01.com
X-Spam-Status: No


2006/9/28, Fajar <fajarep at simplimobile.com>:
> I get this from.., I forget, and I use this until now
>
> create new rule for mailscanner, for example
>
> /etc/MailScanner/rules/remove.headers.rules
>
> From:      10.1.1.    Received: X-Mailer: X-MimeOLE:
> FromOrTo:  default       X-Mozilla-Status: X-Mozilla-Status2:
>
> and in Mailscanner.conf
> Remove These Headers = %rules-dir%/remove.headers.rules
>
> Thanks for someone that post this in website if I remember.
>
> Cheers
>
> Fajar
> ----- Original Message -----
> From: "Cheng Bruce" <itlist at gmail.com>
> To: <mailscanner at lists.mailscanner.info>
> Sent: Wednesday, September 27, 2006 3:06 PM
> Subject: about postfix and Mailscanner
>
>
> > Dear all,
> >
> > I use Postfix 2.3.2, MailScanner 4.55.10, maildrop, openldap,
> > courier-imap to setup the mail server.
> >
> > I am trying to hide the private IP information in header, but when I
> > use header_check function in postfix to hide the private information,
> > the archive mail function will not be worked.
> >
> > How can I do or modify it in order to hide the private IP information ?
> >
> > # more /etc/postfix/header_checks.txt
> > # Hide Private Information
> > /^Received:.*\[(192\.168|172\.(1[6-9]|2[0-9]|3[01])|10)\./      IGNORE
> > /^Received:.*\[127\.0\.0\.1/      IGNORE
> >
> > # for MailScanner
> > /^Received:/ HOLD
> >
> > By the way, how can I config the setting so that MailScanner can't
> > archive some Email like boss at a.com  ?
> >
> > My arhicve rules is like the following:
> > [root at linux01 rules]# more archive.rules
> > To: boss at a.com no
> > From: boss at a.com no
> > FromOrTo: boss at b.com no
> >
> > FromOrTo: *@a.com backup at a.com
> > FromOrTo: *@b.net yes forward backup at b.net
> >
> > Please advise me and thank you in advance.
> >
> > Best Regards,
> > Bruce
> > --
> > 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