You can configure auto deletion of email after specified time using the below script,
=--==-
/bin/find /home/<acct>/mail/*/ -type f -mtime +60 | xargs rm -f --> This one will delete all emails for the account older than 60 days.
/bin/find /home/<accct>/mail/<domain.com>/<email acct>/.spam/ -mtype f -mtime +7 | xargs rm -f --> This will delete spam mails older than 7 days
-==-
If you want to automate these tasks, add these in cron . A test example
=--=
30 2 * * * /bin/find /home/<acct>/mail/*/ -type f -mtime +60 | xargs rm -f --> This one will delete all emails for the account older than 60 days.
30 2 * * * /bin/find /home/<accct>/mail/<domain.com>/<email acct>/.spam/ -mtype f -mtime +7 | xargs rm -f --> This will delete spam mails older than 7 days
=--==-
This will process the task at the time 2.30 Am
Done
=--==-
/bin/find /home/<acct>/mail/*/ -type f -mtime +60 | xargs rm -f --> This one will delete all emails for the account older than 60 days.
/bin/find /home/<accct>/mail/<domain.com>/<email acct>/.spam/ -mtype f -mtime +7 | xargs rm -f --> This will delete spam mails older than 7 days
-==-
If you want to automate these tasks, add these in cron . A test example
=--=
30 2 * * * /bin/find /home/<acct>/mail/*/ -type f -mtime +60 | xargs rm -f --> This one will delete all emails for the account older than 60 days.
30 2 * * * /bin/find /home/<accct>/mail/<domain.com>/<email acct>/.spam/ -mtype f -mtime +7 | xargs rm -f --> This will delete spam mails older than 7 days
=--==-
This will process the task at the time 2.30 Am
Done