Script for automatic deletion of trash file of mail server

Hi,
I have a mail server with limited space and operating system is sun solaris 8 (sparc). I do not have provisions to increase the space for home directory.

So i have to delete files from /home/username/mail/trash which are more than 10 days old automatically.

So my script should be like it finds all the user name of mail server from /var/mail directory and then delete their trash from /home/username/mail/trash.

Can someone help me to generate a script for this?

With Regards,

Crown

find /home/username/mail/trash -type f -atime +10 -exec rm -f '{}' \;