And the command means: search the folders under the mail folder, and find a file that has 4 dots in the name (*.*.*.*.*)

the -type f makes sure it only finds files, and not folders, or other weird stuff.

the -mtime +60 means make sure the files have been modified over 60 days ago

the -exec rm ‘{}’ ; means use the rm command (ie delete) on each file found ( the ‘{}’ will substitute the file name), and the ; means this is the end of the -exec part on the command.

Try this at your own risk… this has the potential to delete your whole website, so be extra careful, and don’t just blindly copy/paste what I wrote.

I tested the command by using the ls command, instead of rm… that way I could see which files would get deleted, without deleting anything!

Besides the risk of not knowing what you’re doing, the only problem with this system, is that it doesn’t seem to work if you use IMAP eg it can happen if you use smartphones/ipads/tablets/IMAP email clients… particularly if you rely on the email programs “auto-detect” system, then you probably find that the cleanup just doesn’t work.

In this case, besides some careful customer education, the only option is to use an email redirection to something like gmail , so that you use the large gmail storage, rather than the more limited hosting storage.