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.

Disable Email Forwarder in Webmail

Discussion in 'E-mail Discussions' started by zaher, Oct 30, 2015.

  1. zaher

    zaher Active Member

    Joined:
    Jul 2, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Is there a straightforward way to disable the ability for WebMail users to create email forwarders?
    As a business, this can pose a great risk of information theft from potential insiders.

    Regards
     
  2. David P. Levey Jr.

    Joined:
    Oct 10, 2015
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Alabama, United States
    cPanel Access Level:
    Root Administrator
    I wasn't able to find anything "straight forward", nor even a built in function to do this.

    However, from a quick test, I was able to prevent the creation of "Email Forwarders" by "locking" alias files.

    Code:
    # pwd && ll
    /etc/valiases
    -rw-r----- 1 blockforward mail 18 Oct 15 10:07 blockforwarders.com
    
    # chattr +i /etc/valiases/blockforwarders.com
    
    After making that edit, attempting to create a forwarded in cPanel provided this error

    Code:
    Error opening “/etc/valiases/blockforwarders.com” to write: Permission denied at /usr/local/cpanel/Cpanel/Email/Aliases.pm line 101.
    
    I realize this is less than ideal, but may suffice depending on how important that functionality is to you.

    Good luck!
     
  3. zaher

    zaher Active Member

    Joined:
    Jul 2, 2014
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    As a server administrator, i still need to be able to make forwards, so this should only be disable in Webmail.
    I read about adjusting the theme files, but my question is more toward built in functionality.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

Share This Page