Vimzaa Knowledgebase
  • Getting Started
  • Virtual Private Servers
    • What is Virtual Private Server
    • Getting Started With Linux
      • An Introduction to the Linux Terminal
      • Basic Linux Navigation and File Management
      • An Introduction to Linux Permissions
      • An Introduction to Linux I/O Redirection
      • Linux Permissions Basics and How to Use Umask on a VPS
    • Connect with SSH
      • How to Add SSH Keys to VPS
      • SSH Essentials: Working with SSH Servers, Clients, and Keys
    • How To Edit the Sudoers File on Ubuntu and CentOS
    • Introduction to Nginx and LEMP on Ubuntu
      • Initial Server Setup with Ubuntu
      • Installing LEMP Stack on Ubuntu 14.04
      • Installing LEMP Stack on Ubuntu 16.04
    • Anti-Spam Best Practices
  • cPanel Hosting
    • Cloudflare
    • cPanel - Advanced
      • How to add and manage cron jobs / scheduled tasks in cPanel
      • How to track DNS using cPanel
      • How to create custom ‘error pages’ in cPanel
      • How to flush your local machines DNS Cache
      • How to use the Google Public DNS for faster DNS lookups
      • How to check if your domain has ‘propagated’ following DNS changes
      • Install Wildcard SSL Certificates using LetsEncrypt with cPanel
      • Correct SPF Records
      • Check processes or users with high iowait (99.99%) from Cloudlinux Logs
      • How to tune MySQL on a cPanel server with MySQLTuner
      • Clear disk space on cPanel Server by removing backups, trash etc
      • Add monitoring script to server for monitoring top, iostat etc
      • Testing your site before ‘go-live’ by editing your hosts file
    • cPanel - Domains
      • How to use the Site Publisher in cPanel
      • Managing addon domains in cPanel
      • What is the difference between addon domains and ‘alias’ domains?
      • Managing subdomains in cPanel
      • Managing domain aliases in cPanel
      • Managing domain redirects using cPanel
      • How to use the Simple Zone Editor in cPanel for managing your DNS Records
      • How to use the Zone Editor within cPanel to manage your DNS records
      • How to redirect all domain ‘alias’ to the main domain using cPanel
      • How to enable Cloudflare on your cPanel account
      • How to check what nameservers a domain is using
      • How to create Custom Nameservers / Vanity Nameservers
      • How do I transfer a domain name to Vimzaa?
    • cPanel - Managing Databases
      • Managing a MySQL Database in cPanel with phpMyAdmin
      • Manage MySQL Database in cPanel
      • Simplified database creation with the cPanel MySQL Wizard
      • Managing MySQL databases remotely using ‘Remote MySQL’ in cPanel
    • cPanel - Managing Email Accounts
      • Managing email accounts with cPanel
      • How to create and manage email forwarders using cPanel
      • Managing email routing with cPanel
      • Change Your E-Mail Account Password
      • Improving mail deliverability (SPF & DKIM)
    • cPanel - Managing Files
    • cPanel - Metrics
    • cPanel - Software and Applications
    • cPanel - Security
    • SiteBuilder Pro
    • Enable or disable PHP modules
    • How can I migrate my cPanels to Vimzaa Website Hosting?
    • SSH Access to cPanel Servers
    • How do I add another domain to my Hosting Account?
    • How do I access WHM (Web Host Manager)?
  • Plesk Hosting
    • An Introduction to Plesk
    • Getting Started with Plesk
      • How to login to Plesk for the first time
      • The Plesk User Interface Explained
      • Understanding Subscriptions in Plesk
      • How to upload content with Plesk
      • How to manage mailboxes / mail accounts with Plesk
      • Managing Web ApplicationsManaging Web Applications
    • Plesk Tutorials
      • A basic getting started guide to creating your first site with Plesk
      • How to manage DNS and nameservers using Plesk
    • Plesk Funtionality - Explained
      • Managing your User Account in Plesk
      • Managing your Web Hosting with Plesk
  • Game Servers
    • Setup Teamspeak 3 Server on Linux
    • Installing SteamCMD for Steam Game Servers
  • SSL Certificates
  • Domains
    • Can I register or transfer my domain to Vimzaa
    • Can I buy a domain name together with a web hosting plan
    • Default nameservers for shared webhosting
