mail scripts Here you will find scripts to do various things with the mail system. I currently have 1 script to clean the mail queue by removing any emails that contain a search term you specify. The script is now available in 2 types, WHM manual cleaning and cron job auto cleaning. Scroll down the page or use these links to go to the one you want.
- WHM Clean Mail Queue script be sure to upload scripts in ascii mode Clean Mail Queue script
Script to clean mail queue from WHM: addon_PWScleanmailqueue V2.1 This script allows you to clean up your mail queue from WHM. Save the script file to your WHM's cgi directory, which should be at /usr/local/cpanel/whostmgr/docroot/cgi. Rename the file to addon_PWScleanmailqueue.cgi and make it executable. Set a couple variables in the script, and it will automatically be in your WHM theme. "Scripts Club" members know where to find the script. Cron job Clean Mail Queue script
Script to clean mail queue automatically from a cron job: PWSautocleanmailqueue V1.5 This script allows you to clean up your mail queue automatically with a cron job. Save the following files to any directory on your server. Rename the first one to PWSautocleanmailqueue.pl and make it executable. Set a couple variables in the script and your search terms in the data file, then set the script to run as a cron job. This is explained, and an example given, in the script and data file.
Auto Clean Mail Queue script V1.5 - rename to PWSautocleanmailqueue.pl
Scripts Club |