I've installed dovecot on my Ubuntu 14.04 but not able to get it work. Nevertheless when I used nmap to check its processes I noticed there are processes like pop3, imap, pop3s, imap3, pptp running.

I wanted to kill these processes and tried kill -9 dovecot, killall -9 dovecot, doveadm stop. But dovecot is restarted immediately after every command is executed.

How can I effectively stop dovecot service and purge the whole package from my Ubuntu? (for the 2nd part I guess I can use apt-get purge)

1 Answer 1


Try this:

sudo service dovecot stop

And to completely remove dovecot:

sudo apt-get remove dovecot-imapd
  • 1
    Worth the operations should be performed essentially in this order.
    – sjsam
    Commented Jul 31, 2016 at 15:35
  • thanks. I didn't find script dovecot under /etc/init.d, but i did manage to stop it by running sudo service dovecot stop
    – J.E.Y
    Commented Jul 31, 2016 at 16:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .