Portal Home > Knowledgebase > E-Mail > Forwarders > Add Mail Forwarder


Add Mail Forwarder




To add mail forwarder:

  1. Click Add Forwarder
  2. After Address to Forward, type the address you wish to forward.  Make sure to select domain correctly from drop-down menu.
  3. Select 1 from 5 choices:

    Basic Choices:

    • To forward mail, click Forward to Email Address and type email address which should be forward.
    • To delete or ignore incoming message and automatically send failure message to the sender, click Discard with Error to Sender.

    Advance Choices:

      • To forward mail to system user, click Forward to a System Account and type proper username.
      • Note about system user: this section will accept username from each user in server.  User may check this account using login shell, or by using POP3/IMAP, using credential authentication which used to access cPanel interface or prompt shell.
      • Important: This account has no public-facing email address.
        • To forward message to the program automatically, decide the path to the program (example: /home/$utility) in pipe for Program.
        • To ignore incoming message without sending failure message click Discard (not recommended).

    Important: This choice is not recommended, because the sender will not realize that the sending was failed.

  4. Click Add Forwarder.

To see the route of taking the forwarded message, select Trace in forwarded addresses list.  This allows you to, as an example, to find the mail routing mistakes.

Important: if you want to forward mail to other account without receiving any mail in cPanel account, you only need to create forwarder from the address which has no proper account in cPanel.  If the account has been there, you can delete it in cPanel.  After that, all emails will be forwarded to the configured destination using Forwarders feature.

If you are not delete the cPanel account, the mail will be forwarded and both account will receive the email.

Using Pipe for Program Selection:

If you select the option to pipe incoming messages into a program, make sure that your script is using permission (755).  To change the permission script:

  • chmod 755 myscript.php where the myscript.php are the file’s name an your script location.

You need to sure that you use right hashbang.

  • #!/usr/bin/php –q – for PHP
  • #!/usr/bin/perl – For Perl.


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Add Domain Forwarder (Views: 926)
Forwarders (Views: 863)
Delete Mail Forwarder (Views: 959)