Skip to content
Back to Blog
Hosting Support9 min read

Setting Up Email Forwarding in cPanel: A Complete Guide

Learn how to create email forwarders, configure catch-all addresses, and prevent forwarding loops in cPanel. Practical steps for managing email routing without leaving messages undelivered.

Written by Abdul AbrorTechnical Hosting Support Engineer
Setting Up Email Forwarding in cPanel: A Complete Guide
On this page

Email forwarding lets you automatically redirect messages from one address to another without creating a full mailbox. In cPanel, forwarders are a lightweight way to route mail to external addresses, consolidate multiple addresses into one inbox, or handle departmental aliases. This guide walks through creating individual forwarders, configuring catch-all addresses, and preventing the forwarding loops that can silently drop your mail.

Understanding Email Forwarders in cPanel

A forwarder is a rule that tells the mail server to redirect incoming messages for a specific address to one or more destinations. Unlike a full email account, a forwarder does not store messages on the server. When mail arrives for the forwarding address, the server immediately relays it to the target address and discards the original.

cPanel supports three types of forwarding:

  • Individual forwarders: redirect a specific address like [email protected] to [email protected]
  • Domain forwarders: redirect all mail for an entire domain to another domain
  • Catch-all forwarders: handle any address that does not match an existing mailbox or forwarder

Forwarding is handled by the mail transfer agent (usually Exim on cPanel servers) based on rules stored in the account's mail configuration. These rules are processed before local delivery, so a forwarder takes precedence over a mailbox with the same name.

Creating an Individual Email Forwarder

Individual forwarders are the most common type. They map a single source address to one or more destinations.

Step-by-step setup

  1. Log into cPanel and navigate to Email > Forwarders
  2. Click Add Forwarder
  3. In the Address to Forward field, enter the local part of the email address (the part before the @)
  4. Select the domain from the dropdown if you manage multiple domains
  5. In the Forward to Email Address field, enter the complete destination address
  6. Click Add Forwarder

The forwarder is active immediately. No DNS changes or propagation wait is required because forwarding happens entirely within the mail server's local configuration.

Forwarding to multiple addresses

You can forward one address to several destinations. After creating the initial forwarder, click Add Forwarder again and use the same source address with a different destination. cPanel will append the new target to the existing rule.

Alternatively, use the Advanced Options during forwarder creation:

  1. Select Forward to Email Address
  2. Enter the first destination
  3. Click Advanced Options
  4. Choose Pipe to a Program or add additional addresses separated by commas in some cPanel versions (interface varies)

In most cPanel versions, you will create separate forwarder entries for each destination. The mail server will send a copy to each target.

Forwarding and local delivery

By default, a forwarder does not keep a copy of the message on the server. If you want to forward mail but also deliver it to a local mailbox:

  1. Create the mailbox first in Email Accounts
  2. Create a forwarder with the same address
  3. In the forwarder destination, include both the external address and the local address: [email protected], [email protected]

Some cPanel interfaces offer a checkbox like "Forward to the system account as well" during forwarder creation. If available, enable it to store a copy locally.

Configuring a Catch-All Address

A catch-all (or default address) captures mail sent to any address at your domain that does not match an existing mailbox, forwarder, or alias. This prevents mail to typos or old addresses from bouncing.

When to use a catch-all

Catch-alls are useful when:

  • You want to ensure no legitimate mail is lost due to addressing errors
  • You run a small organization and want one person to triage all mail
  • You are migrating from another system and expect mail to old addresses

Catch-alls also attract spam. Spammers use dictionary attacks to guess addresses at your domain. Every random address will be delivered to the catch-all mailbox, which can quickly become unmanageable.

Setting up the default address

  1. In cPanel, go to Email > Default Address
  2. Select the domain from the dropdown
  3. Choose one of the forwarding options: - Forward to Email Address: send all unmatched mail to a specific mailbox - Discard: silently delete unmatched mail (generates a failure notice to sender) - Fail: reject unmatched mail at SMTP time (sender receives a bounce)
  4. If forwarding, enter the destination address
  5. Click Change

