How To Install Mailscanner On Cpanel Server

mailscanner cpanel hosting

mailscanner cpanel hosting

Installation.

  1. If you have the cPanel Clamavconnector installed (WHM > Add-on Modules) remove it – it will break MailScanner
  2. Login to your root account on your server via SSH
  3. Download the package, expand it and go into it:
  4.  wget http://www.configserver.com/free/msinstall.tar.gz
  5.  tar -xzf msinstall.tar.gz
  6.  cd msinstall
  7. Follow the instructions in the README.txt and INSTALL.txt files in the package
  8. Please note that the script currently is configured to download the latest MailScanner at the time of writing. If you want a different version, edit msinstall.pl and modify the $mailscanner variable appropriately
  9. Once installed/upgraded/uninstalled make sure that both MailScanner is running correctly and that exim is sending and receiving emails (you should use 2 separate SSH windows to do this): tail -f /var/log/maillog tail -f /var/log/exim_mainlog

Uninstallation

1. Remove MailScanner and the MailScanner Front-End:

cd /usr/mscpanel
sh uninstall.msfe.sh

cd /root
wget http://www.configserver.com/free/msinstall.tar.gz
tar -xzf msinstall.tar.gz
cd msinstall/
sh uninstall.sh

2. To remove the MailScanner Configuration icon from cPanel, go to WHM > Packages > Feature Manager. Edit the “disabled” Feature List and uncheck the box for MailScanner Configuration. 3. Remove the root cron jobs that run mscpanel.pl and sa_rules.sh (or rules_du_jour):

crontab -e

4. Remove the following lines from /scripts/postupcp:

#!/bin/sh
perl /usr/mscpanel/mscheck.pl

5. Reset Exim Configuration (if desired), in WHM > Exim Configuration Editor > Reset All Configs to Defaults. 6. If you want to re-enable SpamAssassin through cPanel: WHM > Tweak Settings > SpamAssassin > tick WHM > Service Manager > spamd > tick both boxes WHM > Feature Manager > Edit a Feature List > disabled > Edit > SpamAssassin and SpamAssassin Spam Box > tick WHM > Feature Manager > Edit Feature List – edit any feature lists that you want to allow access to the SpamAssassin configuration in cPanel

Temporarly Disable/Enable Mailscanner

 in Cpanel server

The simplest way to disable it is to do the following:

rm -fv /etc/exim_outgoing.conf
/scripts/buildeximconf
service exim restart

MailScanner will still be running, but won’t be involved in email delivery. If you also want to stop it running, go to WHM > Service Configuration > Service Manager and uncheck both boxes for MailScanner. Then login via SSH and do:

service MailScanner stop

You do need to do the first steps above to disable MailScanner before stopping the service, otherwise no mail will be delivered at all. Important: Before disabling MailScanner, you should check to see if there are any mails waiting to be processed by MailScanner. If there are and you disable MailScanner, the waiting emails will not be processed by exim until MailScanner is re-enabled. To find out if there are mails waiting (do thisbefore disabling MailScanner), in root SSH enter:

exim -bpc

You can contact us via the helpdesk if you need help after you’ve disabled MailScanner. To re-enable it:

touch /etc/exim_outgoing.conf
/scripts/buildeximconf
/scripts/mailscannerupdate
service exim restart
/usr/mscpanel/mscheck.pl
0 Shares:
Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like