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”