Subversion Repositories sysadmin_scripts

Rev

Rev 14 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# Automatically sync mail from remote machine
# Place this in /etc/cron.d named imapsync (or something)
# this will do an imapsync.sh, then run getStats against the output
# and e-mail the results of getStats to the address in MAILTO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# adjust to who you want the output to go to
MAILTO=root

# adjust path in the following to match your installation
11 */4 * * * root if [ -e /root/bin/imapsync/users.list ] ; then /root/bin/imapsync/imapsync.sh && /root/bin/imapsync/getStats ; fi