> For the complete documentation index, see [llms.txt](https://docs.unimarket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unimarket.com/documentation/general-technical/email-authentication.md).

# Email Authentication

Unimarket uses **Postmark** to manage email delivery, ensuring high security, reliable delivery rates, and professional bounce handling. To verify that emails sent by the system are authorized by your organization, Unimarket utilizes **DKIM** (DomainKeys Identified Mail) and offers a **Custom Return Path** configuration.

## Email Authentication via DKIM

DKIM is the industry standard for email authentication. It uses a digital signature to prove to the recipient's mail server that the email was indeed sent by an authorized sender and has not been altered in transit. This setup ensures that when a supplier receives a PO notification, it appears to come directly from your domain (e.g., `procurement@customerdomain.com`).

## Understanding "Mail From" vs. "From"

By default, email clients may display Unimarket emails in two different ways depending on your technical setup:

* **Standard Setup (Default)**: Unimarket sets the "MAIL FROM" header to `bounce@customer.unimarket.com`. This ensures that if an email bounces, Unimarket can track it.
  * **User Experience**: The recipient may see `example@customerdomain.com via unimarket.com`.
* **Custom Return Path (Recommended)**: This authorizes Unimarket to send emails entirely on your behalf.
  * **User Experience**: The recipient sees only `example@customerdomain.com`. The "via Unimarket" label is removed.

## Return Path Setup (White Labeling)

Configuring a custom Return Path aligns your "MAIL FROM" address with your "FROM" address. This is the best way to prevent your emails from being flagged as spam by aggressive filters.

### 1. DNS Configuration (CNAME)

You must create a **CNAME** entry in your DNS settings that points your custom bounce domain to Unimarket.

* **Target Domain**: `bounce.customerdomain.com`
* **Points to**: `unimarket.com`

### 2. Domain Alignment

The Return Path must share the same suffix as your primary email domain.

* **If your email is**: `user@customerdomain.com`
* **Your Return Path should be**: `bounce@pm.customerdomain.com` or `bounce@bounce.customerdomain.com`.

## Implementation Steps for Administrators

1. **Coordinate with IT**: Provide your IT or Network team with the CNAME requirements mentioned above.
2. **Access Settings**: Once the DNS record is live, go to **Administration > Settings > Profile**.
3. **Enter Return Path**: Locate the **Email Delivery Authentication** section and enter your Return Path address.
4. **Validate**: Click the **Validate Return Path** button. The system will check your DNS to ensure the CNAME is correctly mapped.

## Benefits of Custom Return Path

* **Professional Branding**: Removes the "via unimarket.com" tag from the sender field.
* **Improved Deliverability**: Higher "sender reputation" since the email headers are fully aligned with your brand.
* **DMARC Compliance**: Helps your organization meet strict DMARC policies by ensuring the Return Path domain matches the From domain.

{% hint style="info" %}
Email authentication (DKIM and Return Path) works alongside SPF at the DNS level. See [Simplifying SPF Maintenance](/documentation/general-technical/simplifying-spf-maintenance.md) for details on authorizing Unimarket's mail servers via SPF.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.unimarket.com/documentation/general-technical/email-authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
