Enterprise Email Security & Domain Migration Playbook
v3.0 — IT Consultant Reference
Unified implementation blueprint for regulated environments and high-assurance deployments.
References Texas SB 2610 (Business & Commerce Code Chapter 542, effective September 1, 2025; applies to causes of action accruing on or after that date), TDRPC Rule 1.05, and audit expectations for SOC 2, HIPAA, and PCI-DSS v4.0. Not legal advice. Under § 542.003, a covered entity that demonstrates a cybersecurity program meeting § 542.004 at the time of a breach may not be liable for exemplary (punitive) damages in an action arising from that breach; it does not bar actual damages and is not a general affirmative defense to all breach claims. Covered entities are Texas businesses with fewer than 250 employees that own or license computerized data containing sensitive personal information. § 542.005 provides that the chapter creates no private cause of action and does not change any existing common-law or statutory duty.
Technical engagement lifecycle
As an external IT consultant, greenfield setup or brownfield migration requires clear administrative boundaries, chain-of-custody documentation, and phased execution to avoid mail downtime.
flowchart LR
P1[Phase 1: Discovery]
P2[Phase 2: Pre-Check]
P3[Phase 3: Migration]
P4[Phase 4: Hardening]
P5[Phase 5: Attestation]
P1 --> P2 --> P3 --> P4 --> P5
| Phase | Consultant actions | Client deliverables |
|---|---|---|
| 1 — Discovery | Baseline audit, sender inventory, access review | Greenfield or Brownfield kickoff checklist |
| 2 — Pre-Check | Pre-start checklist to client; change ticket opened | Signed pre-start inventory |
| 3 — Migration | Cloudflare DNS, MX path, platform auth records | Nameserver cutover approval |
| 4 — Hardening | DMARC graduation, tenant policies, optional Cloudflare Email Security | Monitoring window sign-off |
| 5 — Attestation | Post-audit, SB 2610 evidence, Safe Harbor sign-off | Electronic attestation via completion link |
Quick links: Platform guides · New domain checklist · Existing domain checklist
1. Engagement kickoff & client access provisioning
Before any technical workflow, gather administrative access and diagnostic parameters. Use the checklist that matches the engagement type.
Checklist A — Greenfield (new domain)
See the full Greenfield kickoff checklist.
- Domain registrar root access (or delegated access)
- Cloudflare tenant workspace (client admin or new workspace you provision)
- Mail platform super admin (Microsoft 365 or Google Workspace)
- Brand assets: square logo (vector for SVG), favicon package
- Trademark documentation for Verified Mark Certificate (VMC) if pursuing BIMI with VMC
Checklist B — Brownfield (existing production domain)
See the full Brownfield kickoff checklist.
- Legacy DNS zone admin access
- Exhaustive sender inventory (CRM, marketing, ticketing, ERP static IPs)
- Hybrid/on-premises discovery (Exchange, connectors, relays)
- Mail platform global admin (M365, Google Workspace, Proton Business, or Postfix/Exim)
Send the client pre-start checklist from /admin.html before Phase 3 changes.
2. Foundational DNS infrastructure & zero-trust perimeter
Step 1: Pre-implementation zero-knowledge audit
Before changing nameservers or mail routing:
- Navigate to audit.emailmenow.com.
- Run a full scan on the client domain and export the diagnostic report.
- Save as
Pre-Migration-Baseline-[Domain].pdfand attach to your internal change-control ticket.
Step 2: Migrate nameservers to Cloudflare
- Cloudflare Dashboard → Add a Site → enter domain → select plan → allow zone import.
- Manually review the imported record matrix.
Critical control: Mail records (MX, SPF, DKIM, DMARC, BIMI, MTA-STS, TLS-RPT) must be DNS only (gray cloud). Orange-cloud proxy on mail-related names breaks SMTP and can invalidate signatures.
- Copy Cloudflare’s assigned nameserver pair (e.g.
lisa.ns.cloudflare.com,rick.ns.cloudflare.com). - At the domain registrar, replace default NS with the Cloudflare pair. Monitor propagation:
watch -n 5 'dig NS yourdomain.com @8.8.8.8'
Step 3: Enable DNSSEC
When the zone is Active in Cloudflare:
- DNS → Settings → DNSSEC → Enable.
- Copy Key Tag, Algorithm, Digest Type, and Digest to the registrar DS record panel.
- After ~15 minutes, validate:
delv @1.1.1.1 yourdomain.com +rwbnd
Expect ;; fully validated. For compliance reports, also verify at dnssec-debugger.verisignlabs.com.
3. Brand identity (BIMI & favicons)
Step 1: SVG Tiny 1.2 (tiny-ps) logo
- Square 1:1 canvas; vector paths only (no embedded PNG/JPG).
- Strip animations, scripts, external CSS, and
foreignObjectfrom the SVG source. - Example header profile:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.2" baseProfile="tiny-ps" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<title>Official Corporate Mark</title>
<g id="logo"><path fill="#0052CC" d="M256,0 C114.6..."/></g>
</svg>
- Optimize:
npx svgo corporate-logo.svg --pretty - Host at HTTPS with
Content-Type: image/svg+xmland HSTS (e.g.https://assets.yourdomain.com/bimi/logo.svg).
Step 2: VMC procurement
Guide the client through a Verified Mark Certificate (DigiCert or Entrust) using active trademark proof. Host the issued .pem at https://assets.yourdomain.com/bimi/vmc.pem.
Step 3: BIMI DNS record
| Type | Name | Value (example) |
|---|---|---|
| TXT | default._bimi |
v=BIMI1; l=https://assets.yourdomain.com/bimi/logo.svg; a=https://assets.yourdomain.com/bimi/vmc.pem; |
BIMI display in major clients typically requires DMARC at p=quarantine or p=reject (full enforcement; no testing t=y) and aligned authentication.
Step 4: Favicon deployment
Deploy favicon.ico, favicon.svg, and apple-touch-icon.png at the site root with long cache (Cache-Control: public, max-age=31536000, immutable) and correct Content-Type headers.
4. Platform deployment blueprints
Relaxed DMARC baseline (all platforms)
Publish in Cloudflare before tightening policy:
v=DMARC1; p=none; rua=mailto:your-dmarc-inbox@yourdomain.com; fo=d; adkim=r; aspf=r;
If the client uses Cloudflare DMARC analytics, set rua to mailto:your-token@cloudflare-dmarc.com.
SPF 10-lookup limit (RFC 7208)
SPF allows at most 10 DNS lookups. Exceeding this causes SPF failures for all mail.
- Count lookups with spf-record.com or similar.
- If over limit: flatten with a Cloudflare Worker returning static
ip4:lists, or remove low-volume senders from SPF and authorize via DKIM-only. - Isolate bulk/marketing on a subdomain with its own SPF/DMARC.
A. Microsoft 365 (Exchange Online)
SPF
| Type | Name | Value |
|---|---|---|
| TXT | @ |
v=spf1 include:spf.protection.outlook.com -all |
DKIM (CNAME)
- Microsoft 365 Defender → Policies & rules → Threat policies → DKIM → select domain → Generate 2048-bit keys.
- Publish CNAMEs in Cloudflare (DNS only):
| Name | Value |
|---|---|
selector1._domainkey |
selector1-yourdomain-com._domainkey.yourdomain.onmicrosoft.com |
selector2._domainkey |
selector2-yourdomain-com._domainkey.yourdomain.onmicrosoft.com |
- Return to Defender → Enable signing.
Tenant hardening
- External email tagging: Defender → Anti-phishing → enable External email tagging, or PowerShell:
Connect-ExchangeOnline -UserPrincipalName admin@yourdomain.com
Set-ExternalInOutlook -Enabled $true
- Safe Attachments: Threat policies → Safe Attachments → strict profile → Dynamic Delivery.
- Safe Links: Threat policies → Safe Links → real-time URL scanning for Outlook, Teams, Office apps.
MTA-STS & TLS-RPT
- Host
https://mta-sts.yourdomain.com/.well-known/mta-sts.txt(LF line endings, valid TLS cert on hostname):
version: STSv1
mode: testing
mx: *.mail.protection.outlook.com
max_age: 86400
- DNS (gray cloud):
| Type | Name | Value |
|---|---|---|
| TXT | _mta-sts |
v=STSv1; id=2026052101 |
| TXT | _smtp._tls |
v=TLSRPTv1; rua=mailto:tlsrpt-reports@yourdomain.com |
B. Google Workspace
SPF
| Type | Name | Value |
|---|---|---|
| TXT | @ |
v=spf1 include:_spf.google.com -all |
DKIM
Admin → Apps → Google Workspace → Gmail → Authenticate email → 2048-bit key → publish google._domainkey TXT → Start authentication.
Tenant hardening
- Gmail → Safety: enable Employee name spoofing protection and Unauthenticated email indicators.
- Consider Advanced Protection Program for executives and finance roles (FIDO2, OAuth allow-list).
MTA-STS example
version: STSv1
mode: testing
mx: *.google.com
mx: *.googlemail.com
mx: *.smtp.goog
max_age: 86400
Update _mta-sts id= token when policy changes (e.g. id=g20260521).
C. Proton Mail (Business)
MX
| Type | Name | Priority | Value |
|---|---|---|---|
| MX | @ |
10 | mail.protonmail.ch |
| MX | @ |
20 | mailsec.protonmail.ch |
SPF & DKIM
| Type | Name | Value |
|---|---|---|
| TXT | @ |
v=spf1 include:_spf.protonmail.ch -all |
Publish three CNAME DKIM records from Proton domain setup (protonmail._domainkey, protonmail2._domainkey, protonmail3._domainkey) → Verify.
ARC
Proton validates inbound ARC; outbound ARC is managed by Proton. No manual ARC dashboard configuration required.
Hardening
- Enable phishing verification badges and link tracking protection.
- Document recovery phrase escrow for zero-knowledge accounts (physical secure storage).
D. Private Linux (Postfix + OpenDKIM + OpenARC)
SPF
v=spf1 ip4:203.0.113.10 ip4:203.0.113.11 ip6:2001:db8::10 -all
Configure matching PTR for the outbound HELO hostname.
Install & keys
sudo apt update && sudo apt install opendkim opendkim-tools openarc -y
sudo mkdir -p /etc/opendkim/keys/yourdomain.com
cd /etc/opendkim/keys/yourdomain.com
sudo opendkim-genkey -s selector202605 -d yourdomain.com -b 2048
sudo chown -R opendkim:opendkim /etc/opendkim/keys
sudo chmod 600 /etc/opendkim/keys/yourdomain.com/selector202605.private
Publish selector202605._domainkey TXT from the .txt file. Copy private key for OpenARC:
sudo mkdir -p /etc/openarc/keys/
sudo cp /etc/opendkim/keys/yourdomain.com/selector202605.private /etc/openarc/keys/arcserver.private
sudo chown -R openarc:openarc /etc/openarc/
Postfix milters (/etc/postfix/main.cf)
smtpd_milters = inet:localhost:8891, inet:localhost:8892
non_smtpd_milters = inet:localhost:8891, inet:localhost:8892
milter_default_action = accept
smtpd_tls_protocols = >=TLSv1.2
smtpd_tls_mandatory_protocols = >=TLSv1.2
sudo systemctl restart opendkim openarc postfix
See Platform guides — custom hosting for KeyTable/SigningTable detail.
5. Cloudflare Email Security (optional inline MX)
- Zero Trust → Email Security → MX/Inline (Pre-delivery) wizard.
- Copy your account-specific gateway MX hostnames from the panel (do not use generic placeholders).
- Set next-hop to the real backend (M365/Google/Proton MX).
- In DNS, replace legacy MX with two priority-10 records pointing to Cloudflare gateway tokens (gray cloud).
Downstream hardening
- M365: Inbound connector restricted to Cloudflare IP ranges (or Enhanced Filtering skip listing).
- Google: Inbound gateway + Reject all mail not from gateway IPs.
- Linux: Firewall port 25 to Cloudflare netblocks only.
Advanced: Remote Browser Isolation for risky links; typosquatting / look-alike domain policies in Email Security rules.
6. DMARC policy graduation
Phase 1 — Monitor (p=none, 14–30 days)
Point rua to Cloudflare or client inbox. Review daily. Do not enforce until ≥98% alignment for 14 consecutive days.
Phase 2 — Quarantine (14 days)
v=DMARC1; p=quarantine; sp=quarantine; np=reject; rua=mailto:your-token@cloudflare-dmarc.com; fo=d; adkim=r; aspf=r;
Hold at p=quarantine while reviewing aggregate reports. Do not use fractional pct (obsolete under DMARCbis); graduate by changing p only.
Phase 3 — Reject
v=DMARC1; p=reject; sp=reject; np=reject; rua=mailto:your-token@cloudflare-dmarc.com; fo=d; adkim=r; aspf=r;
If you need a temporary monitor-while-enforced window, set t=y (DMARCbis testing tag) instead of a fractional pct.
Optional strict alignment: adkim=s; aspf=s; when all senders sign the organizational domain.
MTA-STS enforce (after DMARC stable)
Update hosted policy:
version: STSv1
mode: enforce
mx: *.mail.protection.outlook.com
mx: *.google.com
mx: *.googlemail.com
max_age: 1209600
Bump _mta-sts id= to invalidate caches (e.g. id=20260521prod).
7. Post-deployment verification
Run from an external endpoint before closing the change ticket.
| Check | Command / action | Pass criteria |
|---|---|---|
| DNSSEC | delv @1.1.1.1 yourdomain.com +rwbnd |
;; fully validated |
| MTA-STS | curl -i https://mta-sts.yourdomain.com/.well-known/mta-sts.txt |
200 OK, text/plain, LF only |
| OpenDKIM | opendkim-testkey -d yourdomain.com -s selector202605 -k .../selector202605.private |
No error output |
| Email security verification (recommended evidence) | audit.emailmenow.com post-scan | Document DNSSEC, SPF ≤10 lookups, DMARC, MTA-STS where applicable — retain as supporting program documentation; these items are not individually mandated by Chapter 542 |
Archive post-scan as Post-Implementation-Verification-[Domain].pdf for optional SB 2610 evidence retention.
Appendix A — Texas SB 2610 Safe Harbor evidence
Every covered entity's program must contain administrative, technical, and physical safeguards, conform to an industry-recognized cybersecurity framework under § 542.004(b) (e.g., NIST Cybersecurity Framework, NIST SP 800-171, NIST SP 800-53/53A, FedRAMP, CIS Critical Security Controls, ISO/IEC 27000 series, HITRUST CSF, Secure Controls Framework, SOC 2, or similar), and be designed to protect personal identifying and sensitive personal information (§ 542.004(a)(1)–(3)). Section 542.004(a)(4) then scales the requirements by headcount: fewer than 20 employees — simplified requirements including password policies and appropriate employee cybersecurity training; 20–99 employees — moderate requirements including CIS Controls Implementation Group 1; 100–249 employees — compliance with the requirements of § 542.004(b). Entities subject to HIPAA, GLBA, FISMA, or HITECH must also conform to that law, and to PCI DSS where applicable (§ 542.004(b)(2)–(3)). Completing the SB 2610 evidence checklist does not by itself establish a § 542.004 program.
Use the printable SB 2610 evidence checklist (SH-EVID-CHK-v3.0) to retain recommended email and DNS control documentation that may support overall program evidence. Checklist items (SPF, DMARC, MTA-STS, DNSSEC, etc.) reflect consultant best practice; they are not statutory requirements under Chapter 542.
Electronic client attestation and email delivery: Admin → /admin.html → client completes /complete/?token=….
This playbook is not legal advice. Consultants should coordinate with client counsel for statutory Safe Harbor and industry obligations (SOC 2, HIPAA, PCI-DSS).