This error can be seen in your mail client and is often caused by Courier. If you are the system administrator of the mail server, simply install libgamin as follows:
If you are root:
apt-get install gamin
If not:
sudo apt-get install gamin
Restart all of your courier services as follows (requires you to be using bash shell):
If you are root:
find /etc/init.d/ | grep courier | while read line; do $line restart; done
If not:
find /etc/init.d/ | grep courier | while read line; do sudo $line restart; done
This does not really fix the issue for me (Debian Wheezy) since after a while, the gam_server process stops responding and has to be manually restarted. Until it is restarted, there is no possibility to log in via IMAP.
Chris – your issue sounds a little like something that’s knocking around on the Courier mailing list and an issue I had. Installing libfam seems to fix* the issue: apt-get install fam libfam0
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669146#65
* Not so much fix as work around