Install the Free ConfigServer MailScanner on cPanel Server


This article provides a guide for how to install the free ConfigServer MailScanner on cPanel server.

What is MailScanner?

MailScanner is an open-source email security system which scans for viruses, spam, malware, phishing, and dangerous html in emails.

How to Install the Free ConfigServer MailScanner on cPanel Server

To install the free ConfigServer MailScanner on cPanel server, follow the steps provided:

  1. Login as root via SSH terminal.
  2. Download the installer, expand it and go into it:
    wget https://download.configserver.com/msinstall.tar.gz 
    tar -xzf msinstall.tar.gz
    cd msinstall/
  3. Download the tarball:
    cd /usr/src
    rm -fv msinstall*
    wget https://download.configserver.com/msinstall.tar.gz
    tar -xzf msinstall.tar.gz
    cd msinstall/
    sh install.sh
    /usr/mscpanel/mscheck.pl
    /usr/msfe/msrules.pl -i
  4. Disable the following options in WHM:
    1. WHM > Tweak Settings > Uncheck "Apache SpamAssassin Spam Filter" and "Apache SpamAssassin Spam Box"
    2. WHM > Service Manager > Uncheck both boxes for "Apache SpamAssassin" and click "Save"
  5. MailScanner can be configured by editing the file /usr/mailscanner/etc/MailScanner.conf or via the ConfigServer MSFE UI. Be sure to restart MailScanner after making modifications to this file.
  6. If purchased, install MSFE:
  7. Modify /etc/csf/csf.pignore and add:
    pcmd:MailScanner:.*
  8. Restart lfd:
    service lfd restart
  9. Please note that the script uses a stable version of MailScanner which might not be the very latest from the developer.
  10. Once installed/upgraded/uninstalled, make sure that MailScanner is running correctly and that exim is sending and receiving emails, by tailing the appropriate log files:
    tail -f /var/log/maillog
    tail -f /var/log/exim_mainlog

Conclusion

You now know how to install the free ConfigServer MailScanner on cPanel server.

  • mailscanner, cpanel, email security, spam prevention, configserver
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Create Spam Filters for Mailing Lists

This document explains how to create mail filter rules in cPanel's Mailing Lists interface (Home...

Video: Create Email Filter in cPanel

This video tutorial provides Step-by-Step instructions for creating an email filter in cPanel...

Video: Using Webmail in cPanel

This video tutorial provides Step-by-Step instructions for using Webmail in cPanel Shared Hosting...

Video: Create Email Address in cPanel

This video tutorial demonstrates how to create an email address using cPanel Shared Hosting...

Remove a Service from ChkServd Monitoring for cPanel Servers

This guide requires root user account in server. In some circumstances, ChkservD cPanel...