Administration Cron

Setting up cron to remove emails from an utility email

Sometimes you need to add an email to receive alerts and other emails for you system or business. WThen after a while the email account is full of emails. One method to automate this is to set up a cron in cpanel to remove the emails. Here is an example.


bin/find /home/cpaneluser/mail/domain.name/emailuser/new -type f -exec rm {} \;