> -----Original Message-----
> From: centos-bounces@caosity.org [mailto:centos-bounces@caosity.org]
On> Behalf Of Craig White
> Sent: Wednesday, March 16, 2005 12:11 PM
> To: CentOS discussion and information list
> Subject: [Centos] MailScanner - Postfix
>
> CentOS 4
>
> if I put in postfix/main.cf
>
> header_checks = regexp:/etc/postfix/header_checks
> and
> # tail -n 1 /etc/postfix/header_checks
> /^Received:/ HOLD
>
> it permits MailScanner to operate on incoming mails (moving them from
> ''hold'' to ''incoming after checking)
>
> But what I lose is anything that is in the ''Subject''
header and it''s
> making me crazy
>
> # ls -al /usr/src/redhat/RPMS/noarch/
> total 564
> drwxr-xr-x 2 root root 4096 Mar 15 08:32 .
> drwxr-xr-x 8 root root 4096 Mar 9 20:16 ..
> -rw-r--r-- 1 root root 72812 Mar 13 21:40 perl-Archive-
> Zip-1.14-1.noarch.rpm
> -rw-r--r-- 1 root root 15001 Mar 13 21:39 perl-Convert-
> TNEF-0.17-1.noarch.rpm
> -rw-r--r-- 1 root root 64540 Mar 13 21:35 perl-IO-
> stringy-2.108-1.noarch.rpm
> -rw-r--r-- 1 root root 70642 Mar 13 21:37 perl-
> MailTools-1.50-1.noarch.rpm
> -rw-r--r-- 1 root root 240271 Mar 13 21:38 perl-MIME-
> tools-5.417-1.noarch.rpm
> -rw-r--r-- 1 root root 14320 Mar 13 21:34 perl-Net-
> CIDR-0.10-1.noarch.rpm
> -rw-r--r-- 1 root root 25151 Mar 13 21:36 perl-
> TimeDate-1.1301-3.noarch.rpm
>
> How do I get it to stop wiping out the header?
Mailscanner can and does all sorts of Subject: header mangling. See the
section starting with "# Changes to the Subject: line" in
MailScanner.conf. I have never seen it _remove_ the contents of the
Subject: line however, merely append or prepend text to it. That may
indicate that you''ve got some unusual or unexpected characters in your
re-write text. You''d probably have a lot more luck directing this to a
more on-topic list like the ones detailed at
http://www.sng.ecs.soton.ac.uk/mailscanner/support.html. They''ll need
to
know useful information such as MailScanner version, postfix version,
how you have it set up and what MailScanner options you are using (i.e.
virus scanning (and which), spamassassin (and which), etc.). Search
their archives, make sure you have all the pre-requisites you need and
appropriate versions of those, then try their list.
--
Marc