![]() |
|
MyBB Email Deliverability: SMTP Relays, DKIM/DMARC, and Mail Queues - Baskı Önizleme +- Artı Teknoloji - Teknolojiye Artı (https://www.artiteknoloji.com) +-- Forum: Web Tabanlı Uygulamalar (https://www.artiteknoloji.com/forumdisplay.php?fid=44) +--- Forum: MyBB (https://www.artiteknoloji.com/forumdisplay.php?fid=48) +--- Konu Başlığı: MyBB Email Deliverability: SMTP Relays, DKIM/DMARC, and Mail Queues (/showthread.php?tid=572) |
MyBB Email Deliverability: SMTP Relays, DKIM/DMARC, and Mail Queues - Wertomy® - 19-11-2026 MyBB Email Deliverability: SMTP Relays, DKIM/DMARC, and Mail Queues
Account activation links, password recovery tokens, Private Message alerts, and watched-thread reply notifications are the lifeblood of MyBB member retention. Yet countless forum administrators leave Mail Handler configured to default PHP mail()—sending unauthenticated emails directly from a shared VPS IP address lacking reverse DNS, SPF, DKIM, or DMARC alignment. The inevitable result is catastrophic: Gmail, Microsoft Outlook, and Yahoo silently drop activation emails into spam or reject them at the SMTP gateway, stranding hundreds of legitimate new registrants who never verify their accounts, while viral thread replies stall PHP workers behind synchronous SMTP handshakes. By routing outbound mail through dedicated transactional relays, publishing strict DNS cryptographic authentication, tuning mybb_mailqueue batching, and automating bounce suppression, administrators achieve 99.8% primary-inbox placement. Why Default PHP mail() Destroys Forum Onboarding and Retention When MyBB invokes PHP’s native mail() function, your web server attempts to deliver messages directly from your origin web host’s IP address via local Sendmail or Postfix. In 2026, major mailbox providers enforce strict bulk-sender authentication requirements that make bare VPS mail delivery virtually impossible:
Cryptographic DNS Authentication Blueprint: SPF, DKIM, and DMARC Before connecting MyBB to an external transactional relay (such as Amazon SES, Postmark, Mailgun, or Brevo), establish cryptographic sender identity on a dedicated notification subdomain—such as mail.forum.example.com—so transactional forum notifications never endanger your primary corporate email domain reputation: [table] [tr] [td]DNS Record Type[/td] [td]Host / Name[/td] [td]Purpose & Alignment Role[/td] [td]Recommended Production Policy[/td] [/tr] [tr] [td]SPF (TXT)[/td] [td]mail.forum.example.com[/td] [td]Authorizes specific relay IP ranges to send on behalf of your bounce domain[/td] [td]Strict hard-fail -all qualifier with fewer than 10 DNS lookups[/td] [/tr] [tr] [td]DKIM (CNAME / TXT)[/td] [td]s1._domainkey.forum.example.com[/td] [td]Signs every outbound email header & body with a 2048-bit RSA/Ed25519 key[/td] [td]2048-bit key minimum; rotate selector keys semi-annually[/td] [/tr] [tr] [td]DMARC (TXT)[/td] [td]_dmarc.forum.example.com[/td] [td]Enforces alignment between visible From: header and SPF/DKIM signatures[/td] [td]Start p=none to audit XML reports, then enforce p=quarantine / p=reject[/td] [/tr] [tr] [td]Custom Return-Path (MX / CNAME)[/td] [td]bounces.forum.example.com[/td] [td]Captures asynchronous DSN hard bounces for automated suppression[/td] [td]Aligned subdomain matching your From: root domain[/td] [/tr] [/table] Here is a clean, production-hardened DNS zone example using a dedicated notification subdomain and enforced DMARC alignment: Kod: ; DNS Records for Dedicated MyBB Transactional Subdomain (forum.example.com)Alıntı:Always send MyBB forum notifications from a dedicated subdomain (noreply@forum.example.com) with strict DKIM/SPF alignment—isolating high-volume community notification traffic from your core organizational email domain. Configuring MyBB SMTP Mail Handler and Connection Encryption Inside Admin CP - Configuration - Settings - Mail Settings, switch Mail Handler from PHP mail to SMTP mail and configure TLS-encrypted submission over port 587 (STARTTLS) or port 465 (implicit TLS):
Taming mybb_mailqueue: Asynchronous Batching and Rate-Limit Protection When a thread attracts hundreds of subscribers—or when an administrator dispatches a community-wide Mass Mail announcement—MyBB inserts pending messages into mybb_mailqueue instead of blocking user HTTP requests. However, MyBB’s default task scheduler triggers /inc/tasks/sendmailqueue.php only when visitors browse pages, processing small batches erratically. To guarantee instantaneous account activation emails while preventing large notification bursts from exceeding your SMTP provider’s per-second rate limits: Kod: <?phpAutomated Bounce Handling, List-Unsubscribe Headers, and Inbox Hygiene Modern inbox providers—especially Gmail and Yahoo—require one-click unsubscribe headers on automated bulk/subscription notifications and penalize senders whose hard-bounce rate exceeds 2%:
By combining dedicated subdomain isolation, strict SPF/DKIM/DMARC alignment, priority-bypassed authentication emails, system-cron mybb_mailqueue batching, and automated bounce suppression, MyBB administrators ensure every new registrant and active contributor receives timely, primary-inbox notifications reliably. |