Guide to install MailScanner on cPanel/WHM Server

Category : cPanel/WHM

Tired of SPAM emails in your WHM cPanel based server?

No Problem, we will share an awesome tool that will be the solution to fix SPAM Emails. ConfigServer Services developed a very smart tool MailScanner for WHM/cPanel Systems. It can be called as an add-on for cPanel. MailScanner will scan all your emails for SPAM and Viruses and keep you safe. This tool is very helpful in email management and removes the load on server administrator’s head. MailScanner comes in two variants. One is a free version which is installed via CLI and has no User Interface to manage and, other is MailScanner Front-End for cPanel which is fully web-based tool with the auto-installer with proper guides and will cost you $55/server.

We will show you how you can install free version on your server using CLI.


  • cPanel/WHM Installed on CentOS Server with Login Credentials
  • SSH Root access to the server


  1. Login to root using SSH
  2. Download tarball of MailScanner on Server
    wget ""
  3. Run Following Command to Extract the tarball
    tar -xvf msinstall.tar.gz
  4. Prepare to install
    cd msinstall

    Note – Install script might take some time to install.
  5. Login to WHM
  6. Under “Server Configuration” Section open “Tweak Settings”
  7. Look for “SpamAssassin Spam Filter” and “SpamAssassin Spam Box”
  8. Untick or Turn-off both of these options
    tweak settings
  9. Look for “spamd” under dormant services and untick it.
    spamd untick
  10. Goto WHM Homepage and Head towards “Service Configuration” Section and open “Service Manager”
  11. Look for “SpamAssassin Spam Filter”, “SpamAssassin Spam Box” and “spamd” option and uncheck all three options.
    untick spamassassin service
  12. Goto WHM Homepage and Head towards “Packages” and Open “Feature Manager”
  13. Under Manage Feature List edit ‘disabled’ list and tick “SpamAssassin Spam Filter” and “SpamAssassin Spam Box” to disable usage by other lists.
  14. Scan domain hosted on your server using the following command and add to monitoring zone
    /usr/mscpanel/ -i
  15. Add the following in cronjob rules for daily scanning of new domains addition
    0 0 * * * /usr/mscpanel/ > /dev/null 2>&1
  16. Installation here is done. MailScanner Configurations are stored in /usr/mailscanner/etc/MailScanner.conf file. Please be careful when changing configuration values.