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 {} \;

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.