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.

Stop MailScanner

Discussion in 'E-mail Discussions' started by dogslife, Jan 6, 2007.

  1. dogslife

    dogslife Member

    Joined:
    May 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I'm trying to troubleshoot a problem with MailScanner, and I can't stop it with:
    service MailScanner stop

    It kicks back : MailScanner: unrecognized service

    Top shows it as:
    /usr/bin/perl -I/usr/mailscanner/lib /usr/mailscanner/bin/MailScanner /usr/mailscanner/etc

    Any ideas how to shut this bad boy down ?
     
  2. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Get the PID from your top command and kill it with

    kill -9 PID

    where, of course, PID is the PID you get from your top command above and not the actual text "PID". :)
     
  3. dogslife

    dogslife Member

    Joined:
    May 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    I'm aware of how to kill processes, and it's really quite simple to kill a process from within TOP by pressing "k" and then typing the process and signal. Or you can kill all the processes owned by mailnull, which is the owner of MailScanner.

    But MailScanner just spawns a new process. I thought it ran as a service, but it does not show up on the service list?
     
    #3 dogslife, Jan 7, 2007
    Last edited: Jan 7, 2007
  4. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    It's probably chkservd restarting it, you could remove it from the being monitored so when you shut it down it doesn't respawn or you could set it up correctly as a service using chkconfig. When it was installed did someone add it as a service?
     
  5. dogslife

    dogslife Member

    Joined:
    May 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the help!

    I checked chkservd.conf and it only shows:
    cpsrvd:1
    exim:1
    eximstats:1
    ftpd:0
    httpd:1
    imap:1
    interchange:0
    mysql:1
    pop:1
    spamd:0
    syslogd:1

    No MailScanner. It was setup by a consultant that is not responding to emails, and it never ran as a service. Any other ideas?
     
  6. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Look in /etc/chkserv.d or /usr/local/cpanel/src/chkservd/chkserv.d and see if there is an entry there for mailscanner. If you don't want chkservd to restart it, remove that file. I would move it to root or some temp directory so you can easily move it back if/when needed. That should fix your restart problem so you can do further investigation of your first problem. :)
     
  7. dogslife

    dogslife Member

    Joined:
    May 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    This is really getting strange, I don't see it in either place:
    [/etc/chkserv.d]# ls
    ./ chkservd.conf exim ftpd imap mysql spamd
    ../ cpsrvd eximstats httpd interchange pop syslogd

    [/usr/local/cpanel/src/chkservd/chkserv.d]# ls
    ./ antirelayd cpsrvd exim ftpd imap melange named postgresql syslogd
    ../ clamd entropychat eximstats httpd interchange mysql pop spamd tomcat


    What else would you suggest?
     
  8. dogslife

    dogslife Member

    Joined:
    May 29, 2003
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    Turns out it runs as a cron. I edited the crontab, and moved on from there.

    Thanks for hanging in there and helping me out.

    :)
     
  9. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    That would've been my last guess. :) Glad you got it solved!
     
Loading...

Share This Page