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:
- Login as root via SSH terminal.
- Download the installer, expand it and go into it:
wget https://download.configserver.com/msinstall.tar.gz tar -xzf msinstall.tar.gz cd msinstall/
- 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
- Disable the following options in WHM:
- WHM > Tweak Settings > Uncheck "Apache SpamAssassin Spam Filter" and "Apache SpamAssassin Spam Box"
- WHM > Service Manager > Uncheck both boxes for "Apache SpamAssassin" and click "Save"
- 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.
- If purchased, install MSFE:
- Modify /etc/csf/csf.pignore and add:
pcmd:MailScanner:.*
- Restart lfd:
service lfd restart
- Please note that the script uses a stable version of MailScanner which might not be the very latest from the developer.
- 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.