The Fail option is the most spam-resistant. Unmatched addresses are rejected during the SMTP conversation, and the sending server receives an immediate error. This prevents backscatter and keeps your mailbox clean.

Best practice for catch-alls

If you need a catch-all, forward it to a dedicated mailbox or support queue rather than your primary inbox. Review it periodically for legitimate contacts, then add proper forwarders or mailboxes for those addresses. Once you have covered the common cases, switch the default address to Fail to stop the spam.

Avoiding Email Forwarding Loops

A forwarding loop occurs when mail is forwarded in a cycle, causing the message to bounce between servers until a hop limit is reached. Loops are one of the most common reasons forwarded mail silently disappears.

How loops happen

Direct loop: Address A forwards to address B, and B forwards back to A.

[email protected] → [email protected]
[email protected] → [email protected]

When a message arrives at [email protected], it is forwarded to [email protected]. The support forwarder sends it back to sales, and the cycle repeats until the mail server detects the loop and discards the message.

External loop: Address A forwards to an external address B, which then forwards back to A.

[email protected] → [email protected]
[email protected] (Gmail filter) → [email protected]

This is harder to spot because the loop crosses mail systems. Gmail's filter forwards the message back, and your cPanel server forwards it again, creating an infinite relay.

Multi-hop loop: A forwards to B, B forwards to C, and C forwards back to A.

These are rare but possible in organizations with complex forwarding chains.

Detecting loops

Mail servers limit the number of hops a message can take to prevent infinite loops. Exim typically allows 10-50 hops depending on configuration. When the limit is reached, the message is bounced or discarded.

Signs of a forwarding loop:

  • Messages never arrive at the intended recipient
  • Bounce messages citing "Too many hops" or "Mail loop detected"
  • Mail log entries showing the same message being processed repeatedly
  • No delivery confirmation and no bounce (the loop exhausted the hop limit and the message was silently dropped)

To check the mail log in cPanel:

  1. Go to Email > Track Delivery
  2. Enter the recipient address and time range
  3. Click Show Delivery Report
  4. Look for repeated entries with the same message ID showing multiple forwarding actions

You can also SSH into the server and search the Exim mail log:

grep 'message-id-here' /var/log/exim_mainlog

Repeated forwarding lines with incrementing hop counts indicate a loop.

Preventing loops

Map your forwarding chain: Before creating a forwarder, trace where the destination address sends its mail. If the destination forwards to another address, follow that chain until you reach a mailbox that stores mail locally.

Avoid circular references: Never forward an address back to itself or to another address that forwards to the original. This includes external services. If you forward to Gmail and use a Gmail filter, ensure the filter does not send mail back to your domain.

Use direct destinations: Forward to a final mailbox rather than another forwarder. Instead of:

[email protected] → [email protected] → [email protected]

Use:

[email protected] → [email protected]
[email protected] → [email protected]

Both addresses forward directly to the final destination, eliminating the intermediate hop.

Check external filters: If you forward to Gmail, Outlook, or another service, log into that service and review any filters or forwarding rules. Disable any that send mail back to your domain.

Test after changes: After creating or modifying a forwarder, send a test message and confirm it arrives at the destination. Check the full message headers for the delivery path. Each hop adds a Received: header. If you see your domain repeated multiple times, you have a loop.

Breaking an existing loop

  1. Identify the addresses involved by reviewing bounce messages or the mail log
  2. Log into cPanel and go to Email > Forwarders
  3. Delete one forwarder in the loop to break the cycle
  4. Recreate the forwarders with corrected destinations
  5. Send a test message to confirm delivery

If the loop involves an external service, log into that service and remove the filter or forwarding rule that sends mail back to your domain.

Managing Forwarders at Scale

For domains with many forwarders, manual management through the cPanel interface becomes inefficient. A few strategies help:

Document your forwarding map: Maintain a spreadsheet or text file listing each forwarder, its destination, and its purpose. Update it whenever you add or remove a forwarder. This makes it easier to spot potential loops and remember why a forwarder exists.

