OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: How to prevent the '<hostname> Daily Mail Report for <date>' message getting caught by body_checks.

From: Andreas Meyer (anmeyeranup.de)
Date: Sun Aug 31 2003 - 08:52:39 CDT


"Renee Teunissen (ml-postfix)" <ml-postfixmlists.zevenaar.org> schrieb:

> > > My mail report gets rejected because it contains strings which I define
> in
> > > the body_checks file and thus get mentioned in the logfile and thus gets
> > > mentioned in the daily report... and thus it is getting rejected.
> > >
> > > Any way to resolve this?
> >
> > Probably. What "mail report?" A report generated by pflogsumm,
> > perchance?

I do it this way:

#!/bin/sh
 
DATE=`date -d "yesterday"`
 
perl /root/bin/pflogsumm.pl -d yesterday --problems_first --verp_mung --verbose_msg_detail \
--iso_date_time --smtpd_stats --ignore_case -h 10 -u 10 --mailq \
/var/log/mail > $$ && /usr/bin/mpack -s "Postfix on DELTA $DATE" -d /root/heute.txt $$ \
mail1meyer.home && rm -f $$
   

--
  Andreas Meyer | http://www.anup.de
                          | http://home.wtal.de/MeineHomepage

  Key fingerprint = 91 F2 F8 DA 6F F0 5A FD C5 94 3A D5 1A DF AF C5