Subversion Repositories sysadmin_scripts

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 rodolico 1
# Automatically sync mail from remote machine
2
# Place this in /etc/cron.d named imapsync (or something)
3
# this will do an imapsync.sh, then run getStats against the output
4
# and e-mail the results of getStats to the address in MAILTO
5
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
6
# adjust to who you want the output to go to
7
MAILTO=root
8
 
9
# adjust path in the following to match your installation
10
11 */4 * * * root if [ -e /root/bin/imapsync/users.list ] ; then /root/bin/imapsync/imapsync.sh && /root/bin/imapsync/getStats ; fi