On April 19, 2025 at 05:54

Are you getting "SPF alignment issues" or "spf=neutral" for emails sent by WP?

Turns out that wp_mail() doesn't set the Return-Path email header which leads to PHPMailer populating that from the php.ini sendmail_from setting. While that is correct, email clients these days expect the FROM domain, Return-Path and DKIM p= domain to be equal to pass the DMARC checks.