How reliably stop dovecot?

PaulM

Verified User
Joined
Nov 6, 2009
Messages
5
Hi guys, I moved to google small business mail (updated MX records, so that all email which comes to my server now is redirected reliably to google by using DNS records and my server doesn't handle the emails anymore. That's all works great and perfect, but I assume I have to disable dovecot because I don't use it.
Whatever command I tried, dovecot appears again. Looks like directadmin or something else monitors the service and if it is down, directadmin starts up it again. I wouldn't like to uninstall it because may be later in a year I'll need it again, but how can I disable it?

I tried:
service dovecot stop
and it shows [OK] but in 10-20 seconds I see it again in ps aux | grep dovecot .
I also tried to use kill, but dovecot resurrects again anyway.
How can I reliably disable it so that it wouldn't start again? Thanks.
 
On CentOS do the following:

Code:
# service dovecot stop
# chkconfig dovecot off
# cd /usr/local/directadmin/data/admin/
# perl -pi -e 's/dovecot=ON/dovecot=OFF/' services.status
# service directadmin restart
 
On CentOS do the following:

Code:
# service dovecot stop
# chkconfig dovecot off
# cd /usr/local/directadmin/data/admin/
# perl -pi -e 's/dovecot=ON/dovecot=OFF/' services.status
# service directadmin restart

Very Good :eek:
 
I followed Zeiters advise but dovecot was running again suddenly.

i also did:
systemctl stop dovecot
systemctl disable dovecot

but since a couple of days dovecot is suddenly running again.

Anyone know a way to have it shut off indefinitely?
 
Last edited:
No, bind/named is installed from a OS repository, custombuild has not functionality to remove it. Though it can be removed from services list with the help of custombuild.
 
I believe if you remove the packages DirectAdmin will drop errors on actions with DNS zones.
 
Back
Top