summaryrefslogtreecommitdiff
path: root/localimap
blob: 60e2a302ba4dbbafda47ee55395dbd945b984fc6 (plain)
  1. #!/bin/sh
  2. if test -d ~/Maildir; then
  3. MAIL=~/Maildir
  4. fi
  5. # This might work on local storage
  6. # (one for dovecot 1.x and the other for 0.99.x)
  7. #export MBOX_WRITE_LOCKS=fcntl
  8. #export MBOX_LOCKS=fcntl
  9. # Works for Dovecot 1.x over non-locking NFS
  10. export LOCK_METHOD=dotlock
  11. export MMAP_DISABLE=yes
  12. #export DEFAULT_MAIL_ENV=maildir:~/Maildir:INDEX=MEMORY
  13. #export INDEX=MEMORY
  14. # Avoid noise to stderr
  15. #export USE_SYSLOG=1
  16. #export SYSLOG_FACILITY=mail
  17. export LOGFILE="$HOME/dovecot.log"
  18. #export LOGFILE="/dev/null"
  19. # Avoid LOGFILE growing endlessly
  20. if [ -f "$LOGFILE" ] && [ "`ls -s "$LOGFILE" | awk '{print $1}'`" -gt 500 ]; then
  21. mv -f "$LOGFILE" "$LOGFILE.bak"
  22. fi
  23. exec /usr/lib/dovecot/imap