Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Jan 2012, 08:25 AM   #1
Advanced Warrior
War Room Member
 
Join Date: 2007
Location: London. UK.
Posts: 602
Thanks: 100
Thanked 172 Times in 132 Posts
Default
Looking for script to empty online Mailboxes
Share on: 
fb share twitter share gplus share more share

Hello Folks,

I'm looking for a script to empty the mailboxes I create for domains with cPanel, so I don't have to go in and delete manually when the boxes are full.

I've searched on Google periodically for several months without success.

Can anyone point me in the direction of such a script, either for sale or free?


Myles
Myles Sinclair is offline  
Unread 24th Jan 2012, 09:45 AM   #2
HyperActive Warrior
 
kokopelli's Avatar
 
Join Date: 2010
Posts: 413
Thanks: 8
Thanked 104 Times in 90 Posts
Default
Re: Looking for script to empty online Mailboxes
Share on: 
fb share twitter share gplus share more share

Don't know about an "outside script", but if you have your own server and run cPanel WHM, you can install ConfigServer Mail Manage, which will allow you to view all mail accounts and their quota usage, and empty any mailboxes you want. You still have to do it manually, but at least you only have to login once, and all the information is conveniently in one place.

I also have their free ConfigServer Mail Queues and ConfigServer Security & Firewall products installed, highly recommended!

Hope this helps.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kokopelli is offline  
The Following User Says Thank You to kokopelli For This Useful Post:
Unread 24th Jan 2012, 10:57 AM   #3
Advanced Warrior
War Room Member
 
Join Date: 2007
Location: London. UK.
Posts: 602
Thanks: 100
Thanked 172 Times in 132 Posts
Default
Re: Looking for script to empty online Mailboxes
Share on: 
fb share twitter share gplus share more share

I'm really looking for a hands off solution. A script I can run with a cron job, so I can set it and forget it.

I have AutoResponse Plus which includes a php script that empties the catch all Mailbox. But this is written to work with the autoresponder, and won't work as a stand alone script.
Myles Sinclair is offline  
Unread 24th Jan 2012, 11:39 AM   #4
HyperActive Warrior
 
kokopelli's Avatar
 
Join Date: 2010
Posts: 413
Thanks: 8
Thanked 104 Times in 90 Posts
Default
Re: Looking for script to empty online Mailboxes
Share on: 
fb share twitter share gplus share more share

Have a look at these - might do the trick: mail scripts

There are also some solutions to delete emails over a certain age posted on the cPanel forums (e.g. how to auto delete all emails older than 2 years (cpanel)? Any scripts?), maybe you can adapt them to your needs.

Finally, from what I understand, you can also just delete a particular email folder (say, "inbox") to empty it, and it will automatically be recreated. In this way, you could probably create a script with a cron job to automatically delete all/certain inboxes (or other mail folders) ever so often. Just be sure there are no email in them that need to be retained! (See here)

If none of the above work for you, I suggest posting on the cPanel forums, someone there is sure to have a solution.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kokopelli is offline  
Unread 24th Jan 2012, 01:45 PM   #5
Advanced Warrior
War Room Member
 
Join Date: 2007
Location: London. UK.
Posts: 602
Thanks: 100
Thanked 172 Times in 132 Posts
Default
Re: Looking for script to empty online Mailboxes
Share on: 
fb share twitter share gplus share more share

Many thanks for the links. I'll take a look and hopefully I can find a solution.
Myles Sinclair is offline  
Closed Thread


Bookmarks

Tags
empty, mailboxes, online, script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:34 PM.