Skip to content
Impulse SoftwareDOCS
Get modules

ImpulseMail

Verified for ImpulseMail 0.2.0 ·

Mail servers & edge endpoints

ImpulseMail supports both shared relay pool servers (multi-tenant hosts serving Starter and Growth plans) and dedicated mail servers (single-tenant hosts with dedicated outbound IPs for high-volume plans).

ImpulseMail Admin Infrastructure tab showing active shared and dedicated mail servers with clean regional hostnames, live Haraka engine versions and upgrade badges, health and template vintage hints, pinned Admin Proxy versions, and per-row action menus

Provider Shared pools Dedicated servers Port 25 policy
Vultr ✓ ✓ Blocked by default — open a support ticket to unblock transactional SMTP egress.
Linode (Akamai) ✓ ✓ Blocked by default — request port 25 restriction removal via support with rDNS/abuse details.
Hetzner Cloud ✓ ✓ Blocked on new accounts — request unblock in Hetzner Cloud Console → Limits after initial invoice aging.
BYO Ubuntu 24.04 server ✓ ✓ Depends on upstream network; confirm outbound TCP 25 and PTR (rDNS) support.
DigitalOcean — — Hard-blocked by provider; excluded by ImpulseMail placement guards.

When you provision a server under Infrastructure → + Provision New Server (or register an existing Ubuntu 24.04 box under + Add Existing Server):

  1. The provision wizard suggests clean sequential regional hostnames automatically (for example dfw1.mail.yourbrand.example, ewr1.mail.yourbrand.example), and optionally accepts a Custom pool vanity hostname (edge_hostname, such as us1.yourbrand.example) for Mode B deployments. Cloud-init bootstraps Haraka (3.3.1 or your pinned release), the loopback HTTP send gateway (127.0.0.1:9101), nginx TLS termination, and the scoped Admin Proxy.
  2. ImpulseMail publishes the box’s forward A/AAAA records (plus its gateway and optional vanity hostname when inside your managed zone) in your configured DNS provider (Cloudflare, AWS Route 53, PowerDNS, Bunny DNS, DigitalOcean DNS, or Hetzner DNS) from WHMCS and requests a Let’s Encrypt certificate on the box via HTTP-01 (DNS API credentials never touch mail boxes).
  3. On first contact, WHMCS captures the box’s self-signed Admin Proxy certificate SPKI SHA-256 pin over TLS (:9098). Once verified, the box retires plaintext :9099 permanently and accepts only pinned-TLS, per-server Bearer requests from your WHMCS IP addresses.
  4. Tenant routes enforce a strict X-Impulse-Service-Id scope header matching the tenant UID (t_<service_id>), and credentials use an O(1) .cred-index.json lookup index for fast SMTP and HTTP auth under load.
  5. Every Admin Proxy health check persists both admin_proxy_version and live engine_version back to WHMCS, displaying the running Haraka version (such as v3.3.2) and an ↑ v<target> available indicator directly on each Infrastructure server row.

Click any server name under Infrastructure to open its dedicated Server Details view — showing the metadata summary strip (hostname, gateway, optional Pool Edge, Return-Path, IPv4/IPv6, live Haraka version, pinned proxy version, and template vintage), live toolbar actions (including Apply latest template (in-place) when behind), editable Server settings (display name, max tenants, sort order, and Mode B Custom pool vanity hostname with 1-click Publish Pool Edge DNS), every attached Sending IP, hosted tenants, and lifecycle controls.

ImpulseMail Admin Server Details view showing the metadata summary strip with live Haraka version and Pool Edge, live toolbar with Apply latest template in-place, Server settings with Custom pool vanity hostname and Publish Pool Edge DNS, Sending IPs, Hosted tenants, and Lifecycle controls

3. In-place script updates & template sync (no VPS rebuild)

Section titled “3. In-place script updates & template sync (no VPS rebuild)”

When you upgrade ImpulseMail in WHMCS, existing mail servers do not need to be destroyed or reprovisioned — preserving warmed IPs, customer tenants, DKIM keys, suppressions, Let’s Encrypt certificates, and the Admin Proxy TLS pin:

  • One-click Update on-box scripts (host-update-scripts): pushes the 10 allowlisted managed scripts (admin-proxy.py, impulsemail-gateway.py, outbound_ip.py, and all 7 Haraka plugins including impulse_smtp_auth.js, impulse_smarthost.js, impulse_events.js, and impulse_dsn_intake.js) over pinned TLS, verifies SHA-256 checksums and syntax before swapping, backs up the previous copies, reloads affected services, and verifies post-restart health.
  • In-place template sync without VPS rebuild (Apply latest template (in-place)): when a module upgrade also updates root-owned host wrapper configuration (such as /usr/local/sbin/impulsemail-control, box.env, outbound.ini, or nginx templates), Infrastructure flags the box with older template. Open Server Details and click Apply latest template (in-place) to mint a single-use, SHA-256-verified root console/SSH command. Running it executes the idempotent bootstrap template in-place (preserving IP, tenants, DKIM keys, suppressions, TLS certificates, and the Admin Proxy TOFU pin), restarts Haraka, gateway, and Admin Proxy cleanly, and stamps /etc/impulsemail/template-hash once complete. Clicking Test admin proxy (or waiting for the next health poll) reads the box-verified hash and clears older template automatically.
  • Automatic drift detection highlights drifted boxes on both Infrastructure and Operations → Security.

4. Atomic side-by-side Haraka upgrades & rollback

Section titled “4. Atomic side-by-side Haraka upgrades & rollback”

Because Haraka is a Node.js application, mutating its global install directory on a live mail server risks breaking mail delivery if an install fails mid-way. ImpulseMail instead manages Haraka in isolated versioned directories under /usr/local/lib/impulsemail/haraka/versions/<version>/ behind a current symlink:

  1. Curated release pin: Under Settings → General & Access, set Haraka version pin (default_haraka_version) to a vetted 3.x release (such as 3.3.1, 3.3.2, or 3.4.0). Unvetted or arbitrary npm specifiers (latest) are refused.
  2. Offline staging & plugin verification: From Infrastructure → Manage Servers (or Server Details), click Upgrade Haraka (engine-upgrade, type-to-confirm). The box installs the target release into a fresh staging directory, verifies the Node runtime floor, checks haraka --version, and runs syntax verification across all impulse_*.js plugins before touching the running MTA.
  3. Atomic cutover with automatic rollback: Once verified, the box flips the current symlink atomically, restarts impulsemail-haraka, and verifies both systemd status and a live SMTP 220 greeting within 15 seconds. If post-restart health fails, the previous version is automatically rolled back and restarted.
  4. One-click manual rollback: The previous version remains on disk behind the previous symlink, so you can revert at any time via Roll back Haraka (engine-rollback).

5. Shared pool endpoint architecture (Mode A vs. Mode B)

Section titled “5. Shared pool endpoint architecture (Mode A vs. Mode B)”

Under Settings → DNS & TLS → Step 1 (Operator DNS & Zone), ImpulseMail gives operators a clear choice between two multi-pool endpoint architectures for shared-plan customers (dedicated-IP servers always use their own dedicated gateway hostname):

Mode Customer SMTP & API hostname Extra server needed? Best for
Mode A — Global Edge Hostname (global_edge) One global hostname across all shared pools (e.g. send.yourbrand.example) None with 1 shared pool; one lightweight Edge Router VPS when scaling to 2+ pools Operators who want a single branded endpoint for every shared customer and 100% transparent shared→shared migrations
Mode B — Per-Pool Hostnames (per_pool) Clean regional name (send.dfw1.mail.yourbrand.example) or optional per-pool vanity name (us1.yourbrand.example, eu1.yourbrand.example) Zero extra servers at any pool count Operators who want regional endpoints or zero extra routing infrastructure

Mode A: Global Edge Hostname (mail_edge_hostname + ImpulseMail Edge Router)

Section titled “Mode A: Global Edge Hostname (mail_edge_hostname + ImpulseMail Edge Router)”
  1. Open Settings → DNS & TLS, set Customer endpoint mode (mail_edge_mode) to Mode A — Global Edge Hostname, and enter your Global edge hostname (mail_edge_hostname, for example send.yourbrand.example).
  2. While running 1 shared pool: no extra VPS is required. Click Publish Edge DNS (or let provisioning publish it automatically) to point send.yourbrand.example directly to Pool #1 (A/AAAA DNS-only) and include it as a Let’s Encrypt SAN on the pool’s TLS certificate.
  3. When scaling to 2+ shared pools: deploy the included stateless Python 3 ImpulseMail Edge Router (modules/servers/impulsemail/edge-router/impulsemail-edge-router.py + install-edge-router.sh, zero pip dependencies) on a lightweight Ubuntu 24.04 VPS using the ready-to-paste install command inside Settings → DNS & TLS → Deploy ImpulseMail Edge Router VPS:
    • Point send.yourbrand.example A/AAAA records to the Edge Router VPS.
    • Enter the Edge Router control URL (https://send.yourbrand.example:9443, firewall-restricted to your WHMCS server IP(s)), click Generate for the encrypted Edge Router Bearer secret, save, and click Test & Sync Edge Routes.
    • Zero customer secrets touch the Edge Router: WHMCS pushes only a secret-free routing table (pools, t_<service_id> tenants, 12-character API key prefixes, and SMTP usernames) automatically whenever tenants are placed/migrated or credentials are minted, renamed, or revoked. Real SHA-256 API key, HMAC link, and SMTP password verification stays strictly on the owning pool box.
    • Handles both HTTPS (/v1/*, /u/*, /t/o/*, /t/c/*, /t/bimi/*) and SMTP submission (587, 2525, 8025, 8465 STARTTLS and 465 SSL/TLS) transparently.

Mode B: Per-Pool Hostnames (per_pool, zero extra servers)

Section titled “Mode B: Per-Pool Hostnames (per_pool, zero extra servers)”
  1. Set Customer endpoint mode to Mode B — Per-Pool Hostnames (default for fresh installs).
  2. Each shared pool automatically receives a clean sequential regional hostname (for example dfw1.mail.yourbrand.example → send.dfw1.mail.yourbrand.example).
  3. Optionally assign any shared pool a shorter custom vanity hostname (such as us1.yourbrand.example or eu1.yourbrand.example) via Custom pool vanity hostname (edge_hostname) during + Provision New Server or anytime under Infrastructure → Server Details (with 1-click Publish Pool Edge DNS). When migrating a tenant between two pools in Mode B, ImpulseMail automatically emails the customer their updated endpoint via WHMCS SendEmail.

6. Domain Connect 1-click customer DNS setup

Section titled “6. Domain Connect 1-click customer DNS setup”

ImpulseMail ships native Domain Connect v2 (Sync UX) support at zero ongoing cost. Domain Connect is the open standard supported natively by GoDaddy, Cloudflare, IONOS, Porkbun, Squarespace, Name.com, Hostinger, and WordPress.com. Once enabled for your brand, customers can apply their DKIM (im._domainkey), Return-Path (imbounces), and optional DMARC (_dmarc) records in a single click — without copying DNS records or handing over API keys.

Open Addons → ImpulseMail → Settings → DNS & TLS and follow the built-in 4-step white-label walkthrough (each step badge flips to a live green ✓ as you complete it):

  1. Step 1 — Brand & domains: enter your Provider ID (your brand domain, matching your template filename <providerId>.<serviceId>.json), Provider display name (shown inside your customers’ DNS consent prompt), Service ID (default transactional-mail), Public key host prefix (default _dck1), Public key domain (syncPubKeyDomain), and comma-separated Allowed redirect domain(s) (syncRedirectDomain, your WHMCS client-area hostname(s)). Check Enable Domain Connect 1-click setup in Client Area and click Save Domain Connect settings.
  2. Step 2 — Generate RSA-2048 keypair: click Generate RSA-2048 keypair. Your private signing key stays encrypted inside your WHMCS database and is never sent to mail servers.
  3. Step 3 — Publish public key TXT & verify live DNS:
    • If your syncPubKeyDomain lives in your configured operator DNS zone (Cloudflare, AWS Route 53, PowerDNS, Bunny DNS, DigitalOcean DNS, or Hetzner DNS), click the 1-click Publish Public Key TXT button to publish the chunked TXT records at _dck1.<yourdomain.com> automatically. Otherwise, use Copy TXT records to add them at your DNS host.
    • Click Verify live DNS TXT to confirm all chunks resolve in public DNS. Once verified, Step 3 automatically turns green ✓ (and resets automatically if you later regenerate your keypair or change the public key host or domain).
  4. Step 4 — Test & submit your free template PR (templates/<providerId>.<serviceId>.json):
    • Click Download .json (or Copy JSON) and open the Online Editor (https://domainconnect.paulonet.eu/dc/free/templateedit). Paste your JSON, enter sample variable values, and generate both required Markdown test links:
      • Test 1 (apex): leave Host empty / @ → click Test apply template → click Copy as Markdown link (GitHub), then paste into Online Editor link 1 — Apex in WHMCS.
      • Test 2 (subdomain): set Host to mail → click Test apply template → click Copy as Markdown link (GitHub), then paste into Online Editor link 2 — Subdomain in WHMCS.
    • As you paste both links into the GitHub Pull Request — Ready-to-Paste Title & Description card in Step 4, WHMCS automatically splices them into the pre-filled PR description and flips the status to Ready.
    • Browser-only GitHub upload (no Git CLI required): open Domain-Connect/Templates → click Fork → Create fork → open the templates/ folder → click Add file → Upload files → drop <providerId>.<serviceId>.json → click Commit changes. On your fork’s main page, click Contribute → Open pull request, paste the copied PR title and PR description (replacing GitHub’s default template text), and click Create pull request.
    • Once your PR is merged, click Check template sync in Step 4. ImpulseMail probes both Domain-Connect/Templates (master) and GoDaddy’s public template API and turns Step 4 green ✓. Supported DNS providers sync newly merged templates automatically (typically within 24–72 hours), lighting up the 1-click Connect button on customer Domains tabs automatically.

ImpulseMail Admin Settings DNS and TLS tab showing the 4-step Domain Connect operator walkthrough with green completion checkmarks, RSA-2048 keypair and Cloudflare public key TXT controls, template JSON, and the always-visible GitHub PR Title and Description builder with live Online Editor test link auto-fill

ImpulseMail manages your operator mail zone automatically from WHMCS so server provisioning, IP rotation, customer DKIM key rotation, and teardown require zero manual DNS edits. Customers can still host their own sending domains at any DNS provider — only your operator mail zone needs API access.

ImpulseMail Admin Settings DNS and TLS 3-step Setup Guide showing Step 1 Operator DNS and Zone with the Shared pool endpoint architecture selector set to Mode A Global Edge Hostname, Edge Router control URL and encrypted Bearer secret with Test and Sync Edge Routes, DNS provider credentials, and the DNS credentials and permission check panel

What ImpulseMail manages in your operator DNS zone

Section titled “What ImpulseMail manages in your operator DNS zone”
Record pattern Type Managed when Purpose
<server_uid>.<mail_base_domain> A / AAAA Provision, IP rotation, teardown Mail server gateway hostname and FCrDNS forward mapping
spf.<mail_base_domain> TXT Provision, IP rotation, teardown Shared pool SPF include (include:spf.<mail_base_domain>) updated automatically with active sending IPs
rp-<server_uid>.<mail_base_domain> TXT + MX 10 Provision, teardown Per-server Return-Path target for customer imbounces CNAMEs, bounce intake, ARF feedback loops, and DMARC rua reports
dk-<uid>.dkim.<mail_base_domain> TXT Customer adds domain or clicks Rotate DKIM key Managed DKIM public-key target for customer im._domainkey CNAMEs (enables zero-downtime customer DKIM rotation)
_dck1.<pubkey_domain> TXT Optional Domain Connect Step 3 Chunked RSA-2048 public key for Domain Connect Sync UX request signing
Provider Auth method Zone ID required? Key notes
Cloudflare API Token (Authorization: Bearer) Required (auto-detectable) Free Cloudflare DNS plan works; default provider
AWS Route 53 IAM Access Key ID + Secret Key (SigV4) Optional (auto-detectable) Pure-PHP SigV4 signing; splits long RSA-2048 DKIM TXT records into RFC 1035 255-byte chunks automatically
PowerDNS (HTTP API) X-API-Key header + API URL No (uses zone name) Ideal for hosting companies running self-hosted ns1/ns2 clusters; requires PowerDNS Authoritative HTTP API (api=yes)
Bunny DNS Account API Key (AccessKey) Optional (auto-detectable) Uses Bunny’s DNS Zone REST API (api.bunny.net)
DigitalOcean DNS Personal Access Token (Bearer) No (uses zone name) Free DNS hosting even without Droplets (DigitalOcean is supported for DNS, while DigitalOcean Droplets remain excluded for mail servers due to port 25)
Hetzner DNS DNS API Token (Auth-API-Token) Optional (auto-detectable) Free DNS via Hetzner DNS Console (dns.hetzner.com)

Important: Mail base domain vs. DNS zone name

Section titled “Important: Mail base domain vs. DNS zone name”

Always distinguish these two fields under Settings → DNS & TLS:

  • Mail base domain (mail_base_domain) — the subdomain your mail fleet lives under, for example mail.yourbrand.com.
  • DNS zone name (dns_zone_name, required) — the authoritative zone domain hosted in your DNS provider, for example yourbrand.com (not the mail. subdomain, unless you explicitly delegated mail.yourbrand.com as its own separate authoritative zone).
  1. In the Cloudflare dashboard, open My Profile → API Tokens → Create Token → Create Custom Token.
  2. Grant two permissions scoped to your operator mail zone:
    • Zone → Zone → Read (required for Auto-detect zone & ID)
    • Zone → DNS → Edit (required to publish and clean up records)
  3. Copy the display-once token.
  4. In WHMCS, open Addons → ImpulseMail → Settings → DNS & TLS, select Cloudflare, enter your Mail base domain, paste the token into Cloudflare API token, and click Auto-detect zone & ID (or paste the Zone ID from your Cloudflare zone Overview sidebar). Click Save DNS settings.
  1. In the AWS IAM console, create an IAM user for WHMCS and attach a least-privilege inline policy scoped to your Hosted Zone (replace Z0123456789ABCDEF with your real Hosted Zone ID):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["route53:ListHostedZones"],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"route53:GetHostedZone",
"route53:ListResourceRecordSets",
"route53:ChangeResourceRecordSets"
],
"Resource": "arn:aws:route53:::hostedzone/Z0123456789ABCDEF"
}
]
}
  1. Create an Access Key for that IAM user and copy the Access Key ID and Secret Access Key.
  2. In WHMCS (Settings → DNS & TLS), select AWS Route 53, enter your Mail base domain, AWS Access Key ID, and AWS Secret Access Key, then click Auto-detect zone & ID (if you omitted route53:ListHostedZones for an even tighter IAM policy, enter your DNS zone name and Route 53 Hosted Zone ID manually). Click Save DNS settings.
  1. On your PowerDNS Authoritative primary server, enable the built-in HTTP API in /etc/powerdns/pdns.conf and restart pdns:
api=yes
api-key=YOUR_STRONG_RANDOM_API_KEY
webserver=yes
webserver-address=0.0.0.0
webserver-port=8081
webserver-allow-from=YOUR_WHMCS_SERVER_IP/32
  1. Restrict port 8081 (or your HTTPS reverse proxy in front of it) in your firewall so only your WHMCS server IP can reach the PowerDNS API. Ensure your operator zone (for example yourbrand.com) already exists in PowerDNS.
  2. In WHMCS (Settings → DNS & TLS), select PowerDNS (HTTP API), enter your PowerDNS API base URL (for example https://ns1.yourbrand.com:8081 — /api/v1 is appended automatically if omitted), PowerDNS API key, and PowerDNS server ID (default localhost). Click Auto-detect zone & ID and Save DNS settings.
  1. Add your operator mail zone in the Bunny Dashboard under DNS.
  2. Open Account Settings → API and copy your Account API Key.
  3. In WHMCS (Settings → DNS & TLS), select Bunny DNS, enter your Mail base domain and Bunny DNS API key, click Auto-detect zone & ID (to fill your zone name and numeric Zone ID automatically), and click Save DNS settings.
  1. Add your operator mail domain under Networking → Domains in DigitalOcean (DNS hosting is free even if you run zero Droplets).
  2. Open API → Personal Access Tokens → Generate New Token with read and write scopes on Domains (domain:read, domain:create, domain:update, domain:delete).
  3. In WHMCS (Settings → DNS & TLS), select DigitalOcean DNS, enter your Mail base domain and DigitalOcean Personal Access Token, click Auto-detect zone & ID (no separate Zone ID is required), and click Save DNS settings.
  1. Add your operator mail zone in the Hetzner DNS Console (dns.hetzner.com).
  2. Open API Tokens in the Hetzner DNS Console and create a new token.
  3. In WHMCS (Settings → DNS & TLS), select Hetzner DNS, enter your Mail base domain and Hetzner DNS API token, click Auto-detect zone & ID, and click Save DNS settings.

After clicking Save DNS settings, always click Test DNS credentials & permissions in the panel directly below. ImpulseMail runs three live checks against your selected provider:

  1. Credentials active — confirms the token/key authenticates cleanly.
  2. Zone:Read — confirms your authoritative zone resolves (and matches your configured Zone ID, if set).
  3. DNS:Edit — creates one temporary throwaway TXT record (_impulsemail-permcheck-...) and immediately deletes it to prove end-to-end write and teardown permissions before you provision your first mail server.

Operator domain hygiene (MX, postmaster@ & abuse@)

Section titled “Operator domain hygiene (MX, postmaster@ & abuse@)”

Directly below the DNS permission test, the Operator domain hygiene (MX, postmaster & abuse) panel runs a live MX check against your root operator domain (dns_zone_name, for example yourbrand.com):

  • Publish an MX record on your root domain and configure mailboxes or aliases for postmaster@<yourdomain> and abuse@<yourdomain> (for example via Microsoft 365, Google Workspace, or Cloudflare Email Routing). RFC 5321 and major receiving filters (Apple iCloud / Proofpoint, Microsoft 365, Gmail, Yahoo/AOL) expect the sending infrastructure’s root domain to accept postmaster and abuse mail.
  • Zero conflict with ImpulseMail: ImpulseMail publishes all relay hostnames, DKIM targets, Return-Path MX/TXT records, and shared SPF records strictly under your subdomain (*.<mail_base_domain>, such as *.mail.yourbrand.com). Connecting Microsoft 365 (MX, autodiscover, selector1._domainkey, selector2._domainkey, apex SPF TXT) or Google Workspace to your apex domain coexists cleanly with ImpulseMail.
  • Run a live deliverability audit after provisioning: once your first mail server is live and a test domain is verified, verify your score with Mail-Tester and EasyDMARC Email Deliverability Test (both linked directly from the panel).