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.

Help Customizing cPanel Defaults For New Accounts

Discussion in 'General Discussion' started by gregc, May 10, 2009.

  1. gregc

    gregc Member

    Joined:
    May 10, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I've been searching around and reading for quite a while, but I can't seem to find the information I'm looking for. When I seem to get close, I run into a snag and hit a dead end.

    In short, I'm trying to modify the cPanel defaults for when a new account/domain is created through WHM, such as the default email address :)fail: no such user here), setting up some default forwards for every domain (abuse@), and so on.

    For the above examples, I know I could edit the valiases afterwards, but I setup so many accounts I would really like to just change the overall defaults if possible, and have the settings take effect for all new accounts going forward.

    There are quite a few other customizations I want to make, but I have a feeling finding out how to make the above change will give me enough information to figure out where to make the rest of my changes.

    Does anyone know which file(s) I would need to modify in order to get the result I'm looking for? I've tried quite a few things so far and nothing seems to be working.

    System
    -------
    cPanel 11.24.4-R35075 - WHM 11.24.2 - X 3.9
    CENTOS 4.7 i686 virtuozzo
     
    #1 gregc, May 10, 2009
    Last edited: May 10, 2009
  2. gregc

    gregc Member

    Joined:
    May 10, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I used chirpy's suggestion from this thread to deal with the abuse@ and postmaster@ addresses, but I'm still wondering where I can update the default information for when you create a new account through the WHM.

    I would like to change the default default address from ":fail: no such user here" to my own message, such as ":fail: my own message", as well as disable shell access by default for new accounts (not just use jailshell, I want it completely disabled), and I just can't seem to find where to update this information.
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. gregc

    gregc Member

    Joined:
    May 10, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    That's going to be a last resort for me (I've already looked into this), as the changes I want to make are pretty simple and I would think there would be an easier way to do it than custom perl and bash scripts.

    I would think the below items would be pretty easy to change without doing a bunch of extra work, but maybe someone could tell me if I'm wrong or not?

    Changing Defaults for new accounts
    - Change ":fail: No Such User Here" to ":fail: (my own message)"
    - Change shell access to be disabled by default

    It just seems like tasks as easy as this shouldn't require custom scripting, and there would be some files I could edit somewhere to do this. Kind of like a skeleton directory somewhere with default settings that can be tweaked.
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    While the tweak setting will let you set the default behavior for mail to fail, there is no option to set the fail message at this time.

    Is this something you want changed for a package, the create account screen in WHM or somewhere else?
     
Loading...

Share This Page