Web Hosting Talk







View Full Version : Reprocess "Catch All" Email in cPanel


jamison
01-28-2004, 05:09 PM
How do I reprocess email in the "catch all" account? I'm running cPanel.

I setup an account, but did not forward the mail to the clients exchanger server. :o Now the catch all account has 1,000+ emails.

TIA

sprintserve
01-28-2004, 08:56 PM
Unfortunately I don't think you can... once it is delivered to the mailboxes, the headers and the body will be combined, and isn't in the raw mail format. I don't think there's one way to do what you want.

chirpy
01-30-2004, 06:48 PM
Yes, you can :) as I mentioned on the SM forum. This can come in very useful:

cat /<directory of mailspool file>/your-huge-mailbox | formail -s /usr/sbin/sendmail an@other.com

an@other.com being the addy you want them forwarded to. Once you're sure that they've gone (check your maillog) you can delete the spool file.

On cPanel the spool files are usually in:
/home/<user>/mail/<catchall account>/inbox