diff options
Diffstat (limited to 'localimap')
-rwxr-xr-x | localimap | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -9,4 +9,15 @@ fi export MBOX_WRITE_LOCKS=fcntl export MBOX_LOCKS=fcntl +# Avoid noise to stderr +#export USE_SYSLOG=1 +#export SYSLOG_FACILITY=mail +export LOGFILE="$HOME/dovecot.log" +#export LOGFILE="/dev/null" + +# Avoid LOGFILE growing endlessly +if [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then + mv -f "$LOGFILE" "$LOGFILE.bak" +fi + exec /usr/lib/dovecot/imap |