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.

Leave a Reply

Your email address will not be published. Required fields are marked *