Re: [Exim] LOGS

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Chris Knipe
Data:  
Para: Thomas Kinghorn, Exim-Users \(E-mail\)
Asunto: Re: [Exim] LOGS
#!/bin/sh
DATE=`date +%Y-%m-%d`

# Exim Statistics
/usr/sbin/exicyclog
cat /var/log/exim/main.log.01 | /usr/sbin/eximstats | \
mail -s "Daily Exim Report (netsphere.megalan.co.za): $DATE"
syschk@???
cd /var/spool/secure/exim
cp /var/log/exim/main.log.01 /var/spool/secure/exim/$DATE.log
/usr/bin/tar -czf $DATE.tgz $DATE.log
rm -f $DATE.log
chmod go-rwx /var/spool/secure/exim/* > /dev/null


----- Original Message -----
From: "Thomas Kinghorn" <thomask@???>
To: "Exim-Users (E-mail)" <exim-users@???>
Sent: Monday, February 24, 2003 8:47 AM
Subject: [Exim] LOGS


> Morning guys.
>
> Firstly, thanks for all the past help.
> You guys saved the job of someone who was thrown in the deep end ;o).
>
> Now the question:
> Does anyone have an example of a cron for rotating the mainlog and reject
> log
> for exim.
>
> Any pointers in the right direction would be apprciated.
>
> Regards,
>
> Tom Kinghorn
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim

details at http://www.exim.org/ ##
>
>