Can I forward all received email to a file?
To do this, create an email forwarder in cPanel. To send messages to the file rather than to a mailbox, do not create an email address. Instead, create a forwarder with the name of the address.
When you create the forwarder, choose the pipe to a program option. Then, put in the path of the file or program to which you wish to send mail.