Email Account: Disable IMAP only for remote access

Discussion in 'Installation/Configuration' started by ignasigarcia, Apr 21, 2009.

  1. ignasigarcia

    ignasigarcia New Member

    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?

    Thanks in advance

  2. tebokkel

    tebokkel New Member

    The term "firewall" comes to mind..

    Otherwise, set the binding IP-address from your IMAP-server to localhost or

    For Courier-IMAP that is, change/put:

    in your /etc/courier/imapd (and/or imapd-ssl).

    Make sure your squirrelmail is connecting to, not to your external IP.

    Why on earth you would want to limit users in this way, I wouldn't know.

  3. ignasigarcia

    ignasigarcia New Member

    yes, that would work if I did not want any user to access through IMAP remotely. What I was talking about is not giving SOME users remote IMAP access, but still access with POP3 and WebMail.

  4. tebokkel

    tebokkel New Member

    Then you'll need PAM, I think. For example adding a file-module to the imapd PAM-stack/service, see

    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.


Share This Page