I'm trying to configure dovecot+postfix on a new 14.04 release image in EC2. I installed mail-stack-delivery without installing postfix or dovecot separately. Now I can't figure out how to restart dovecot because /etc/init.d/dovecot seems missing. Or am I missing something? Thanks.
Ok so after going through dovecot's wiki (version 2), it seems that we can restart/reload/stop dovecot by using:
# doveadm reload - to restart/reload dovecat
# doveadm stop - to stop dovecat
For sudo users:
# sudo doveadm reload - to restart/reload dovecat
# sudo doveadm stop - to stop dovecat
You can just type
sudo doveadm to see a list of other commands you can use with doveadm too.
2Thanks for the real answer. Why did they do this for? Just break the standard to make our lives harder? lol– Zv_oDDSep 15, 2015 at 17:00
1@Zv_oDD The struggle is real haha Sep 15, 2015 at 17:15
When the old services are converted from init.d to the upstart,
service status xxxx returns service unrecognized. Instead please use
The coexistence of upstart and init.d is confusing, so in Vivid and later releases it is replaced with systemd
The current state in 14.04 is confusing and creating some issues when monitoring things as well, at least with my experience.
Thanks to @douggro for the reminder! I actually did
sudo service --status-all but dovecot wasn't on the list, and then
sudo service dovecot returns
dovecot: unrecognized service, which made me believe dovecot wasn't converted to a service yet. So I never thought of actually trying with restart.
2huh? so what's the answer here? Mar 25, 2015 at 13:26
Reviewers: While this technically does not clearly answer the question, for historical reasons it will be left here.– Thomas Ward ♦May 14, 2018 at 2:05
sudo service dovecot restartmight work.
service status dovecotshould return a