Email Account: Disable IMAP only for remote access

Hi there. I'd like to have IMAP access disabled for some users thorugh ISPC3 control panel. However, we have squirrelmail installed in the same server for webmail access. Is there a way to allow universal access to the IMAP server in localhost and disable IMAP access when login remotely (i.e. from thunderbird, outlook)? If the answer is no, is there any workaround for accomplishing this?

However, since you're probably using ISPC 3, which I haven't tried yet, it's very likely that the PAM-config for Courier authdaemon has changed from authpam to authmysql, so you need to daisychain the authdaemon modules (which is documented to be possible). In any case you'll still need to administer "something", "somewhere" for either your imap-users or your non-imap users.