Help Customizing cPanel Defaults For New Accounts

gregc

Member
May 10, 2009
8
0
51
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
 
Last edited:

gregc

Member
May 10, 2009
8
0
51
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.
 

gregc

Member
May 10, 2009
8
0
51
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
16
313
Houston, TX
cPanel Access Level
Root Administrator
Changing Defaults for new accounts
- Change ":fail: No Such User Here" to ":fail: (my own message)"
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.

- Change shell access to be disabled by default
Is this something you want changed for a package, the create account screen in WHM or somewhere else?