Creating Forwarders in DirectAdmin

Forwarders in DirectAdmin allow you to redirect incoming mail from one email address to another. For example, if you want emails sent to support@yourdomain.com and sales@yourdomain.com to be forwarded to a POP3 account like customerservice@yourdomain.com, you can create forwarders for each email address.

Follow the steps below to create a forwarder:

Step 1: Access the Forwarders Menu

  1. Log in to your DirectAdmin control panel.
  2. Navigate to the E-Mail Menu.
  3. Click on the Forwarders icon.

Step 2: Create a New Forwarder

  1. Click the Create New Forwarder link at the top of the page.

  2. You will see a form where you can enter the following details:

    Note: You can forward to multiple addresses by separating the email addresses with a comma (no spaces). Example:
    email@domain1.com,email@domain2.com,email@domain3.com.

  3. Click the Create button to save the forwarder.

Step 3: Additional Forwarding Options

You can use special forwarding values for specific actions:

  • :fail: – This will return a failed message to the sender.
  • :blackhole: – This will accept the email but discard it, without sending a reply.
  • Piping Emails to a Script:
    To pipe emails to a script, use this format:
    forwardername -> "|/usr/local/bin/php /home/user/path/to/your/script.php"

Important Notes

  • Forwarders can redirect emails to multiple addresses, or even pipe them to a script.
  • Be cautious when using :fail: and :blackhole: as they can cause loss of emails if not configured correctly.
Was this answer helpful? 0 Users Found This Useful (0 Votes)