How to remove iRedMail?

August 17, 2013 18.8k views
I have decided to go with Zoho Mail, they offer too much features and it's for free! The problem is, I can't seem to remove iRedMail. Whenever I visit maghnatis.com/mail/ I get the database error. I downloaded clear_iredmail.sh but that did not do the job. I'm gonna remove it manually but I can't seem to figure out where it is located.
12 Answers
Delete /var/www/mail manually?

sudo rm -r /var/www/mail
There's no /mail/ directory in /var/www
Where is maghnatis.com stored?
in /var/www
But I can't see any /mail/ there
What's the output of this command?

grep -r -i iredmail /etc/apache2
/etc/apache2/conf.d/awstats.conf:# File generated by iRedMail (2013.08.16.19.45.06):

/etc/apache2/conf.d/awstats.conf:# Project: http://www.iredmail.org/
/etc/apache2/conf.d/awstats.conf:# Community: http://www.iredmail.org/forum/
/etc/apache2/conf.d/roundcubemail.conf:# File generated by iRedMail (2013.08.16.19.45.06):
/etc/apache2/conf.d/roundcubemail.conf:# Project: http://www.iredmail.org/
/etc/apache2/conf.d/roundcubemail.conf:# Community: http://www.iredmail.org/forum/
/etc/apache2/conf.d/cluebringer.conf:# File generated by iRedMail (2013.08.16.19.45.06):
/etc/apache2/conf.d/cluebringer.conf:# Project: http://www.iredmail.org/
/etc/apache2/conf.d/cluebringer.conf:# Community: http://www.iredmail.org/forum/
/etc/apache2/sites-enabled/default-ssl: SSLCertificateFile /etc/ssl/certs/iRedMail_CA.pem
/etc/apache2/sites-enabled/default-ssl: SSLCertificateKeyFile /etc/ssl/private/iRedMail.key
/etc/apache2/sites-available/default-ssl: SSLCertificateFile /etc/ssl/certs/iRedMail_CA.pem
/etc/apache2/sites-available/default-ssl: SSLCertificateKeyFile /etc/ssl/private/iRedMail.key
Delete iRedMail's generated virtualhosts:

rm /etc/apache2/conf.d/roundcubemail.conf

rm /etc/apache2/conf.d/cluebringer.conf


Restart Apache:

sudo service apache2 restart
How to remove or uninstall iRedMail, with tools and some guide.

http://www.iredmail.org/forum/topic333-iredmail-support-faq-how-to-uninstall-iredmail.html

*Attention. Please read the prompt carefully and make decision.
I seem to be having the same issue but removing both of the .conf files did not help me.
In my case, my root is being redirected to /mail/ automatically.
I tried grep -r -i iredmail /etc/apache2 which returned this :

/etc/apache2/sites-available/default-ssl: SSLCertificateFile /etc/ssl/certs/iRedMail_CA.pem
/etc/apache2/sites-available/default-ssl: SSLCertificateKeyFile /etc/ssl/private/iRedMail.key
/etc/apache2/conf.d/awstats.conf:# File generated by iRedMail (2014.02.11.19.26.42):
/etc/apache2/conf.d/awstats.conf:# Project: http://www.iredmail.org/
/etc/apache2/conf.d/awstats.conf:# Community: http://www.iredmail.org/forum/
/etc/apache2/sites-enabled/default-ssl: SSLCertificateFile /etc/ssl/certs/iRedMail_CA.pem
/etc/apache2/sites-enabled/default-ssl: SSLCertificateKeyFile /etc/ssl/private/iRedMail.key

then listing the content of /etc/apache2/conf.d/
awstats.conf charset gitweb iredadmin.conf javascript-common.conf localized-error-pages other-vhosts-access-log security

so I removed iredadmin and the awstarts conf files, restarted apache but my root is still being redirected to /mail/

am I missing anything here?
@colmliamoneill: Check /var/www/index.html—is it redirecting to /mail?
Have another answer? Share your knowledge.