Use consistent naming: If you forward department addresses to individuals, use a naming pattern like [email protected] → [email protected]. This makes the relationship clear.

Audit regularly: Every few months, review your forwarder list and remove obsolete entries. Old forwarders can become security risks if they point to external addresses you no longer control.

Consider email aliases: If you need multiple addresses to deliver to the same local mailbox, cPanel's Aliases feature may be more appropriate than forwarders. Aliases do not relay mail externally; they simply deliver to the local account under multiple names.

Troubleshooting Forwarding Issues

Forwarded mail is not arriving

  1. Check the forwarder is active: In Email > Forwarders, confirm the entry exists and the destination address is correct
  2. Verify the destination mailbox: Send a test message directly to the destination address (bypassing the forwarder) to confirm it is working
  3. Review SPF records: The destination server may reject forwarded mail if your domain's SPF record does not include the forwarding server. Forwarding breaks SPF because the message comes from your server with the original sender's envelope address
  4. Check destination spam filters: Forwarded mail often triggers spam filters. Log into the destination mailbox and check the spam folder
  5. Examine the mail log: Use Track Delivery or check /var/log/exim_mainlog for errors

Forwarded mail is marked as spam

Forwarding inherently causes SPF failures. The message originates from a third party, your server forwards it, and the destination server sees your server sending mail with a Return-Path from a domain that did not authorize your server.

To reduce spam tagging:

  • Use SRS (Sender Rewriting Scheme) if your server supports it. SRS rewrites the envelope sender to your domain, preventing SPF failures. Many cPanel servers enable SRS by default
  • Ask the destination to whitelist your forwarding server's IP
  • If you control the destination server, adjust its spam scoring to be more lenient for mail from your forwarding server

Forwarder delivers some messages but not others

This usually indicates the destination server is selectively rejecting mail based on content, sender reputation, or SPF/DKIM checks. Use Track Delivery to view the SMTP conversation and rejection reason.

Conclusion

Email forwarding in cPanel is a straightforward tool for routing mail without the overhead of full mailboxes. Individual forwarders let you redirect specific addresses to external destinations, while catch-all addresses ensure no mail is lost to typos or old contacts. The key to reliable forwarding is mapping your routing chain before you create rules, testing each forwarder after setup, and auditing regularly to remove loops and obsolete entries. With proper planning, forwarding keeps your mail flowing smoothly without surprise delivery failures.

FAQ

Can I forward to multiple domains?

Yes. When creating a forwarder, you can specify destinations at different domains. For example, [email protected] can forward to both [email protected] and [email protected]. cPanel will send a copy of each message to both addresses.

Does forwarding affect DKIM signatures?

Yes. DKIM signatures often break during forwarding because forwarding can modify the message (adding headers, changing line endings). When the destination server verifies the signature, the hash no longer matches and DKIM fails. This is a known limitation of email forwarding. Some servers use ARC (Authenticated Received Chain) to preserve authentication across forwarding hops, but adoption is not universal.

Can I forward mail and keep a copy locally?

Yes. Include the local mailbox address as one of the forwarding destinations. For example, if [email protected] should forward to [email protected] but also store a copy locally, create a mailbox for [email protected] and then create a forwarder that sends to both [email protected] and [email protected].

How do I remove a forwarder?

In Email > Forwarders, find the forwarder in the list and click Delete. Deletion is immediate. Any mail arriving after deletion will be delivered locally if a mailbox exists, or bounced if no mailbox exists and no catch-all is configured.

Will forwarding work if the destination mailbox is full?

No. If the destination mailbox is over quota, the destination server will reject the forwarded message with a "Mailbox full" error. The sending server will receive a bounce. Regularly check the destination mailbox and increase quota or archive old messages.

Can I use wildcards in forwarders?

No. cPanel forwarders require exact addresses. For wildcard behavior, use a catch-all address. The catch-all will forward all unmatched addresses, but you cannot create a forwarder like *@yourdomain.com that matches everything.