How to update reseller’s subaccounts disk quota and bandwidth on cPanel server

Useful if you have plan limited by:

– limitation by amount of cPanel accounts
– bandwidth limitation
– disk space limitation
– overselling disabled

Update reseller’s packages with new limits via command line

sed -i -e "s/QUOTA=.*/QUOTA=2000/g" /var/cpanel/packages/resellerusername_*
sed -i -e "s/BWLIMIT=.*/BWLIMIT=20000/g"
Read the rest

How to fix Roundcube Server Error: STATUS: Mailbox doesn’t exist error

This may occur because of UTF8 formatting was not enabled

– Navigate to cPanel –> Email –> Email Accounts.
– Select Manage next to the “Default” account.
– Enable the toggle under “UTF-8 Mailbox Names”.

You may also inspect Roundcube interface setting for UTF8 formatting enabling… Read the rest

How to remove Mailman list from command line

Find rmlist binary file under  /usr/local/cpanel/3rdparty/mailman/bin folder

For more info run:

[email protected] [/usr/local/cpanel/3rdparty/mailman/bin]# ./rmlist --help

Usage:
rmlist [-a] [-h] listname

Where:
–archives
-a
Remove the list’s archives too, or if the list has already been
deleted, remove any residual archives.

–help
-h
Print this help message and exit.

Read the rest

How to rebuild vc_list_store file

Recently I faced that vc_list_store is missed for just restored account as result a client got their Git repositories empty

I have found that .cpanel/datastore in Jetbackup exclude list, it seems because they skip .cpanel/datastore by default at their doc page:

https://docs.jetbackup.com/manual/whm/BackupJobs/excludeFiles.htmlRead the rest

How to get rid of SpamAssassin URIBL_BLOCKED Administrator notice

Symptom, In messages body you permanently getting the following:

0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked.
See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for information.

You need to either stop using free DNS resolvers, for example like:

[email protected] [~]# cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 1.1.1.1

Or update your SpamAssassin configuration as the following:

echo "dns_server 127.0.0.1 # added to fix blocking of URIBL and DNSWL queries" >> /etc/mail/spamassassin/local.cf
Read the rest

How to update WHM’s Basic WebHost Manager from command line

You need to update the following file:

/etc/wwwacct.conf

Output example:

NS yournameservhere.com
CONTACTEMAIL
HOMEDIR /home
ETHDEV eth0
NS4
SCRIPTALIAS y
NSTTL 86400
ADDR6
TTL 14400
HOST yourhostnamehere.com
LOGSTYLE combined
CONTACTPAGER
DEFMOD paper_lantern
ADDR 11.22.33.44
NS2 yournameservhere2.com
DEFWEBMAILTHEME paper_lantern
HOMEMATCH home
NS3 yournameservhere3.com

Read the rest

cPanel whmapi1 modifyacct notes

Example of the command:

whmapi1 modifyacct user=XXXX QUOTA=XXXX

Some popular parameters:

BWLIMIT=unlimited
QUOTA=unlimited
CGI=y
CPMOD=paper_lantern
DIGESTAUTH=n
FEATURELIST=default
HASSHELL=n
MAXADDON=unlimited
MAXFTP=unlimited
MAXLST=unlimited
MAXPARK=unlimited
MAXPOP=unlimited
MAXSQL=unlimited
MAXSUB=unlimited
MAX_DEFER_FAIL_PERCENTAGE=100
MAX_EMAILACCT_QUOTA=unlimited
MAX_EMAIL_PER_HOUR=100
FRONTPAGE=n
IP=n
LANG=en
domain=domain.com
user=cpaneluser
MAX_DEFER_FAIL_PERCENTAGE=5
MAX_EMAILACCT_QUOTA=100
BACKUP=0
HASCGI=1
FEATURELIST=featurelist
OWNER=owner
HASDKIM=1
HASSPF=1
[email protected]
Read the rest

How to disable Mailman archiving

Sudenly you may find that your mailing list archive has grown too large.

So you need to decide if you’re really need to keep your archives and if not then go ahead and disable it:

- Login your cPanel 
- 'Maillist'
- select your mail list
- 'Archiving Options'
- set 'Archive messages?'
Read the rest

Enable SpamAssassin globally for all users

You can either go ahead over WHM –> Exim Configuration Manager –> Apache SpamAssassin Options –> Apache SpamAssassin™: Forced Global ON set to ON

or simply touch a file:

 touch /etc/global_spamassassin_enable

Now you have got SpamAssassin enabled for all users with default score 5

The default 5 score can be overwritten over by a user via /home/USER/.spamassassin/user_prefsRead the rest