How to find forwarders/autoresponders on a cPanel server

Often while troubleshooting your client's mail issues, you will be required to find out which forwarders/autoresponders they have.

On a cPanel server, this information is kept in separate files for every domain (and subdomain) in the /etc/valiases/ directory – e.g. /etc/valiases/domain123.com, /etc/valiases/homedomain.net, etc.

After logging in as root, look for the domain you're interested in by entering the following into the terminal:

root@www [~]# cd /etc/valiases/
root@www [/etc/valiases]# cat phdomain123.com
contact@plothost123.com: "|/home/phdomain123/pipe.php"
autoresponder@phdomain123.com: "|/usr/local/cpanel/bin/autorespond autoresponder@phdomain123.com /home/phdomain123/.autorespond"
postmaster@phdomain123.com: admin@phdomain123.com
*: ":fail: No such person at this address"
root@web [/etc/valiases]#

Where:

  • the first line is a file (such as a PHP script) forwarder
  • the second line is an autoresponder for the email autoresponder@phdomain123.com
  • the third line is an email address forwarder
  • the fourth line is the default action for unrouted emails. In this case, the “No such person at this address” message will be sent back.

If you don’t feel comfortable using the command line, you can use a plugin for WHM called ConfigServer Mail Manage. After the installation,

  1. Access it from WHM -> Plugins -> ConfigServer Mail Manage;
  2. Choose the domain from the list
  3. Click the Manage Mail Forwarders button.

You can also check forwarders/autoresponders by accessing the client’s cPanel account.


If you still have questions about autoresponders, contact us by opening a support ticket or by using our live chat feature.

  • Nuagerie, cPanel, Aide, Help
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

 How to empty my DNS cache

Overview Your DNS cache stores the locations (IP addresses) of web servers that contain web...

 What is cPanel?

cPanel is a control panel with which you can manage almost any element of your cPanel hosting...

 How cPanel & WHM Improved Email Hosting

cPanel and WHM have gone through some serious upgrades to their Email Hosting features...

 CURL: could not resolve host: cpanel.net

Error: curl: (6) Could not resolve host: securedownloads.cpanel.net; Unknown error Fix:...

 How can I activate my paid license after a trial?

You can do this by running this command in SSH: /usr/local/cpanel/cpkeyclt It should...