How to Install/Remove MailScanner on CyberPanel

MailScanner is an open-source email security system. It is designed for Linux-based email gateways. CyberPanel provides you with one-click MailScanner installer.

Follow this guide to install or remove MailScanner

How to install MailScanner using CyberPanel:

The installation process of MailScanner is very easy and short using CyberPanel.

First, in the menu go to the Mail Settings -> MailScanner 

Find Out What's New: Click to Our Latest Blog

Stay up-to-date and explore our most recent blog  post to discover fresh insights, trends, and updates in your area of interest.

You can see an install button on this screen,  press the Install button to start the installation.

Enhance Your CyerPanel Experience Today!

Discover a world of enhanced features and show your support for our ongoing development with CyberPanel add-ons. Elevate your experience today!
Learn More

Once the installation process is done you can see the Access button on this screen.

Press the Access button and it will take you to the MailScanner login screen.

the URL for MailScanner login is


How to get UserName and Password for MailScanner:

The default login access for MailScanner is

Username: admin

Password: Password for your admin user on CyberPanel.

You can also create new user by running the following query on PHPMyAdmin or via MySQL CLI:

INSERT INTO mailscanner.users SET username = '<username>', password = MD5('<password>'), fullname = '<Full Name>', type = 'A';

Replace <username>, <password> and <Full Name> in the query above according to your requirements.

How to remove MailScanner

You can remove MailScanner by running following commands on CLI:

chmod +x /usr/local/CyberCP/CPScripts/

Emails stop working after installing MailScanner

If you can't send or receive emails after installing MailScanner use our troubleshooting guide. You can also temporarily stop MailScanner processing by opening


and removing following line from this file

header_checks = regexp:/etc/postfix/header_checks

after removing this line run

systemctl restart postfix

and you should be able to send emails again.


linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram