For the sake of anyone happening across this thread with the same issue of the local imap server accepting and closing connections to localhost, thus breaking webmail, Plesk 12 with SElinux enabled is not compatible with Courier IMAP for insecure local connections. Swapping courier out for...