The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Blocking Web-mail for specific e-mail user

Discussion in 'E-mail Discussions' started by Source1, Sep 2, 2014.

  1. Source1

    Source1 Member

    Joined:
    Jun 19, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Is it possible to block webmail access for a particular e-mail user on cPanel server?

    Regards,
    AdminS1
     
  2. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
    Hello AdminS1,

    I'm not sure of your end-goal in this. You can easily change the permission/ownership of the mail folder to block *ALL* access in relation to the particular e-mail user.
     
  3. Source1

    Source1 Member

    Joined:
    Jun 19, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Triantech,

    My goal is to create a filter to keep deliveries within domain from some users and restrict them to use webmail from out side.

    Another idea is that I can change the passwords and configure the users email client my self without telling them the password.
    This way the will be able to use e-mail clients but since they don't know the passwords they will not be able to use mail client or web-mail from outside.
     
  4. Source1

    Source1 Member

    Joined:
    Jun 19, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I have written filter to achieve the following, but somehow it's not working:

    User: abc@domain.com should be able send mail within domain.com
    But in case user abc@domain.com sends mail to any external domain i.e. abc@gmail.com it only deliver to monitor@domain.com

    ##################################
    # Monitor outgoing emails from domain.tld
    if first_delivery
    and ("$h_from:" contains "abc@domain.com")
    and ("$h_to:" does not contain "@domain.com")
    then
    unseen deliver "monitor@domain.com"
    endif
    ##################################


    Can someone help please?

    Regards,
    AdminS1
     
  5. triantech

    triantech Well-Known Member

    Joined:
    Jul 1, 2014
    Messages:
    145
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Kochi, India, India
    cPanel Access Level:
    Root Administrator
  6. Source1

    Source1 Member

    Joined:
    Jun 19, 2014
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    Can someone please tell me what's wrong with this filter ?

    Regards
    Source1
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page