Block a malicious email address in cPanel

Log into the cPanel account and scroll down to the “Email Management Tools” box and enable SpamAssassin.

Click on “Configure SpamAssassin” button and set the score to 5 or 6. The greater the number the more SPAM you could receive.

Click on “save”.

You can also configure Mozilla Thunderbird to accept SpamAssasin’s headers to help it identify SPAM. Set it on your account settings on a “per account” basis.

Set filters in “Account Level Filtering”

You can add the filter for a specific email address from “cPanel>> Mail>> User Level Filtering” option to DISCARD the incoming emails from that malicious email address you want to block. Here are the steps to set a filter.

1. login to cPanel and go to “cPanel>> Mail>> User Level Filtering” option.

2. Add the following filter for your domain email accounts.


Select “From” from drop down menu, then you’ll need to select “Contains” from the drop down menu.


Enter the email address you want to block” and click on Activate button.

This filter will block one particular email address from coming into the email address on your domain email address\es and at the same time, your email address will not send any bounce back email message to the blocked email address.


How to disable Dr.Web notifications in Plesk

You can edit /etc/drweb/drweb_qmail.conf or /etc/drweb/drweb_handler.conf using a text editor like nano or vi to eliminate receiving notification messages when Dr. Web has an issue:

SenderNotify = no
AdminNotify = no
RcptsNotify = no

Then restart Dr. Web with:

# /etc/init.d/drwebd restart

Installing Magento through Installatron requirements missing error in WHM

Installing Magento through Installatron requirements missing error:

php-intl-version-minimum v1 (detected: OFF) php extension
php-memory-limit 128MB (detected: 32MB)

You will need to install php-intl-version-minimum in EasyApache:

Home >> Software >> EasyApache then click on customize

Then under PHP Extensions you will need to find php-intl-version-minimum and click the tab to install.

Once you have done this you will need to click on the “Review section” then click the “Provision” button at the bottom of the page.

Then for the php-memory-limit t you will need to go to:

Home >> Software >> MultiPHP Manager to see which PHP version is installed.

Now click on “MultiPHP INI Editor” and select that PHP version in the drop down box.

Find “memory_limit” and increased to 128M and then click on “Apply” at the bottom of the page.

Then run the Magento installation through Installatron again.

Roundcube – IMAP Server dropping the connection

When trying to log into your email account via the Roundcube webmail client and IMAP keeps dropping the connection you can fix this by:

  • #tail -20 /var/cpanel/roundcube/log/errors  —>To check the logs
  • #/etc/init.d/courier-imap restart                       —>To restart the IMAP service
  • #/scripts/courierup –force                                  —>To update the IMAP server

If the issue is still not resolved then you may need to change the permissions of the mail directory with the command below but make sure the username is the username from cPanel:

  • #chown -R username:mail /home/username/mail
  • #chown -R username:mail /home/username/etc


Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

When trying to log into a server with WHM/cPanel via SSH and you get this error:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

This will be because password authentication is disabled in the sshd_config file

To resolve this you can log into WHM and enable the password authentication.

  • WHM >> Security Center >> SSH Password Authorisation Tweak

Then restart the SSH service.

WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration in WHM

When looking at “ConfigServer Security & Firewall” in WHM it gives this error at the top in a yellow box WARNING: RESTRICT_SYSLOG is disabled. See SECURITY WARNING in Firewall Configuration

I resolved this by:

  • Setting RESTRICT_SYSLOG to 3 in the drop down box

This is a description of each number in the drop down box:

# 0 = Allow those options listed above to be used and configured
# 1 = Disable all the options listed above and prevent them from being used
# 2 = Disable only alerts about this feature and do nothing else
# 3 = Restrict syslog/rsyslog access to RESTRICT_SYSLOG_GROUP

Password for the admin account in Plesk

Plesk for Linux/Unix:

If the password for the “admin” user in Plesk has been lost.

For Plesk versions 10.x and above:

For the “admin” user use the following:

/usr/local/psa/bin/admin --show-password

If you need to change the password use the following:

/usr/local/psa/bin/init_conf -u -passwd <new_password>

For Plesk versions up to 9.x:

The Plesk admin password is stored in a hidden file on the server. Use this command to get it:

cat /etc/psa/.psa.shadow


Plesk for Windows:

As well as the the password reminder option available on the Plesk login screen, you can use theplesksrvclient.exe utility to set up a new password or retrieve an existing one.

You can set up a new password by running the following command:

"%plesk_bin%\plesksrvclient" -set <new_password>

You can also retrieve the current password by running the utility with the following command:

"%plesk_bin%\plesksrvclient" -get

To retrieve the password in the command line, use the “-nogui” option:

"%plesk_bin%\plesksrvclient" -get  -nogui > plesk_password.txt

After that, you can find the retrieved Plesk password in the plesk_password.txt file.

To view the password in the command line:

"%plesk_bin%\plesksrvclient" -get  -nogui | more