The reason that IDLE fails is imapd was not compiled with libfam.
[root@cc-server ~]# ldd /usr/bin/imapd
linux-vdso.so.1 => (0x00007fffdddfe000)
libgdbm.so.2 => /usr/lib64/libgdbm.so.2 (0x00007f0ee3086000)
libcourierauth.so.0 => /usr/lib64/courier-authlib/libcourierauth.so.0 (0x00007f0ee2e7a000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0ee2ae6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0ee329a000)
[root@cc-server ~]#
Regardless of gamin or fam, libfam should be compiled into imapd, the site you quoted also says so. My tests all fail.
Can you re-compile with above and libfam?