Am Mi, 2004-10-27 um 19.23 schrieb Jeffrey L. Conley: > Is there a way to automatically delete email from mailboxed that are over a > specified number of days old? > >
if you are running linux / solaris etc. you can try this: $ find /var/MailRoot/domains/ -type f -mtime +<MAX_DAYS> | \ grep "\.<SERVERNAME>" | xargs rm -f <MAX_DAYS> = maximum days to keep <SERVERNAME> = mame of your server (e.g. if your hostname is "mail", mails are stored like "1058993653011.238449691.mail" for testing purpose you should first try liek this: $ find /var/MailRoot/domains/ -type f -mtime +<MAX_DAYS> | \ grep "\.<SERVERNAME>" | ls -al -> this shows you all files, that would be deleted if you used rm -f. good luck - and better create a backup _before_ testing! Achim > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
