How to create a cron job to remove catchall emails from building up?
I saw a really good post on it here but the guy who posted it had images to help make a cron job and since then have been deleted.
I think it's something very useful that can save time and money so I'd like to bring the topic back up.
I think it's something very useful that can save time and money so I'd like to bring the topic back up.
Comments
Note that using SER for this is really inefficient. SER needs to send a delete signal for each email individually (which adds up quite fast when you have thousands of emails in your inbox).
Without giving you any specific code we use, basically you should create a script that deletes all files older than X days in the email account's folder (make sure to do it on both "new" and "cur" folders) and run it once / day.
You can find the code to delete files in a folder that are older than X days online with minimal effort.