Relying on PHP's built-in mail() function in XenForo frequently causes registration confirmations, password resets, and thread notifications to land in spam folders or fail silently. Routing outbound mail through an authenticated SMTP relay paired with properly aligned DNS records and automated bounce handling protects your domain reputation and ensures reliable inbox delivery.
Switching to Transactional SMTP in AdminCP
Shared web hosting mail servers often suffer from blacklisted IP ranges and strict hourly sending caps. Connect your forum to a dedicated transactional email provider such as Amazon SES, Postmark, Mailgun, or Brevo:
Configuring SPF, DKIM, and DMARC DNS Records
Major mailbox providers strictly enforce cryptographic sender authentication. Open your domain's DNS zone editor and verify that three authentication records are active:
Alongside SPF and DMARC, publish the two or three DKIM CNAME or TXT keys generated inside your SMTP provider's dashboard. Once propagated, run AdminCP > Tools > Test outbound email and inspect the raw message headers to confirm that SPF: PASS, DKIM: PASS, and DMARC: PASS all register cleanly.
Automating Bounce Handling and Unsubscribe Headers
Repeatedly sending watch notifications to deactivated or full inboxes quickly triggers spam blocks. Create a dedicated mailbox on your server (such as bounces@yourdomain.com), enter it under Bounced email address in Email options, and configure the Automated bounced email handler using IMAP or POP3 credentials.
When XenForo detects a hard bounce, it automatically switches the member's account state to Email invalid (bounced) and halts further notifications until they update their address. Finally, configure an Unsubscribe email address in the same menu so XenForo includes compliant one-click List-Unsubscribe headers, reducing manual spam complaints from inactive members.
Switching to Transactional SMTP in AdminCP
Shared web hosting mail servers often suffer from blacklisted IP ranges and strict hourly sending caps. Connect your forum to a dedicated transactional email provider such as Amazon SES, Postmark, Mailgun, or Brevo:
- Navigate to AdminCP > Setup > Options > Email options and set Default email address to a domain-matched sender such as noreply@yourdomain.com.
- Change Email transport method from PHP built-in mail system to SMTP, then enter your provider's host endpoint, port (587 with TLS encryption), and SMTP credentials.
- Enable Enable variable email return path (VERP) so XenForo injects unique tracking tokens into the envelope sender header for accurate bounce matching.
Configuring SPF, DKIM, and DMARC DNS Records
Major mailbox providers strictly enforce cryptographic sender authentication. Open your domain's DNS zone editor and verify that three authentication records are active:
Kod:
; SPF Record (TXT on root @) - Authorize your SMTP relay
v=spf1 include:amazonses.com ~all
; DMARC Record (TXT on _dmarc) - Enforce alignment and receive reports
v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com; pct=100; adkim=s; aspf=sAutomating Bounce Handling and Unsubscribe Headers
Repeatedly sending watch notifications to deactivated or full inboxes quickly triggers spam blocks. Create a dedicated mailbox on your server (such as bounces@yourdomain.com), enter it under Bounced email address in Email options, and configure the Automated bounced email handler using IMAP or POP3 credentials.
When XenForo detects a hard bounce, it automatically switches the member's account state to Email invalid (bounced) and halts further notifications until they update their address. Finally, configure an Unsubscribe email address in the same menu so XenForo includes compliant one-click List-Unsubscribe headers, reducing manual spam complaints from inactive members.