- Click on cPanel interface.
- Click the Default Address.
- Click on Advanced Options
- Select Pipe to a Program
- Enter the script name
- Click on Change
- You will get (cPanel will forward all unrouted email for “cpaneltutorial.com” to “|/home/tutorial/script.php”.)