# Incoming mail data collection

### **Introduction**

This integration allows you to automatically create objects in Dastra from emails received at dedicated email boxes. Dastra provides these boxes and automates the conversion of incoming emails into objects within the Dastra application.

Five types of objects can be associated with these collection email boxes:

* Tasks
* Data Processing
* Data Subject Requests
* Contracts
* Data Breaches

### **Setting up a collection email**

To set up a collection email for any of the objects listed above, go to your workspace settings, under the Integrations tab, and select the "Incomin mail data collection" card.

<figure><img src="/files/9pMFYoYsXyyw91iMvfg4" alt=""><figcaption></figcaption></figure>

Then, choose the type of object for which you want to set up the integration by clicking on "Add Integration." Note that you can only have one collection email per object type and per workspace.

<figure><img src="/files/JYRKRDssnIWl60L1k2Ml" alt=""><figcaption></figcaption></figure>

You have the option to specify the destination organizational unit for the objects created through this collection box during the integration setup. If this field is left empty, objects will be created in the default organizational unit.

<figure><img src="/files/qBU0K1m9zZnPibQyzjbe" alt=""><figcaption></figcaption></figure>

By clicking "Create," Dastra finalizes the integration setup and provides you with the email address to use.

<figure><img src="/files/LWWbmwEvRaAkp9alTIqK" alt=""><figcaption></figcaption></figure>

### **Key Features**

* **Automatic object creation**: Each email received at an associated email box creates a corresponding object in Dastra.
* **Organizational unit configuration**: You can set a destination organizational unit during setup. If specified, the object will be created in that unit.
* **Object fields management**:
  * **Label**: The email subject is used as the name of the created object.
  * **Description**: The email body is used for the description of the created object.
  * **Attachments**: Email attachments are added to the object, subject to validation conditions.

### **Attachment Management**

Email attachments are added to the object, provided that:

* **File extensions are valid**: Only attachments with valid file extensions are retained.

Here are the autorized extensions : `7z`, `csv`, `doc`, `docx`, `eml`, `epub`, `gif`, `htm`, `html`, `jpeg`, `jpg`, `json`, `md`, `msg`, `ods`, `odg`, `odp`, `odt`, `pdf`, `png`, `ppt`, `pptx`, `rar`, `rtf`, `svg`, `txt`, `xls`, `xlsm`, `xlsx`, `zip`.

* **Images meet minimum size**: For image files (jpg, png, gif, etc.), a minimum size of 5 KB is required. This constraint helps avoid including irrelevant images such as email signatures.

### **Finding Objects Generated from a Collection Box**

Objects associated with collection boxes have a 'source' or 'collection origin' field that you can display in table views by showing the source/collection origin column.

All objects generated from a collection box are tagged with "inbound email," making it easy to identify them if needed.

### **Success Notification**

Upon successful creation of an object from an email received at the collection box, an email notification is automatically sent to the address that triggered the integration. This notification confirms that the object has been successfully created in Dastra, providing immediate assurance that the request or action has been processed.

The language of the confirmation email corresponds to the default language of the workspace where the integration is installed (Workspace settings > Default language).

***

### Automatically forwarding your existing email address to Dastra

If you already have a dedicated email address for data subject requests (e.g. `privacy@yourcompany.com`), you do not need to replace it. You can configure a **forwarding rule** in your mail server to automatically redirect incoming emails to the Dastra collection mailbox.

Requests will then arrive directly in Dastra without any manual action, while keeping your usual address for your contacts.

#### With Microsoft Exchange / Office 365

Go to the **Exchange Admin Center** > **Mail flow** > **Rules**, then click **"+ Add a rule"**.

Configure the rule as follows:

1. **Condition**: "The sender is located" > "Outside the organisation" — optionally add a subject keyword filter to only redirect relevant requests (e.g. subject contains "request" or "erasure").
2. **Action**: "Redirect the message to" > enter the Dastra collection address generated in the previous step.
3. **Mode**: Enforce.

{% hint style="info" %}
You can add subject-line filters to redirect only specific request types (erasure, access, portability…) to the corresponding Dastra collection mailbox, while keeping other messages in your usual inbox.
{% endhint %}

{% hint style="warning" %}
Make sure your rule does not create a forwarding loop if the Dastra address itself redirects emails. Use the condition "Received from outside the organisation" to prevent loops.
{% endhint %}

#### With Google Workspace (Gmail)

In the **Google Admin Console** > **Apps** > **Google Workspace** > **Gmail** > **Routing**, add an inbound routing rule with the action "Change route" and enter the Dastra collection address as the destination.


---

# 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://doc.dastra.eu/en/features/settings/data-collection-mailboxes.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.
