RE: [exim] Spool size question.

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter Savitch
Date:  
À: Guillermo Llenas
Sujet: 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.