Skip to main content

Unable to stop exim

Comments

10 comments

  • SysSachin
    Hello, Go to "Service Manager" in WHM, uncheck exim. Save your changes. Log onto SSH and stop exim using below command service exim stop Once you have disabled in Service Manager, chkservd won't restart it
    0
  • cPanelMichael
    Hello, The previous post is correct. You can disable the service in "WHM >> Service Manager" to ensure it's not automatically restarted by Chkservd. Let us know if that helps. Thanks!
    0
  • Mugoma
    The previous post is correct

    My understanding is that Chkservd checks and restarts services after 5 minutes. So, that's not the issue. Why would Chkservd start a service after a second or two and why would that not show on command prompt? If Chkservd started the service wouldn't it show status as running on the command prompt? Basically, the question is why there's contradictions between what's happening on the system and what command prompt shows.
    0
  • cPanelMichael
    . When we open webmail we can see new emails coming in. 2. WHM service status shows exim is UP 3. Process list (via top or WHM) shows exim running

    Hello, The status in "WHM >> Server Status" stems from the most recent status report from Chkservd. When stopping Exim manually, do you notice any output in /var/log/chkservd.log before Exim starts running again? Thank you.
    0
  • Mugoma
    This is still not working. I have exim disabled. On the command prompt exim status shows as stopped. But I can still see exim on the process list.
    0
  • 24x7server
    Hi, You can rename the exim restart script. Make sure you have disabled the exim in the service manager section completely. rename /etc/init.d/exim and also /scripts/restartsrv_eximd. See if that helps.
    0
  • Mugoma
    You can rename the exim restart script

    Wouldn't this interfere with normal operation of exim?
    0
  • 24x7server
    Wouldn't this interfere with normal operation of exim?

    It is a service start and stop script, so once you are done with your housekeeping, you can rename it back again.. It is only to make sure that the system monitoring does not track it and restart it when you housekeeping it.
    0
  • Mugoma
    make sure that the system monitoring does not track

    Actually there's nothing wrong with start script. Our suspicion is that there's a spammer who's invoking exim directly. That's why the process shows in process list even if service is stopped. We have tried changing permission on exim to allow allow root to execute but this seems to stops exim altogether. So, at the moment what we need ways to block exim from being directly executed.
    0
  • Mugoma
    We decided to raise support ticket as it's taking too long to get solution from forum: Support ticket: 8405145
    0

Please sign in to leave a comment.