Topic: delete user's mail that older than 3 month using cron job?

if I plan to let all users use webmail to access mail server. but I'm afraid they mail box always leave on mail server then mail server's H.D.D. will full.
Is there any wan to delete user's mail older that received day than 3 month using cron job or use command delete mail manually ?