WooCommerce sender fix

WooCommerce From address and DMARC alignment.

Use this when WooCommerce sends with a Gmail, Yahoo, Outlook, customer, or off-domain From address and order emails land in spam or get rejected.

When to use this fix

  • WooCommerce From address is not on the store domain.
  • Customer emails are accepted by SMTP but land in spam.
  • Bounces mention SPF, DKIM, DMARC, unauthenticated sender, or 5.7.26.
  • Visitor/customer email is being used as the From address.

When not to use this fix yet

  • The WooCommerce template is disabled.
  • No SMTP/provider log exists for the order email.
  • The order status never triggered the email.
  • The recipient address is malformed or missing.

WooCommerce path

StageSender-alignment check
Order eventConfirm the right customer/admin email was triggered.
Email templateCheck the template From name and From email fields.
RecipientConfirm the customer address is in To or Reply-To, not visible From.
wp_mailInspect the headers WooCommerce passes to WordPress mail.
SMTPConfirm the SMTP provider authenticates the same domain used in From.
InboxIf accepted but missing, inspect SPF, DKIM, DMARC, and recipient filtering.

Alignment evidence matrix

EvidenceLikely causeFirst correction
From: store@gmail.comConsumer mailbox senderUse orders@store-domain.com.
From uses customer emailDMARC spoofing riskMove customer email to Reply-To.
SPF passes but DMARC failsFrom-domain alignment mismatchAlign From domain with DKIM/SPF authenticated domain.
DKIM signs provider domain onlyDKIM not aligned with store FromEnable provider DKIM for the store domain.
Only Gmail/Outlook recipients miss mailStrict recipient filteringCheck DMARC aggregate/bounce evidence and provider logs.
DMARC p=reject on store domainStrict policy before auth is readyFix SPF/DKIM alignment before enforcing reject.

Sender correction table

Bad FromGood FromReply-ToWhy
mystore@gmail.comorders@example.comsupport@example.comThe visible sender uses the store domain that SPF/DKIM can authenticate.
customer@example.netorders@example.comcustomer@example.netCustomer address stays replyable without spoofing the customer domain.
wordpress@server123.host.tldorders@example.comsupport@example.comRemoves host-generated sender identity that fails brand/domain alignment.
no-reply@provider.exampleorders@example.comsupport@example.comUses a verified store-domain sender instead of the provider's default domain.

Before / after sender pattern

Before

WooCommerce From: mystore@gmail.com
Reply-To: customer@example.net
SPF/DKIM: provider unknown
DMARC: strict or not checked

After

WooCommerce From: orders@example.com
Reply-To: customer@example.net
SPF: includes sending provider
DKIM: enabled for example.com
DMARC: monitor, then tighten after pass rates are stable

Verification checklist

  1. Set WooCommerce From email to a domain-based mailbox.
  2. Keep customer/visitor email in Reply-To, not From.
  3. Confirm the SMTP provider is authorized in SPF.
  4. Enable DKIM signing for the store domain.
  5. Keep DMARC at monitor mode until SPF/DKIM alignment passes consistently.
  6. Place a test order and check provider logs plus headers in the received message.

Common false positives

  • SPF pass is not enough if the visible From domain does not align for DMARC.
  • SMTP accepted does not prove inbox placement.
  • Using Gmail From can appear to work during small tests and fail with stricter recipients.
  • DMARC reject should not be enabled until transactional sender alignment is proven.