Add a Mail Forwarder
Answer
Add a Mail Forwarder
To add a mail forwarder:
1. Click Add Forwarder.
2. You can choose from 3 options:
* To forward mail, enter the address to which mail should be forwarded.
* It is also possible to discard incoming messages and automatically send a failure notice to the sender. (Incoming messages can also be discarded without an automatic response under the Advanced Options link. That option is not recommended, however, since the sender will be unaware that the delivery failed.)
* Messages can also be automatically forwarded to a program by defining a path to the program, for example /home/$utility, in the Pipe to Program field.
3. Click Add Forwarder.
To view the route a forwarded message takes, select Trace in the list of forwarded addresses. This makes it possible, for example, to locate a mail routing error.
PICK Important: If you wish to forward mail to another account without receiving mail at your cPanel account, simply create a forwarder from an address that does not have a corresponding account in cPanel. Alternatively, if the account already exists, you can delete it in cPanel. Afterward, all mail will be forwarded to the destination you have configured using the Forwarders feature.
If you do not delete the cPanel account whose mail is being forwarded, then both accounts will receive mail.
Using the Pipe to Program Option
When using the option to pipe incoming messages to a program, make sure your script uses the proper file permissions (755). To change your script's file permissions:
* chmod 755 mysrcipt.php where myscript.php is meant to stand for your script's location and file name.
You will also need to ensure that you are using the correct hash bang.
* #!/usr/bin/php -q — For PHP.
* #!/usr/bin/perl — For Perl.
Remove a Mail Forwarder
To delete a forwarder:
1. Click Delete next to the appropriate forwarded address.
2. Confirm that this forwarder should be deleted on the following page.
To add a mail forwarder:
1. Click Add Forwarder.
2. You can choose from 3 options:
* To forward mail, enter the address to which mail should be forwarded.
* It is also possible to discard incoming messages and automatically send a failure notice to the sender. (Incoming messages can also be discarded without an automatic response under the Advanced Options link. That option is not recommended, however, since the sender will be unaware that the delivery failed.)
* Messages can also be automatically forwarded to a program by defining a path to the program, for example /home/$utility, in the Pipe to Program field.
3. Click Add Forwarder.
To view the route a forwarded message takes, select Trace in the list of forwarded addresses. This makes it possible, for example, to locate a mail routing error.
PICK Important: If you wish to forward mail to another account without receiving mail at your cPanel account, simply create a forwarder from an address that does not have a corresponding account in cPanel. Alternatively, if the account already exists, you can delete it in cPanel. Afterward, all mail will be forwarded to the destination you have configured using the Forwarders feature.
If you do not delete the cPanel account whose mail is being forwarded, then both accounts will receive mail.
Using the Pipe to Program Option
When using the option to pipe incoming messages to a program, make sure your script uses the proper file permissions (755). To change your script's file permissions:
* chmod 755 mysrcipt.php where myscript.php is meant to stand for your script's location and file name.
You will also need to ensure that you are using the correct hash bang.
* #!/usr/bin/php -q — For PHP.
* #!/usr/bin/perl — For Perl.
Remove a Mail Forwarder
To delete a forwarder:
1. Click Delete next to the appropriate forwarded address.
2. Confirm that this forwarder should be deleted on the following page.










