Softaculous


Topic : Webuzo & Squirrelmail


Posted By: who8mypnuts on August 7, 2017, 5:58 pm
I'm having issues with Squirrelmail. I can't access the Inbox. I've had issues with this in the past of it loading very slowly even though my server runs everything else fast. I've been trying to troubleshoot on my own, but can't really locate anything.

The biggest thing I want to do is get in and delete all of the emails. I've been searching for how to do so from the command line but have come up empty.

I've attached a screenshot of what I see when I click inbox. It doesn't matter if I change the amount of messages shown from something big like 100 on a page to something small like 3 per page. It's the same in every case.

Any help or advise would be greatly appreciated. If there's a better email system within webuzo, I'm willing to check that out as I simply have gmail fetch the mail from these accounts, I never actually use squirrellmail except to delete out the emails from the server.

Posted By: nikhil89 on August 8, 2017, 11:27 am | Post: 1
Hi,

There is no such command to delete all the emails via command line. But for your information all the emails are saved in:
For all read emails:
Quote
/var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/


So you can use the following command to delete emails for a email ID using folllowing command:
Code
rm -rf /var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/*




For Eg: Say your email id is admin@admin.com than your email directory shall be:
Quote
/var/local/vmail/admin.com/admin/Maildir/cur/


and to delete all the emails for the above user you can use the following command:
Code
rm -rf /var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/*


Edited by nikhil89 : August 8, 2017, 11:27 am

Posted By: who8mypnuts on August 8, 2017, 11:50 am | Post: 2
Quote From : nikhil89 August 8, 2017, 11:27 am
Hi,

There is no such command to delete all the emails via command line. But for your information all the emails are saved in:
For all read emails:
Quote
/var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/


So you can use the following command to delete emails for a email ID using folllowing command:
Code
rm -rf /var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/*




For Eg: Say your email id is admin@admin.com than your email directory shall be:
Quote
/var/local/vmail/admin.com/admin/Maildir/cur/


and to delete all the emails for the above user you can use the following command:
Code
rm -rf /var/local/vmail/{DOMAIN_NAME}/{USERNAME}/Maildir/cur/*


Thank you so much! This works perfectly. I was able to go in and remove all the read mail, grab the new ones from the server and access the inbox again. I truly appreciate your help!

Posted By: nikhil89 on August 9, 2017, 7:14 am | Post: 3
Hi,

Thank you for your kind words. I am glad to be able to help you.

Please let us know if you need any further information. I will be happy to help you.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.