Ubuntu Remove Exim4

I’ve scoured over the net on how to permanently remove the Exim4 Mail Server from the Ubuntu OS and came across with this one command that did it. The other options that include purge with it didn’t work. So I’m sticking with this one since it is what made it work and I was able to reinstall Exim4 again.

apt-get remove exim4 exim4-base exim4-config exim4-daemon-light

Then just install Exim4 again with this command.

apt-get install exim4

If you are using an account that doesn’t have root access, add the command sudo first.

Related Posts Plugin for WordPress, Blogger...


  1. If this doesn’t work – particularly if your dpkg repository is confused if you tried just typing “apt-get remove exim4” first, try something along these lines:

    $ sudo apt-get install -f
    $ sudo apt-get install exim4
    $ dpkg-reconfig exim4-config
    $ sudo apt-get remove exim4-base exim4-config exim4 exim4-daemon-heavy
    $ sudo dpkg –purge exim4-base
    $ sudo dpkg –purge exim4-config
    $ sudo dpkg –purge exim4
    $ sudo dpkg –purge exim4-daemon-heavy

    There appears to be an error in the debian package that causes failure if you try to remove the meta package, exim4. The order of removal of packages is such that the exim daemon will be stopped, but the meta package expects the daemon to still be running, so the removal fails half-way and you are left with a corrupted apt database.


Leave a Reply

Your email address will not be published. Required fields are marked *