How to know default webmail client that user uses for email box Horde or Roundcube on a cPanel server

To check the default webmail client that a user uses for their email box on a cPanel server, you can use the following command:

egrep "roundcube|horde" /home/*/.cpanel/nvdata/*_default_webmail_app

It will show a user, email box and default webmail app that set up by the user by default

 … Read the rest

How to change master domain for an account on cPanel server from command line

To change the master domain for an account on a cPanel server from the command line, you can use the cPanel API WHMAPI1. Here are the steps:

– Connect to the server via SSH using your preferred terminal emulator.
– Use the following command to change the master domain for the account:

whmapi1 modifyacct user=USERNAME newdomain=newdomain.com
Read the rest

How to fix error starting mailman on cPanel server

The mailman error I got looks as below:

root@server1 [/usr/local/cpanel/3rdparty]# /usr/local/cpanel/scripts/restartsrv –wait –force mailman
Waiting for “mailman” to start ……info [restartsrv_mailman] systemd failed to start the service “mailman” (The “/usr/bin/systemctl restart mailman.service –no-ask-password” command (process 444759) reported error number 1 when it ended.):

Read the rest

How to reset max defers limit on cPanel server

You may got:

2022-07-28 14:43:22 1oH9Pk-111Cld-8x ** [email protected] R=enforce_mail_permissions: Domain domain.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded.

To reset:

/var/cpanel/email_send_limits/track/domain.com

If the limits too tiny on your server then adjust them per your needs:

sed -i -e 's/MAX_DEFER_FAIL_PERCENTAGE=.*/MAX_DEFER_FAIL_PERCENTAGE=125/g'
Read the rest