Hi,
I am running Zimbra 5 and have a question about disk space and the message store. I noticed I was getting low on disk space and looked around, most of my space is being used by /opt/zimbra/store.
I spot checked some accounts (they are used to pass info, so they all are identical mostly) and got an idea of how much each uses x total mailboxes and that number is samller then my store by a couple gigs.
I have 5.0.1 ( i think) and I noticed after install that the "e-mail message lifetime" wasn't working - found a forum that said it was a bug? and to use a script to purge my mailboxes.
I use this:
#!/bin/bash
#
#
zmprov gaa > /tmp/acccountsList.txt
for acct in `cat /tmp/acccountsList.txt` ; do
THEACCOUNT=$acct
THEDATE=$(date --date='3 days ago' +%m/%d/%y)
THEFOLDER="/Inbox"
# (before:$THEDATE)
touch /tmp/deleteOldMessagesList.txt
for i in `zmmailbox -z -m $THEACCOUNT search -l 1000 "in:$THEFOLDER (before:$THEDATE)" | grep conv | sed -e "s/^\s\s*//" | sed -e "s/\s\s*/ /g" | cut -d" " -f2`
do
if [[ $i =~ [-]{1} ]]
then
MESSAGEID=${i#-}
echo "deleteMessage $MESSAGEID" >> /tmp/deleteOldMessagesList.txt
else
echo "deleteConversation $i" >> /tmp/deleteOldMessagesList.txt
fi
done
zmmailbox -z -m $THEACCOUNT < /tmp/deleteOldMessagesList.txt >> /opt/process.log
rm -f /tmp/deleteOldMessagesList.txt
done
rm -f /tmp/acccountsList.txt
----------------------------------------------------------------------
My problem is disk space is going down and running this script clears the mail from the inboxes, but I find that the size of the store isn't going down. I am not getting any space back.
Is there some maintenance routine that has to run to purge deleted mails from the store once they are deleted from the mailbox? If so, when does it run and can i kick it off manually?
Thanks,
Bruce


LinkBack URL
About LinkBacks


