By diegodacal
Hi, recently I faced a problem that my database was down and I couldnt really start it. I researched all the possible reasons for it until I found that I was using all the 20Gb I have. Then I figured out that the folder /var/mail was taking all the space with two files only.
As I dont use email on my server, I simply deleted one of the files and I dont think its gonna be a problem. At least nothing happened yet.
This problem was caused cos some time ago I tried installing an email application (postfix and similar) and installed some of them. The problem is that I dont really remember which ones Ive installed and which ones I uninstalled. So one of them might be still installed taking allllll the space from my droplet.
My question is: Does anyone know how to list all applications I have installed or know a way to find out which application is creating these huge files (19Gb, yeah) in /var/mail?
I’m totally newbie on linux matters, so I might have done something wrong. :( Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
If you could point to a tutorial you followed, we could tell you how to undo it.
On a Debian or Ubuntu system, you can get a list of all installed packages with:
dpkg-query -l
That’s a bit overwhelming though. You can search the output using the grep command. So you might try:
dpkg-query -l | grep mail
to search for the word “mail” in the output.
Here are a few mail related packages that you can try uninstalling:
sudo apt-get remove --purge postfix sendmail dovecot exim4
Though the most likely culprit is postfix
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.