Skip to content

Instantly share code, notes, and snippets.

@almone
Created February 18, 2016 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almone/e815251cb342f70b7daf to your computer and use it in GitHub Desktop.
Save almone/e815251cb342f70b7daf to your computer and use it in GitHub Desktop.
Remove Sendmail from Ubuntu

Remove Sendmail from Ubuntu

This should help you completely uninstall Sendmail and all that comes with it.

First, stop the service (assuming it's running).

sudo /etc/init.d/sendmail stop

Uninstall sendmail and sendmail-bin

sudo apt-get remove sendmail sendmail-bin

After running that, the output said procmail was installed with Sendmail and can be uninstalled. So, I ran this command to remove procmail.

sudo apt-get remove procmail

After removing procmail, the output said sendmail-base m4 sendmail-cf and libdb4.8 were installed with procmail and can be uninstalled. So, I ran this command to remove them.

sudo apt-get remove sendmail-base m4 sendmail-cf libdb4.8

Even after all that, we still have some files on our server we didn't want. So we have to perform a purge.

sudo apt-get purge sendmail sendmail-bin

Finally, a reboot is required.

sudo reboot

After the reboot, your box should be completely rid of sendmail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment