# Reroute Email

Intercepts all outgoing emails from a Drupal site and reroutes them to a predefined configurable email address.

**Example use for rerouting emails :**

If a live production site was copied to a testing server for the purpose of development. The copied site should not send any emails to real users of the original production site.&#x20;

{% hint style="danger" %}
*Make sure to uninstall this module before deployment to production sites.*
{% endhint %}

## Configuring the Reroute Email Settings for a Development Environment

Navigate to:  **Administration \ Configuration \ Development \&#x20;*****Reroute Email***

Enter a list of email addresses to route all emails to.

On enabling the **Varbase Development** module in a development environment, a default config values will be sat to the reroute email settings.

* **Rerouting email addresses:** `dev-catchall@vardot.com`
* **Whitelisted email addresses:** `*@vardot.com`

<figure><img src="/files/Knws3jnUrM5vSfPYwNHR" alt=""><figcaption><p>Reroute Email Default Settings with Varbase Development</p></figcaption></figure>

Having an empty field with no provided values for rerouted email addresses will results on having all outgoing emails been aborted and recorded in the recent log entries, with a full dump of the email variables, which could provide an additional debugging method.

The allowed list section allows setting up lists of email address and domain name exceptions for which outgoing emails would not be rerouted.

## Configuring the Reroute Email Settings on Varbase Installation

While installing a fresh Varbase for a project. It is available to setup the rerouting email address in the **Development Tools** installation step.

Check the "Install Development Tools" check box to expend out the mini development setting.

Change the default emails for "Rerouting email addresses" and **"**&#x57;hitelisted email addresses"&#x20;

<figure><img src="/files/2na0Kpsh1pehV4VmNYSg" alt=""><figcaption><p>Configure Rerouting Emails When Installing Development Tools While Installing Varbase</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/10.1.x/developers/understanding-varbase/development-components/reroute-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
