Autor: Peter SavitchData: 2004-09-08 06:28 UTC Para: Guillermo LlenasAssunto: RE: [exim] Spool size question.
Did you mean /var/spool/exim/db tidying?
=cut /etc/cron.daily/exim
#!/bin/sh
SPOOL=/var/spool/exim
LOG=/var/log/exim/tidydb.log
echo\
"`date '+%Y-%m-%d %H:%M:%S'` starting cron job exim to clean DBs"\
>> $LOG
exim_tidydb $SPOOL retry >> $LOG
exim_tidydb $SPOOL wait-remote_smtp >> $LOG
exim_tidydb $SPOOL callout >> $LOG
echo "`date '+%Y-%m-%d %H:%M:%S'` finished cron job exim">> $LOG
=cut
... or something like that. Stolen from some RPM.
See also: Exim spec, 46.11, exim_tidydb
PS You can turn the per-message logs off with no_message_logs global
opt. That's not callout- or db-related, but keeps spool zone smaller.
Useful for large installations.