Hi,
I am trying to automate certain cPanel config changes using chef via command line and require the below to be done but I am unsure where and if I do them correctly:
1. Disable root login to pure-ftp:
Create /var/cpanel/conf/pureftpd/root_password_disabled
Modify /var/cpanel/conf/pureftpd/main and set RootPassLogins: 'no'
Run /scripts/ftpupdate and /scripts/setupftpserver pure-ftpd
2. Max hourly emails per domain and disable boxtrapper
Set /etc/email_send_limits to:
Set skipboxtrapper=1 in /var/cpanel/cpanel.config
Rebuild exim conf with /scripts/buildeximconf
3. Disable Reset Password for cPanel accounts and Reset Password for Subaccounts
I have set resetpass_sub=0 and resetpass=0 in /var/cpanel/cpanel.config but I can also see that Post actions are required as well:
Processing post action for Reset Password for Subaccounts
Processing post action for Reset Password for cPanel accounts
Any ideas what are the post actions required?
Also amd I doing it correctly at 1 and 2? Anything else required?
Please help. Thanks in advance.
I am trying to automate certain cPanel config changes using chef via command line and require the below to be done but I am unsure where and if I do them correctly:
1. Disable root login to pure-ftp:
Create /var/cpanel/conf/pureftpd/root_password_disabled
Modify /var/cpanel/conf/pureftpd/main and set RootPassLogins: 'no'
Run /scripts/ftpupdate and /scripts/setupftpserver pure-ftpd
2. Max hourly emails per domain and disable boxtrapper
Set /etc/email_send_limits to:
Code:
#version 1.0
#format DOMAIN: MAX_EMAIL_PER_HOUR,MAX_DEFER_FAIL_PERCENTAGE,MIN_DEFER_FAIL_TO_TRIGGER_PROTECTION
*: 100,0,5
Rebuild exim conf with /scripts/buildeximconf
3. Disable Reset Password for cPanel accounts and Reset Password for Subaccounts
I have set resetpass_sub=0 and resetpass=0 in /var/cpanel/cpanel.config but I can also see that Post actions are required as well:
Processing post action for Reset Password for Subaccounts
Processing post action for Reset Password for cPanel accounts
Any ideas what are the post actions required?
Also amd I doing it correctly at 1 and 2? Anything else required?
Please help. Thanks in advance.