DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

How to completely remove Dovecot from a Directadmin server

| 22:48:02 13.01.2016

It is possible to use directadmin without installing and using POP3/IMAP servers. It's Dovecot which adds support of POP3/IMAP on a Directadmin server. And here you can learn how to completely remove Dovecot from a Directadmin powered server.

First we should disable services in options.conf of CustomBuild. For this run the following commands as root:

cd /usr/local/directadmin/custombuild
./build update
./build set_service dovecot delete
./build set dovecot no
./build set dovecot_conf no
./build set roundcube no
./build set squirrelmail no

To see what programs can now be removed from your server run this:

./build list_removals

you should see at least Dovecot:

Dovecot installed, but not enabled in options.conf: './build remove_dovecot'

Rouncube and SquirrelMail webmails might be seen there as well

RoundCube webmail installed, but not enabled in options.conf: './build remove_roundcube'
SquirrelMail webmail installed, but not enabled in options.conf: './build remove_squirrelmail'

Removing Dovecot

Now we are ready to remove Dovecot. For this run the following command as root:

./build remove_dovecot

You should see an output similar to:

[root@server custombuild]# ./build remove_dovecot
Disabling dovecot in services.status
Disabled on this server
Removing /etc/init.d/dovecot...
Removing directory: /usr/share/doc/dovecot...
Removing directory: /etc/dovecot...
Removing directory: /usr/lib/dovecot...
Removing directory: /usr/libexec/dovecot...
Removing directory: /usr/include/dovecot...
Removing file: /usr/sbin/dovecot...
Removing file: /etc/dovecot.conf...

Removing RoundCube webmail

Run this

./build remove_roundcube

to remove RoundCube webmail from your server.

You will see an output similar to the following:

[root@server custombuild]# ./build remove_roundcube
Dropping database da_roundcube and database user da_roundcube...
Removing file: /var/www/html/roundcube...
Removing all roundcubemail directories from /var/www/html...
/var/www/html/roundcubemail-1.1.4
RoundCube webmail has been successfully removed.

Removing SquirrelMail webmail

Run this

./build remove_squirrelmail

to remove SquirrelMail webmail from your server.

You will see an output similar to the following:

[root@server custombuild]# ./build remove_squirrelmail
Removing file: /var/www/html/squirrelmail...
Removing all squirrelmail directories from /var/www/html...
/var/www/html/squirrelmail-1.4.22
SquirrelMail has been successfully removed.

That's it.

P.S. Updating a skin

And you will need to customize a skin to remove POP/IMAP sections from it.

How to customize one portion of a DA skin, without needing to create your own skin.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition