Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Limit WebMail Access to a certain IP

Discussion in 'E-mail Discussion' started by sozotech, Feb 27, 2014.

  1. sozotech

    sozotech Well-Known Member

    Jul 26, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Is it possible to limit webmail access for a domain to a certain IP address? I have a company that wants their users to use webmail for their company email but do not want their employees to be able to access the account from home or their mobile device etc.

    I suppose you would also have to limit IMAP access as well since they could just add an account on their phone that way. Can you also set an account to be accessible via webmail only? It is kind of a strange request but I thought I would ask.

    Best regards,
  2. JaredR.

    JaredR. Well-Known Member

    Feb 25, 2010
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You can limit Webmail or IMAP access by IP address in Home » Security Center » Host Access Control. You would want to put an "allow" rule for the IP address that you want to have access, before a "deny" rule for "all", because it stops processing rules as soon as a match is found. The daemon name to use for Webmail is webmaild, and the daemon name to use for IMAP is imap.

    Note that this affects the entire server. There is no supported way to apply this type of restriction to only one domain or account or mailbox.

    You can read more about Host Access Control here:

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice