404ops SMTP Mail Relay
Route WordPress email through SMTP, Gmail, Outlook/Microsoft 365, Zoho Mail, SendGrid, SES, Mailgun, Postmark or Brevo, with logs and resend.
Install in
SMTP Mail Relay routes your WordPress site’s email through the mailer you choose. When logging is enabled, it records send attempts and their status.
- Nine mailers, one screen, each with a connection check and a test-send button.
- Automatic failover to a backup mailer. Mail Relay retries eligible failures through your configured backup. After a native SMTP failure, it keeps each recipient in their original To, Cc or Bcc role and retries only when it can determine that the primary did not submit the message for that recipient. SendGrid, Postmark and Zoho Mail require a To address. Check the primary and backup providers before resending. A logged SMTP result can cover several recipients, so Mail Relay asks you to confirm that check before resending a stored SMTP message.
- Gmail, Outlook and Zoho on your own OAuth client, with send-only permissions, so no relay service holds your tokens.
- Searchable email log with CSV export and retention settings. Resending requires message content to have been stored when the original attempt was logged.
- Bounce and complaint webhooks for SendGrid, Mailgun, Postmark, Amazon SES and Brevo, verified before anything is written. Configured webhooks record recognized events per recipient when they match a retained log entry.
- Deliverability check. SPF, DKIM, DMARC, MX and domain alignment for the domain you send from, an optional test send, and every result explained with its fix.
- Your AI agent can read the log. Read-only WordPress abilities (MCP-ready) for administrators, with recipients masked and no message bodies.
- Routing rules by From address, From domain, recipient domain or subject.
- Multisite network baseline. One relay configuration for every site without credentials of its own.
- Optional WordPress AI Diagnose, spam-risk checks and routing suggestions. Configure a compatible provider in Settings Connectors, then enable Mail Relay AI. Routing suggestions send aggregate counts, including sending addresses and recipient domains; they exclude subjects, message bodies and full recipient addresses.
- Import from your current SMTP plugin. Mail Relay has nine runtime drivers: SMTP, Gmail/Google Workspace, Outlook.com/Microsoft 365, Zoho Mail, SendGrid, Amazon SES, Mailgun, Postmark, and Brevo. The Import tab reads WP Mail SMTP, Easy WP SMTP, Post SMTP or FluentSMTP. Credentials are encrypted at rest.
Pro
- Bounce tracking for SMTP, Gmail, Outlook and Zoho. Returned mail and spam reports are read from a mailbox you choose, read-only, and matched to the log.
- Bounce analytics: rates by day and mailer, reasons in plain English, and the addresses to stop sending to.
- A per-recipient delivery timeline.
- A circuit breaker over failover, plus an incident log. Pro records the primary failure and opens the circuit when the threshold is reached. For API mailers, it routes eligible messages to the backup during the cooldown and probes the primary before switching back. Native SMTP sends continue through WordPress.
- Deliverability alerts by email, Slack, Discord, Microsoft Teams, Telegram or your own webhook.
- A weekly AI deliverability report using a WordPress AI connector and a network-wide log browser for multisite.
External services
These disclosures describe when Mail Relay and the separately installed Pro add-on contact external services, what they send, and which provider terms apply.
- Your mailer (the plugin’s core function). Each outgoing message (recipients, subject, body, headers, attachments, sender identity) goes to the mailer you choose: your own SMTP server; Gmail/Google Workspace (
accounts.google.com,oauth2.googleapis.com,gmail.googleapis.com); Outlook.com/Microsoft 365 (login.microsoftonline.com,graph.microsoft.com); Zoho Mail (accounts.zoho.*andmail.zoho.*for your data center); SendGrid (api.sendgrid.com); Amazon SES (email.<region>.amazonaws.com); Mailgun (api.mailgun.netorapi.eu.mailgun.net); Postmark (api.postmarkapp.com); Brevo (api.brevo.com). The connection and test-send checks call the same hosts and use the credentials or tokens you configured. - Account authorization for Gmail, Microsoft and Zoho. When you connect one of these mailers, your browser opens its authorization service with your app’s client ID, the requested permissions, the WordPress return URL and a temporary state value. To complete the connection, your site exchanges the authorization code with that provider using the app’s client ID, client secret and return URL. The plugin sends the app credentials and refresh token to the same provider when it needs a new access token. Mail API requests use the access token to authenticate.
- WordPress AI (optional). When an administrator enables Mail Relay AI and requests Diagnose, spam-risk analysis or routing suggestions, WordPress AI may contact a compatible provider configured under Settings > Connectors. Pro weekly reports require separate consent and run on their configured schedule. Provider discovery may contact services, and the provider may charge for requests.
- Amazon SNS (only with SES bounce webhooks). The plugin fetches the SNS signing certificate from
sns.<region>.amazonaws.comand visits the subscription-confirmation URL once. These HTTPS requests disclose standard network and request metadata to AWS. AWS Service Terms and Privacy apply. - Public DNS. The domain and deliverability checks perform standard SPF, DKIM, DMARC and MX lookups for the domain you check. The Pro domain-authentication monitor can perform background DNS checks after its active mailer is configured and can record a local baseline before you configure an alert destination.
- Your bounce mailbox (Pro only, and only if you set it up). The add-on connects to the IMAP server you enter (for example
imap.gmail.com) and uses TLS for authentication and mailbox access. It sends your mailbox username, password and selected folder. During scheduled polling, it also sends search criteria and message IDs assigned by the mailbox, then reads message content and dates to identify delivery reports. Polls are scheduled every 15 minutes. The connection test authenticates and opens the folder without fetching messages. The folder is opened read-only, and fetched messages are left unread if they were unread before the fetch. - 404ops licensing (separate Pro add-on). The add-on uses
licensing.404ops.comfor activation, revalidation, deactivation and update checks. Requests can include the licence key, entitlement and release identifiers, the site fingerprint (a SHA-256 hash of the normalized site address) and machine identifiers. Initial activation can also send the site host, port and path as the machine label. See the licensing service terms and licensing privacy notice. - Pro alert channels (Pro only, and only those you configure). Your own webhook URL, the Slack, Discord or Microsoft Teams webhook address you paste in, or Telegram (
api.telegram.org).
Sending a message through a mailer necessarily hands that mailer what it needs to deliver it — recipient address(es), subject, message body, headers, and any attachments, plus whichever sender identity (From name/address, Return-Path) you’ve configured. That is true of SMTP, Gmail/Google Workspace, and every API mailer alike, and is the plugin’s core function rather than an extra disclosure. Where that provider is a paid or hosted third-party service, its own terms and privacy policy govern what happens to that data once it arrives: SendGrid (Terms, Privacy), Amazon SES (AWS Service Terms, Privacy), Mailgun (Terms, Privacy), Postmark (Terms, Privacy), Brevo (Terms, Privacy), Google, for Gmail/Google Workspace sending (Terms, Privacy), Microsoft, for Outlook.com/Microsoft 365 sending (Terms, Privacy), and Zoho, for Zoho Mail sending (Terms, Privacy).
AI Diagnose (free) never sends the message body, headers, or attachments of the email it’s explaining — only that log row’s own metadata: the recipient address (masked to its first character and domain by default — “AI” tab “Mask recipients”, on by default), the subject line, the send status, which mailer and source plugin were involved, the mailer’s own error/response text, and the sending domain’s SPF/DKIM/DMARC verdicts. The pre-send spam-risk check (free) sends the subject you enter, up to the first 4,000 characters of the body you enter, and the identifiers of local heuristic findings to your configured AI provider. Treat that subject and body excerpt as content disclosed to that provider. Without an AI connection, the check uses local heuristics only and sends no AI request. AI routing suggestions (free) send less than either: aggregate counts only — per sending address and per recipient domain, per mailer, sent/bounced/failed counts, rates, and median send duration where the log records one — across about the last 30 days. No subject lines, message bodies, error text, or full recipient addresses are included; recipient domains appear only as bare domains with counts. The Pro weekly report is aggregate too: volume, failure rate, bounce categories, top failing domains, and domain-auth status across the whole reporting period, never anything tied to one message or recipient. Enable Mail Relay AI and configure a WordPress connector before requesting these actions. The scheduled weekly report requires a separate explicit acknowledgement. WordPress selects a compatible provider, which may process the data and charge for requests; review that provider’s terms and privacy policy. See 404ops AI privacy disclosures for more detail. WordPress’s built-in AI connectors include Anthropic (API Terms, Privacy), Google Gemini (API Terms, Privacy) and OpenAI (API Terms, Data Processing Addendum, API data controls). For an additional connector, consult its provider’s terms and privacy policy.
A Pro generic webhook alert retains the notice subject, detail lines, site URL and time. Native Slack, Discord, Teams and Telegram alerts contain only a fixed deliverability-alert notice directing you to Mail Relay in WordPress; subjects, provider errors, detail lines and site URLs are omitted. Existing email alerts retain their details. Where that goes to a chat service rather than your own webhook, that service’s own terms and privacy policy apply: Slack (Terms, Privacy), Discord (Terms, Privacy), Microsoft Teams (Terms, Privacy), and Telegram (Terms, Privacy).
Credits
The admin screens use two typefaces bundled with the plugin and served from its own files, never from a remote host: Space Grotesk (Copyright 2020 The Space Grotesk Project Authors) and JetBrains Mono (Copyright 2020 The JetBrains Mono Project Authors), both licensed under the SIL Open Font License, Version 1.1 (https://openfontlicense.org). Each licence text ships beside its font in vendor-prefixed/404ops/ui-kit/assets/fonts/. The shared admin interface kit (404ops/ui-kit) is a 404ops library, privately namespaced and licensed GPL-2.0-or-later like this plugin. The plugin bundles no other third-party code.
Written by Joobi from the project's own listing. See the source page
1.9.3
- Fixed the AI routing cooldown across requests on sites using database-backed transients.
- Validated new chat webhook URLs and webhook Basic Auth usernames before saving.
- Prepared email log queries and removed an unused PHPMailer SMTP include from MIME generation.
1.9.2
- Corrected local feature access, service disclosures, administrative scripts and request validation for the WordPress review.
- Preserved eligible SMTP retry recipients and supported original sender and message format headers.
- Require an administrator to review provider delivery records before resending logged SMTP mail.
- Keep installed Pro features available independently of licence checks, with maintenance entitlement controlling downloads, updates and support.
1.9.1
- Fixed: remove an unnecessary database read after legacy AI settings cleanup.
- Clarified: describe dashboard counts and optional email logging accurately.
1.9.0
- Changed: optional AI features now use the WordPress AI Client and Settings Connectors. Enable Mail Relay AI explicitly; scheduled Pro weekly reports require a separate acknowledgement. Existing AI keys are retained without being copied or used.
- Fixed: authenticate provider webhooks at the REST boundary, preserve delivery events on storage failures, and retain recoverable mailbox errors with the known older Pro companion.
- Fixed: preserve shared network relay credentials when one site opts into uninstall cleanup.
- Fixed: escape admin output at its final HTML context and defer Pro cron labels until translations are available.
- Updated: bundled draft translations and reproducible dependency packaging.
1.8.6
- Fixed: preserve delivery events in accepted provider batches, retry temporary storage failures, and recognize retries of events without timestamps.
- Improved: paginate delivery history in the email log and read-only email ability.
1.8.5
- Harden AI connection form nonce handling through the shared client patch.
1.8.4
- Added: guarded read-only administrative status interfaces.
- Added: five bundled draft language catalogs with checked WordPress loading.
- Improved: development test-session and catalog packaging checks.
1.8.3
- Changed: folder, main file and text domain renamed to match the plugin name (404ops-smtp-mail-relay).
1.8.2
- Updated the licence client (0.3.5): Pro keeps working after a licence expires.
1.8.1
- Fixed: removed dead links (updated the Zoho terms link).
1.8.0
- New: delivery events. Recognized webhook events (delivered, delayed, bounced, complained, opened, clicked) can be kept per recipient when they match a retained log entry, with the provider’s time when supplied.
- New: Brevo delivery webhooks, alongside SendGrid, Mailgun, Postmark and Amazon SES.
- New: Deliverability tab. A guided check of SPF (duplicate records, +all, the 10-lookup limit), DKIM, DMARC, MX and domain alignment, an optional test send, each result explained; plus webhook setup for each provider with its URL, verification keys stored encrypted, and the last event received.
- New: the email log as read-only WordPress abilities for MCP and Agent Gate, with masked recipients and failures explained.
- New: routing rules can match the From domain.
- New (Pro): bounce tracking for SMTP, Gmail, Outlook and Zoho from a read-only IMAP mailbox; bounce analytics; per-recipient delivery timeline.
- Fixed: a delayed message no longer reads as soft-bounced after it is delivered; SES complaints name the complainer; Postmark auto-replies are not bounces.
1.7.8
- Updated the bundled licence client to 0.3.4.
1.7.7
- Pro update packages now publish with maintenance information and one shared licence client version.
1.7.6
- Updated the licence client and refreshed wording.
1.7.5
- Admin menu labels and headings drop the 404ops prefix; Composer loader hardened for Plugin Check.
1.7.4
- Changed: Code-quality clean-up for WordPress.org review: late escaping, input sanitising and documented database access. No change to features.
1.7.3
- Changed: Bundled libraries updated; translatable strings now use this plugin’s text domain.
1.7.2
- Changed: requires WordPress 7.0 or newer (it was 6.9); tested up to WordPress 7.1.
1.7.1
- Changed: the plugin now requires WordPress 6.9 or newer and is tested up to WordPress 7.1.
1.7.0
- Fixed: the routing rule controls are now labelled for screen readers.
- Maintenance: the plugin now bundles its own prefixed copy of the 404ops UI kit, so its admin screens share one 404ops menu and stylesheet with the other 404ops plugins and each plugin can update its UI independently.
- Maintenance (Pro): uses licence client 0.3, and every Pro add-on now registers its own copy of the licence client so the newest one wins when several are active. Update all 404ops Pro add-ons together.
- Readme: adds an External services section and credits.
1.6.1
- Maintenance: AI features now use a private, namespaced copy of the AI client and the shared AI connection settings, so each 404ops plugin can update its AI code independently. If you use AI features, re-enter your AI connection once on the AI Connection screen. No other change.
1.6.0
- New: AI routing suggestions (#9) — analyze your send history and get routing proposals in plain English with the evidence printed beside them (“order emails fail 4% more on Brevo than Postmark”). Aggregated statistics only — never subjects, bodies or addresses; thin data says so instead of guessing. Every accepted rule appends through the same editor you use manually.
Older releases are listed in CHANGELOG.md.
Follow this listing's changes (Atom feed)