I have a couple of users with previous default emails to useraccount, since then changed but I need to delete the emails in the email accounts manually from shell.
I know this is possible from shell but I forget how to; anyone?
Thanks,
--Tone
I have a couple of users with previous default emails to useraccount, since then changed but I need to delete the emails in the email accounts manually from shell.
I know this is possible from shell but I forget how to; anyone?
Thanks,
--Tone
If you simply want to remove all the emails from their inbox, then you can:
cd /home/account/mail/domain.com/username/
or
cd /home/account/mail/
cat /dev/null > inbox
If you want to delete individual mails (which you probably don't) then you can do so with:
cd /home/account/mail/domain.com/username/
or
cd /home/account/mail/
mail -f inbox
which puts you into mail (? for help).
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Jonathan,
awesome - that did it - THANK YOU!
--Tone