---
title: "Site Outbound Email Relay"
description: "Route transactional WordPress, Laravel, Drupal, Nextcloud, and PHP mail through Hosted EZ's authenticated SMTPS relay with automatic per-app configuration and test sends."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Site Outbound Email Relay

To protect sender reputation and prevent abuse, direct unauthenticated outbound SMTP from hosting nodes is blocked by default. Instead, Hosted EZ provides a **managed per-site outbound email relay** that routes your PHP or CMS application's transactional email (password resets, contact forms, order receipts, notifications) through `mail.hostedez.com:465` (SMTPS) using a dedicated per-site relay credential.

> **PHP and CMS sites only**
>
> Managed outbound email relay is available for **WordPress, Laravel, Drupal, Nextcloud, and Custom PHP** sites. **Static sites** do not run PHP or server-side mail relays—for static contact forms, submit directly to a third-party form endpoint or serverless API from the browser.

## Prerequisites

Before enabling outbound email on a site:

1. Enable a custom domain in [Hosted EZ Email](/email/mailboxes-and-webmail) and verify its `MX`, `SPF`, and `DKIM` records.
2. Create an active mailbox (for example, `noreply@example.com` or `hello@example.com`) under that domain.

## Configure Managed Outbound Email

1. **Open the site's Email tab**

   In `app.hostedez.com`, open your PHP or CMS site and select **Email**.
2. **Select a sending mailbox and From name**

   Choose an active Hosted EZ Email mailbox (`mbx_...`) as the sender address, optionally enter a display **From name** (up to 120 characters, such as `Acme Store`), and click **Save**.
3. **Send a test email**

   Enter a recipient email address in the **Send test email** form and click **Send test**. Hosted EZ executes an end-to-end test from the site's hosting node through `mail.hostedez.com:465` and reports delivery latency (`durationMs`) and status.

Hosted EZ automatically mints a dedicated per-site relay token (separate from your personal mailbox password) and wires your site's runtime so outbound mail works immediately without installing third-party SMTP plugins.

## Automatic Per-App Integration

| Site Runtime | Automatic Hosted EZ Integration |
| --- | --- |
| **WordPress** | Managed MU-plugin (`phpmailer_init`) and managed `sendmail` relay |
| **Laravel** | Managed `.env` SMTP settings (`MAIL_*`) and managed `sendmail` relay |
| **Drupal** | Managed `settings.hostedez.php` system mail configuration and managed `sendmail` relay |
| **Nextcloud** | Managed `hostedez-mail.config.php` SMTP configuration and managed `sendmail` relay |
| **Custom PHP** | `PHP mail()` managed `sendmail` relay and authenticated SMTP access |

### Relay connection parameters

| Parameter | Value |
| --- | --- |
| SMTP Host | `mail.hostedez.com` |
| SMTP Port | `465` |
| Encryption | `smtps` (Implicit SSL/TLS) |
| Direct Node SMTP | Blocked (`directSmtpBlocked: true`) |
| Test Email Rate Limit | `5` test sends per `10` minutes per site |

## Monitoring, Disabling & Mailbox Lifecycle

- **Last test result**: The site's **Email** tab records `lastTestAt`, `lastTestStatus` (`sent` or `failed`), and any `lastTestError` message for quick debugging.
- **Outbound queue**: Sent and deferred messages sent through your mailbox appear in the account-wide [Mail Queue Viewer](/email/filters-autoresponders-branding#outbound-mail-queue--deliverability-dashboard).
- **Disabling relay**: Click **Disable outbound email** on the site's **Email** tab to remove the per-site relay configuration and revoke its relay token.
- **Mailbox or domain changes**: If the linked mailbox is suspended or deleted—or if its email domain is suspended or deleted—Hosted EZ automatically disables outbound email delivery for affected sites until you link an active mailbox.

Source: https://docs.hostedez.com/email/site-outbound-email/index.mdx
