Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have EXIM running on a server that I am trying to decommission (but I still have stuff I need to move off).

$ sudo /etc/init.d/exim4 stop

* Stopping MTA                                                          [ OK ]
* ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size,
            mail system possibly broken

2011-02-01 19:18:37 string too large in smtp_notquit_exit()

How can I stop exim from running and accepting mail on port 25?

share|improve this question

sudo pgrep exim | xargs kill -9 # will kill all processes that contain exim string

sudo dpkg --purge exim4 # to uninstall exim4

share|improve this answer
I found I needed "sudo pgrep exim | sudo xargs kill -9" – justintime Feb 17 '11 at 15:21

Either of these should work:

sudo killall -9 exim 


sudo pkill -9 exim 

To purge, try sudo apt-get purge exim4* .

This will also remove exim4-base* exim4-config* exim4-daemon-light*

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.