Adding multiple forwarders quickly in Cpanel/WHM

Print Friendly, PDF & Email

I often have to add several forwarders at a time to various accounts, and I thought I would just share this little tip for anyone who is doing things the hard way via the control panel.

The forwarders and default routing instructions are usually stored in a directory /etc/valiases

Each domain has a file, which contains it’s routing information, the format of the file is generally:
*: :fail: No such user here

The last line sorts out the default routing. The asterisk representing a wildcard address, the destination being :fail: and the failure message returned at SMTP time is “No such user here”.

You can add as many lines as you wish using the editor of your choice. Enjoy!

Tags: ,

One Response to “Adding multiple forwarders quickly in Cpanel/WHM”

  1. Justin Givens January 24, 2014 at 4:26 am #

    Wow!! What an awesome solutions. I’ve been searching the cpanel forums and didn’t think it could be this easy.


Leave a Reply

Bot test * Time limit is exhausted. Please reload the CAPTCHA.