Powered by GitBook
On this page
  • Overview
  • Email Account Forwarders
  • Add Forwarder
  • Pipe to a Program
  • Domain forwarders
  • Add Domain Forwarder
  • Delete a domain forwarder
  1. cPanel Hosting
  2. cPanel - Managing Email Accounts

How to create and manage email forwarders using cPanel

PreviousManaging email accounts with cPanelNextManaging email routing with cPanel

Last updated 6 years ago

Send a copy of any incoming email from one address to another. For example, forward joe@example.com to joseph@example.com so that you only have one inbox to check.

Location under cPanel
cPanel >> Home >> Email >> Forwarders

Overview

This interface allows you configure an email address to forward copies of incoming emails to another address. This is useful if, for example, you want to use one email address to check emails addressed to multiple accounts. You can also discard email or send (pipe) email to a program.

To manage forwarders for a specific domain on your account, select the desired domain from the Managing menu.

Note:To manage forwarders for email accounts that use the feature (cPanel >> Home >> Email >> BoxTrapper), use the BoxTrapper Forward List feature.

Email Account Forwarders

The Email Account Forwarders table lists all of the email addresses that use a forwarder to redirect email to another address or service.

  • To quickly find a specific email address, enter a keyword in the Search text box and click Go.

  • To view the route that a forwarded email takes, click Trace in the Functions next to that email address.

  • To delete a forwarder, click Delete next to that email address, and then click Delete Forwarder to confirm.

Important:

  • If you do not delete the cPanel account for which email is forwarded, both accounts will receive email.

  • If you wish to forward all incoming mail from one account to another but do not want to receive email at the first account, create a forwarder from an address that does not have a cPanel account. If the account already exists, delete it.

Add Forwarder

To add a mail forwarder, perform the following steps:

  1. Click Add Forwarder.

  2. In the Address to Forward text box, enter the address for which you wish to forward incoming email.

  3. Select the desired domain from the menu.

  4. Select one of the following options:

    • Forward to email address — Select this option to forward incoming email to another address. Enter the address to which you wish to forward email in the text box.

    • Discard and send an error to the sender (at SMTP time) — Select this option to discard incoming email and automatically send a failure notice to the sender. Enter the desired failure message in the Failure Message text box.

    • Click Advanced Options to view the following additional options:

      • Forward to a system account — Select this option to forward incoming email to a system user. Enter the desired username in the text box.

        Notes:

        • This text box accepts the username of any user on the server.

        • System accounts do not have a public-facing email address.

      • Discard (Not Recommended) — Select this option to discard incoming email without a failure notice.

        Important:We do not recommend this option, because the sender will not know that the delivery failed.

  5. Click Add Forwarder.

Pipe to a Program

Important: Make certain that your script uses the proper file permissions (0700). To change your script’s file permissions, run the chmod 0700 myscript.php command, where myscript.php represents your script’s location and file name.

Use the Pipe to a Program option to parse and enter email information into a different system. For example, use the Pipe to a Program option to pipe email information to a program that enters email information into a ticket system.

  • STDIN pipes email and headers to the program.

  • Pipes can accept variables from the $_SERVER array and variables on the command line.

  • The language or environment that you use may cause memory limit issues.

  • If your script produces any output, even a blank line, the system will create a bounce message that contains that output.

When you use the Pipe to a Program option, enter a path that is relative to your home directory. For example, to use the /home/user/script.pl script, enter script.pl in the Pipe to a Program text box, where user represents your username.

Domain forwarders

Domain forwarders send copies of all of a domain’s incoming email to another domain. Domain forwarders override the default address for the forwarded domain.

The Forward All Email for a Domain table lists all of the domain forwarders for your account.

Note: Domain forwarders only forward email when the system cannot deliver it to an address or autoresponder. For example, if a user sends an email to the john@example1.com address, the following actions might take place:

  • If a john@example1.com address or autoresponder exists, cPanel will not forward the email.

  • If a john@example1.com address or autoresponder does not exist, cPanel will forward the email.

Add Domain Forwarder

To add a domain forwarder, perform the following steps:

  1. Click Add Domain Forwarder.

  2. Enter the domain to which you want to forward email.

  3. Click Add Domain Forwarder.

Delete a domain forwarder

To remove a domain forwarder, click Delete next to the domain forwarder that you wish to remove, and then click Delete Domain Forwarder to confirm.

Pipe to a program — To automatically forward incoming email to a program, enter a path to the program, relative to the account’s home directory (for example, utilities/support.pl) in the text box. For more information, read the section below.

BoxTrapper
Pipe to a Program