PDA

View Full Version : Delete mailbox default user


Alexanderonline
10-10-2005, 10:10 AM
Hi all,

Each user in Da gets an default mailbox (emailadres: username) in /var/spool/mail/username. A lot of cronmail are dropped by the system in that box, and for some customers this gets big (~200mb). I can't empty the box in DA, how can i do it with ssh?
Can i do:
echo "" > /var/spool/mail/username
?
I think it is not the best way, beceause a customer of us gets the folowing error (it was fixed a few hours later automatically i think):

ERROR: Could not complete request.
Query: SELECT "INBOX"
Reason Given: SELECT failed: Can't open INBOX (file /var/spool/mail/psycho): not in valid mailbox format


What's the solution?

Thanks a lot,

Alexander

resolveit
10-10-2005, 11:54 AM
Originally posted by Alexanderonline
echo "" > /var/spool/mail/username

What's the solution?

Thanks a lot,

Alexander

Ever thought of creating a new empty mailbox, copying it somwhere for later use and when you want to clear a mailbox you just copy the saved one over the mailbox you want empty?

Please note I've not tried this so it might not work.

Onno

jlasman
10-10-2005, 02:05 PM
A blank mailbox should be find; do you get that with your echo code? Or do you get a mailbox with double quotes in it?

We just remove the mailbox.

It will be recreated the next time it's called.

Jeff