Loading...

Knowledge Base
Save up to  70% off.  Start your website today!

Default Address, Catchall

 

In cPanel, the catchall feature is referred to as "default address." Enabling the default address allows all misrouted or misaddressed emails to be sent to a particular email address rather than bouncing. Therefore, you should be careful when setting up a default address, as this can increase your possibility of becoming a victim of spam.

By default, HostGator turns off the default address for all Shared and Reseller accounts due to Spam and Security concerns and cannot re-enable it due to these concerns. Although it is not advised, VPS and Dedicated server customers can use this feature and follow the guide below; it is not recommended.

If you see the following message in cPanel when you click on the Default Address icon, this is because you are on either a Shared or Reseller hosting plan:

The Default EMail/CatchAll feature has been turned off by default due to Spam and Security concerns. Please contact support via phone or chat if you need assistance with creating mail forwards (aliases) as an alternative.

An alternative for customers on Shared and Reseller hosting is to set up email forwarding. For more information, refer to our guide on How to Create/Delete an Email Forwarder in cPanel.


How to Set Up a Catchall Email

For VPS and Dedicated Server customers, once activated, you can set up a catchall email address by doing the following:

  1. Log in to WHM.
  2. Navigate to the List Accounts section. The quickest way is by typing the keyword on the Search box on the left-side panel.

    HostGator - WHM List Accounts

    Alternatively, you can use the Search box at the top.

    HostGator - WHM List Accounts

  3. Select List Accounts.
    You can also manually locate and expand the Account Information section on the left-side panel, then click List Account.

    HostGator - WHM List Account

  4. Select the cPanel account that you wish to modify.

    HostGator - WHM Select cPanel Account

  5. In the Email section, click the Default Address icon.

    Defaul Email Icon

  6. In the dropdown menu below Send all unrouted emails for the following domain, select the domain name you would like to set up the catchall. You will be given different options to choose from, determining how to handle the misrouted or misaddressed email sent to your domain.

    Catchall email setup

    • Discard with error to sender (at SMTP time): Choose this option if you wish for the emails to bounce back to the sender with a specified error message. You may choose the failure message given in the bounceback by filling out the Failure Message box.
    • Forward to email address: This option is the most commonly used. This option will forward all misrouted or misaddressed emails to the specified email address. Please be aware that by having all misrouted emails go to an email box, you might receive many unwanted emails when your inbox becomes full.
  7. Click the Advanced Options link to see the additional options you may choose for your default address.

    Catchall email advanced option

    • Forward to your system account option will forward mail to the system account.
    • Discard option will be used if you do not wish for a bounceback message to be sent to the misrouted email sender.
    • Pipe to a program option will send the email to a script of your choice. When piping to a program, you should enter a path relative to your home directory. If the script requires an interpreter such as Perl or PHP, you should omit the /usr/bin/perl or /usr/bin/php portion. Ensure that your script is executable and has the appropriate hashbang at the top of the script. If you do not know how to add the hashbang, make sure to name your script file with the correct extension, and you will be prompted to have the hashbang added automatically.
  8. Click Change to complete the setup of the catchall address.
Note: Emails count towards a customer's inode limits, so that an overstuffed email box can result in account suspension. We recommend creating an email forwarder as an alternative.

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...