munwin wrote:I have setup a mailbox to be BCC'd all emails coming in or going out.
Working fine, and all good so far.
What I would like to do is to delete all emails in this mailbox that are older than 30 days, on a constant basis.
If that mailbox is also on your Scalix server, you could try running this as root:
Code: Select all
omtidyu -u '(the archive mailbox user)' -Ti -i30 -B -d
or, if you use the ommaint script, add that to the "daily" section. I do something similar with omtidyallu to clean out 'Trash' folders left over from IMAP clients that don't map properly to 'Deleted Items'. This action moves the messages to Deleted Items, where they are cleaned out (for me) three days afterward.
hth
Jeff