• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How to prevent unneeded IMAP/POP3 services to start at boot

François B

New Pleskian
I'm using Plesk only as a web server (Apache + MySQL). The e-mail accounts are hosted by a third-party. I don't need IMAP/POP3 services, and would like to permanently disable them, to save memory and for security.

The scripts on the web server might still send mail, so I want to keep SMTP service.

I could manually stop the IMAP/POP3 services in Plesk UI > Tools & Settings > Services Management after each reboot, but this is not practical and I would like to automate this by simply having the services never startup after a reboot.

None of my attempts succeeded:

A) In Plesk UI > Tools & Settings > Updates and Upgrades > Add/Remove Components:
Remove Mail hosting > IMAP/POP3 servers > Courier
results in error message, telling I should remove Postfix too (SMTP server) if I want to proceed, which I don't want (as stated above, I want to keep SMTP service).

B) Executed as root:

sysv-rc-conf courier-authdaemon off
sysv-rc-conf courier-imapd off
sysv-rc-conf courier-imaps off
sysv-rc-conf courier-pop3d off
sysv-rc-conf courier-pop3s off


Running sysv-rc-conf with no arguments now shows all columns empty for courier-*, however after next reboot, IMAP and POP3 services are still launched.

Any idea to prevent IMAP/POP3 services to start ?

(My setup: Ubuntu 14.04, Plesk 12.5)
 
What about just removing Courier or Dovecot packages? For Dovecot, for instance:

# rpm -qa | grep dovecot
plesk-dovecot-imap-driver-12.5.30-cos6.build1205150826.19.i686
plesk-dovecot-pigeonhole-0.4.8-centos6.15081914.i686
plesk-dovecot-2.2.18-centos6.15081914.i686
plesk-dovecot-core-2.2.18-centos6.15081914.i686

# rpm -e plesk-dovecot-imap-driver plesk-dovecot-pigeonhole plesk-dovecot plesk-dovecot-core
 
What about just removing Courier or Dovecot packages? For Dovecot, for instance:

# rpm -qa | grep dovecot
plesk-dovecot-imap-driver-12.5.30-cos6.build1205150826.19.i686
plesk-dovecot-pigeonhole-0.4.8-centos6.15081914.i686
plesk-dovecot-2.2.18-centos6.15081914.i686
plesk-dovecot-core-2.2.18-centos6.15081914.i686

# rpm -e plesk-dovecot-imap-driver plesk-dovecot-pigeonhole plesk-dovecot plesk-dovecot-core
What's the commands for Ubuntu?
 
Back
Top