How to put a rule for mail forwarding in cpanel
In cPanel, you can set up a mail forwarding rule to forward emails from one email address to another. Here's a step-by-step guide:
Method 1: Using the Mail Forwarding Tool
- Log in to your cPanel account.
- Click on the "Email" section and then click on "Forwarders".
- Click on the "Add Forwarder" button.
- Enter the email address you want to forward emails from in the "Forwarded to" field.
- Enter the email address you want to forward emails to in the "Destination" field.
- Choose the forwarding method:
- "Forward with copy" will forward the email and keep a copy in the original mailbox.
- "Forward without copy" will forward the email and delete it from the original mailbox.
- Click the "Add Forwarder" button to save the rule.
Method 2: Using the.forward File
- Log in to your cPanel account.
- Click on the "File Manager" icon.
- Navigate to the public_html directory (or the directory where your email account is located).
- Create a new file called ".forward" (note the dot at the beginning).
- Open the file and add the following format:
[email protected] [email protected]
Replace "[email protected]" with the email address you want to forward emails from, and "[email protected]" with the email address you want to forward emails to.
- Save the file.
Tips and Variations
- You can add multiple forwarding rules by separating them with commas.
- You can also use wildcards in the forwarding rule, such as
*example.com
to forward all emails from example.com to another email address. - If you want to forward emails from a specific domain, you can use the
@domain.com
syntax, such as@example.com [email protected]
. - If you want to forward emails from a specific folder, you can use the
+folder
syntax, such as[email protected]+folder [email protected]
.
Remember to test your mail forwarding rule to ensure it's working correctly.