getmail as a daemon for maildrop
Note: fetchmail is crap
I needed to set up an internal IMAP server for multiple users so I wrote the following script to be run as root (I set it up to run from init.d, where it imported the interval and redirected output to a log file, but this isn't necessary).
In case someone finds it useful
for i in `ls /home/`;do
if [ -e /home/$i/.getmail ]; then
su $i -c getmail
Call it as root, passing a parameter specifying the number of seconds between checking email.
Then just set up a getmailrc file for any user that wants to use it.