The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel MailScanner Install/Upgrade Scripts

Discussion in 'E-mail Discussions' started by chirpy, Aug 14, 2004.

  1. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Since cPanel, in their wisdom, has withdrawn their experimental MailScanner package and through our experience of installing, configuring and upgrading MailScanner for many clients we have decided to publish our scripts, for free, that can be used to:

    Install MailScanner
    Upgrade an existing MailScanner installation (that resides in /usr/mailscanner/)
    Upgrade an existing MailScanner installation (and use a clean installation of the files)
    Uninstall MailScanner

    For upgrades and uninstallation, this script will only work with MailScanner installation installed either from this script or from the old cPanel layer1 MailScanner installation script.

    You get get more information on installation and downloading the scripts here:
    http://www.webumake.com/free/mailscanner.htm

    Please note that the scripts are currently in beta, though have been used quite extensively by us.
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    Thank you. This will benefit many people.
     
  3. Sheldon

    Sheldon Well-Known Member

    Joined:
    Jun 7, 2004
    Messages:
    378
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    may I ask which is better? mailscanner or Exiscan and what are the pros / cons between them?

    Sheldon
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Exiscan will most likely be less of a burden to your server, but it is not configurable to any degree, nor is it flexible. MailScanner is both and more comprehensive a solution. Care is needed with it on an overloaded server.
     
  5. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Thank you.

    Have you found the secret to using Spamassassin inside Mailscanner and still allowing the user to do his own whitelisting? :D
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Not yet, but it should be possible now that per domain whitelisting has been introduced - still haven't played with that yet and I'm wary of allowing users access to files which could screw up the service if they use the wrong format :rolleyes: ;)
     
  7. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    Tips on updating Clamav

    Could anyone give some tips on updating Clamav to the last 0.75 version?


     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    This does depend on where you have ClamAV installed now. If you do the following:

    whereis clamscan

    and you get:

    /usr/local/bin/clamscan

    then you can do this:
    Code:
    useradd clamav
    wget http://heanet.dl.sourceforge.net/sourceforge/clamav/clamav-0.75.1.tar.gz
    tar -xzf clamav-*
    cd clamav-*
    ./configure
    make
    make install
    freshclam
    cd ..
    rm -Rf clamav-*
     
  9. bunjo

    bunjo Member

    Joined:
    Nov 9, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I've got a problem on a Redhat Enterprise server. Mailscanner starts up fine and there are no error messages in any of the log files, but mail sits in the incoming queue directory specified in MailScanner.conf without moving. Any ideas?
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Is MailScanner actually coming up fully?

    If you restart it and do:

    tail -f /var/log/maillog

    You should see a sequence of these:
    Code:
    Sep  7 17:20:12 homer MailScanner[15887]: MailScanner E-Mail Virus Scanner version 4.33.3 starting... 
    Sep  7 17:20:18 homer MailScanner[15884]: Using locktype = posix 
    Sep  7 17:20:18 homer MailScanner[15884]: Creating hardcoded struct_flock subroutine for linux (Linux-type) 
    If it just shows the first line of the above over and over again (more than 5 times in a row) then it may be that MailScanner isn't starting up fully. If that's the case, let us know.
     
  11. bunjo

    bunjo Member

    Joined:
    Nov 9, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for replying.

    You were right, it was not starting up fully. A few days ago there had been a botched RHEL nightly update and some Perl modules had either disappeared or been broken. I never got any complaints during the MailScanner installation process however. Running the CPanel software updater fixed it and MailScanner is now up and running. :)
     
  12. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    Another excellent contribution to the Cpanel community!

    Thanks
     
  13. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    SpamAssassin problems :-(

    Hi chirpy, I have installed your MailScanner Installation/Upgrade Script, but now, SpamAssassin does not works with the domain configuration rules located at /home/user/.spamassassin. I don´t want to run SpamAssassin with mailscanner. Can I restore or uninstall this? If I try to run the msinstall.pl, there are only one option, 1 for install and 9 for exit, thanks!
     
  14. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you run the install script again it will find the MailScanner installation and you'll have an option to uninstall MailScanner.
     
  15. goodmove

    goodmove Well-Known Member

    Joined:
    May 12, 2003
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    In your "add domains to Mailscanner" script, you have for example:

    # Either - To: From: FromOrTo: FromAndTo:
    $spam_scanning_rules_ini = 'To:';

    How do we base the best option out of those 4?
     
  16. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would generally use To: for spam and FromOrTo: for virus scanning:

    To: = email sent to the domain (i.e. incoming email only)
    FromOrTo: = email sent from or to the domain (i.e. outgoing and incoming email)
    From: = email from the domain (i.e. outgoing email only)
    FromAndTo: = email from and to the domain (i.e. internal)
     
  17. ukhost4u

    ukhost4u Active Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    I notice that cPanel is installing MailScanner 3 automaticly when you run /script/upcp on the current release. Im guessing this is now a new home for it.
     
  18. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I'd be surprised. Do you mean SpamAssassin v3?
     
  19. ukhost4u

    ukhost4u Active Member
    PartnerNOC

    Joined:
    Apr 24, 2003
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Yea, SpamAssassin v3 im think im blonde today!
     
  20. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Hello again Jonathan and thanks four your reply. Now I have a problem when I run /root/restartMS.sh

    Your script print (line 288):

    print OUT "\#!/bin/sh\nkillall MailScanner\nsleep 8\n/usr/mailscanner/bin/check_mailscanner\n";

    But instead of /usr/mailscanner/bin/check_mailscanner I only can run /usr/sbin/check_mailscanner

    I think that it is very important because I have seen this check_mailscanner in MailScanner CRON jobs

    At the end, the script print this: To change MailScanner settings, you need to modify /usr/mailscanner/etc/MailScanner.conf but I have /etc/MailScanner/MailScanner.conf

    What do you think is the problem? Thank tou very much!
     
Loading...

Share This Page