Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    May 2003
    Posts
    18

    Default Stop MailScanner

    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. #2
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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".
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  3. #3
    Member
    Join Date
    May 2003
    Posts
    18

    Default

    Quote Originally Posted by webtiva View Post
    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".
    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?
    Last edited by dogslife; 01-07-2007 at 11:47 AM.

  4. #4
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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?
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  5. #5
    Member
    Join Date
    May 2003
    Posts
    18

    Default

    Quote Originally Posted by webtiva View Post
    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?
    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. #6
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    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.
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

  7. #7
    Member
    Join Date
    May 2003
    Posts
    18

    Default

    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. #8
    Member
    Join Date
    May 2003
    Posts
    18

    Default

    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. #9
    Member serversphere's Avatar
    Join Date
    Jan 2004
    Posts
    658

    Default

    Quote Originally Posted by dogslife View Post
    Turns out it runs as a cron
    That would've been my last guess. Glad you got it solved!
    Darren Benfer | SS-Darren | AIM: serversphere
    www.serversphere.com
    Dedicated Server Solutions Have Come Full Circle

Similar Threads & Tags
Similar threads

  1. MailScanner stop (not in a minute running)
    By burachat in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 12-10-2004, 08:01 AM
  2. Help - stop / disable mailscanner
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2004, 03:59 PM
  3. Stop Mailscanner Warning Attachment
    By equens in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-08-2004, 12:05 PM
  4. stop mailscanner sending notice to sender?
    By torwill in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-29-2004, 01:17 AM
  5. To stop the mailscanner spam
    By carluk in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-03-2003, 06:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube