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.

MailScanner Failed

Discussion in 'E-mail Discussions' started by datah, Dec 28, 2005.

  1. datah

    datah Member

    Joined:
    Apr 4, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    After last nights upcp now MailScanner keeps failing. I tried running all the commands I read by chirpy that should be run after a upcp and it keeps failing.

    Something that I saw that I think is what broke it seems that Perl got upgraded and a couple of modules. I tried removing MailScanner completely and re-installing and it just wont work again!

    Someone please help me as I do love MailScanner since it helped me get all my customers rid of spam!

    Thanks in advance
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Did you, first, stop mailscanner, and then remove it? Are you sure that you completely removed mailscanner, before re-installing a fresh copy? Read this post http://forums.cpanel.net/showthread.php?p=150118 and search this forum for more info on how to remove mailscnner.
     
  3. datah

    datah Member

    Joined:
    Apr 4, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Nothing has worked. I ended up taking MailScanner out since it does not work. I removed it completely, re-installed it, tried everything, it wont work.
     
  4. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    We had this problem last night also, have completely uninstalled and reinstalled it and still get MailScanner failed messages at least once every 20 minutes. Out of 10 servers only 1 had the problem is the wonderful part. Whenever MailScanner restarts it gets flooded and then dies a few minutes later, has made for a fun day tracking a gremlin.

    PS: We are using Chirpy's MS setup with ClamAV and the MS/MW frontend. All has worked perfectly until last nights update.
     
  5. datah

    datah Member

    Joined:
    Apr 4, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    yeah :( please help I do love MailScanner!
     
  6. datah

    datah Member

    Joined:
    Apr 4, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    What is the MS/MW frontend?

    If its useful, how can I get a how to on how to install it? Thanks
     
  7. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Chirpy's company has a full frontend to MailScanner that I HIGHLY recommend. It also comes with MailWatch to give you statistics of the spam mails processed by your servers.
     
  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
    The problem (and we're seeing a lot of them) has nothing to do with MailScanner per se. It's because you're not excluding perl updates from your OS providers update utility. There was a recent update to RH based OS's with a new iteration of perl which fixes some security bugs. Most likely this has downgraded your installed version of perl (perhaps v5.8.7) to v5.8.0 which won't contain all the perl modules you need to run many things including MailScanner, cPanel and it will almost definitely break cPanel stats.

    Fix is simply:

    cd /usr/bin
    ls -la perl*


    establish which version of perl you should be using:

    cp -avf perl5.x.x perl

    Check it's correct with:

    perl -v

    Check that /usr/local/bin/perl is a symlink to /usr/bin/perl.

    Then stop and restart MailScanner, cPanel and any other daemons running through the perl interpreter.
     
  9. datah

    datah Member

    Joined:
    Apr 4, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Awesome chirpy thanks!

    Do you know how to disable OS Perl updates?

    I also wanted to know the cost of your services for the MW/MS frontend.

    Thanks!
     
  10. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    Put perl* in the exclude list of /etc/yum.conf or the up2date --configure exclude list.
     
  11. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    Priceless

    check the links in chirpy's signature. He gracefully doesn't push his own service. It's us, those who swear by him, that push it.
     
  12. murugan

    murugan Member

    Joined:
    Mar 23, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Mailwatch is not updating

    As chirpy said, i have changed perl version to 5.8.7 and now mailscanner is running, but the mailwatch is not getting updated.

    Anyone can tell me what could be be wrong ?

    Thanks,
     
  13. murugan

    murugan Member

    Joined:
    Mar 23, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    ran the below

    /scripts/buildeximconf
    /scripts/mailscannerupdate
    service exim restart

    Still having this issue.
     
  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 Mailwatch isn't being updated, do:

    ps axf | grep SQL

    If that finds MailWatch SQL then kill that process. MailScanner will automatcially start another one when it next processes an email and it ought to start working then.
     
  15. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    I am using chirpy's installed too, and now all boxes are having problems.

    mailscanner failed @ Mon Jan 2 16:53:37 2006. A restart was attempted automagicly.

    It runs for a little while then just stops with no errors in the log, so strange

    i've ran

    /usr/mscpanel/mscheck.pl

    but it does not seem to help
     
  16. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    I even tried completely removing and reinstalling and its still doing it, it just stops running with no errors

    im stumped
     
  17. murugan

    murugan Member

    Joined:
    Mar 23, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    The output is

    root@tn [~]# ps axf | grep SQL
    22100 pts/2 S 0:00 \_ grep SQL
    root@tn [~]#
     
  18. murugan

    murugan Member

    Joined:
    Mar 23, 2004
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Still Mailwatch is not updating.

    Anyone got a solution ?

    If so please update me.

    Thanks
     
  19. ntwaddel

    ntwaddel Well-Known Member

    Joined:
    Nov 3, 2003
    Messages:
    173
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Templeton, CA
    well i fixed my problem, i ran the debug and i kept getting

    Ignore errors about failing to find EOCD signature
    Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.3/File/Path.pm line 267.

    So i went to line 267

    and changed

    my $oldpwd = &Cwd::getcwd;
    $oldpwd or do {

    to

    my $oldpwd = getcwd or do {


    no problems so far
     
  20. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Those are the symptoms of the perl issue I posted about above.
     
Loading...

Share This Page