Configuring one Email Account to Monitor Emails Addressed to Multiple Accounts
Posted by Allura on 25 03 2019.
A Brief Introduction
If you want to use one email address to check emails, addressed to multiple accounts, this interface allows you to configure an email address to forward copies of incoming emails to another address. You can also dispose of email or send (pipe) email to a program.
Select the desired domain from the Managing menu, to manage forwarders for a specific domain on your account.
One can use the BoxTrapper Forward List feature to manage forwarders for email accounts that use the BoxTrapper feature (cPanel >> Home >> Email >> BoxTrapper).
Email Account Forwarders
The Email Account Forwarders table displays all of the email addresses that use a forwarder to digress email to another address or service.
- Enter a keyword in the Search text box and click Go, to quickly find a specific email address.
- Click on Trace in the Functions next to that email address to view the route that a forwarded email takes.
- If you choose to delete a forwarder click on Delete next to that email address and then click on Delete Forwarder to confirm.
- Both accounts will receive email if you do not delete the cPanel account for which email is forwarded.
- Create a forwarder from an address that does not have a cPanel account, if you wish to forward all incoming mail from one account to another but do not want to receive email at the first account. If the account already exists, delete it.
Perform the following steps to add a mail forwarder:
- Click on Add Forwarder.
- Enter the address for which you wish to forward incoming email, in the Address to Forward text box,
- Select the domain you wish to use from the menu.
- Select one of the following options:
- Forward to email address— Selecting this option will forward incoming email to another address. Enter the address to which you want to forward email in the text box.
- Discard and send an error to the sender (at SMTP time)— Selecting this option will discard incoming email and automatically send a failure notice to the sender. You can enter the desired failure message in the Failure Message text box.
- Clicking the Advanced Options will result in viewing the following additional options:
- Forward to a system account — If you choose to select this option it will forward incoming email to a system user. Enter the username of your choice in the text box.
- This text box only accepts the username of any user on the server.
- A public-facing email address is not available in System accounts.
- Pipe to a program— You can enter a path to the program, relative to the account’s home directory (for example, utilities/support.pl) in the text box to automatically forward incoming email to a program. If you want more information, go through the Pipe to a Program section below.
- Discard (Not Recommended) — Selecting this option will discard incoming email without a failure notice.
- Important: Using this option will ensure the sender not knowing that the delivery failed, hence we do not recommend this option.
Pipe to a Program
You have to ensure that your script implements the proper file permissions (0700). If you want to change your script’s file permissions, run the chmod 0700 myscript.phpcommand, where myscript.php represents your script’s location and file name.
If you want to parse and enter email information into a different system use the Pipe to a Program option. For example, Pipe to a Program option can be used to pipe email information to a program that enters email information into a ticket system.
- STDIN can pipe email and headers to the program.
- Variables from the $_SERVER array and variables on the command line can be accepted by Pipes.
- Memory limit issues may be caused by the language or environment that you use.
- The system will create a bounce message that contains that output, if your script produces any output, even a blank line.
Enter a path that is relative to your home directory, when you use the Pipe to a Program option. For example, enter script.pl in the Pipe to a Program text box, where user represents your username, to use the /home/user/ script.pl script.
If you choose to use PHP, ensure that you appropriately wrap your code in start and end tags.
Domain forwarders can send copies of all of a domain’s incoming email to another domain. Domain forwarders also override the default address for the forwarded domain.
The Forward All Email for a Domain table displays all of the domain forwarders for your account
Domain forwarders can only forward email when the system is unable to deliver it to an address or autoresponder. For example, if a user sends an email to the email@example.com address, the following actions might take place:
- If a firstname.lastname@example.org address or autoresponder exists, cPanel will not be able to forward the email.
- If a email@example.com address or autoresponder does not exist, cPanel will be able to forward the email.
Add Domain Forwarder
Perform the following steps to add a domain forwarder:
- Click on Add Domain Forwarder.
- Enter the domain to which you wish to forward email.
- Click on Add Domain Forwarder.
Delete a Domain Forwarder
If the user wants to remove a domain forwarder, the user must click on Delete next to the domain forwarder that you wish to remove, and then click on Delete Domain Forwarder to confirm.