---
title: "Discussion on \"WordPress mail lands in spam: configure SMTP, SPF, DKIM and DMARC in the right order\" | Hashnode"
description: "Discussion on \"WordPress mail lands in spam: configure SMTP, SPF, DKIM and DMARC in the right order\". WordPress mail lands in spam because by default wp_mail() hands the message to the local PHP mail transfer agent, which sends unauthenticated mail fr…"
url: "https://hashnode.com/posts/wordpress-mail-lands-in-spam-configure-smtp-spf-dkim-and-dmarc-in-the-right-order/6adc44f995df3b13ab99a29f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [WordPress mail lands in spam: configure SMTP, SPF, DKIM and DMARC in the right order](https://aumcreate.hashnode.dev/wordpress-mail-lands-in-spam-configure-smtp-spf-dkim-and-dmarc-in-the-right-order?utm_source=hashnode&utm_medium=feed)

WordPress mail lands in spam because by default wp\_mail() hands the message to the local PHP mail transfer agent, which sends unauthenticated mail fr…

Oct 24 · 11 min read · aumcreate.hashnode.dev  
Read the article

## Written by

[AumCreate](https://hashnode.com/@aumcreate)

@aumcreate · Singapore

  
[View profile](https://hashnode.com/@aumcreate)

Building WordPress plugins, websites, and practical tools for developers.

AumCreate is a Singapore-based WordPress development studio building custom websites, ready-made templates, and free open-source plugins. We work on WordPress development, WooCommerce, multilingual websites, SEO, and AI search visibility. Here we share practical tutorials, engineering decisions, lessons learned, and technical insights from building and maintaining real WordPress products. Website: https://aumcreate.com GitHub: https://github.com/aumcreate

## Responses 1

Markdown supported · ⌘↵ to post

[Mahdi Jabinpour](https://hashnode.com/@mahdi-lumowp)

[Oct 24](https://hashnode.com/posts/wordpress-mail-lands-in-spam-configure-smtp-spf-dkim-and-dmarc-in-the-right-order/6adc44f995df3b13ab99a29f/comment/6add13a4838a42a2d61b8c7e)

The destination-header test is the most useful part of this workflow. One detail worth correcting: an explicit sp tag is not required for the organizational domain’s p policy to cover existing subdomains. Under DMARC policy discovery, p is the fallback when no more specific policy overrides it. RFC 9989’s sp definition makes that inheritance explicit. Clarifying this would help readers avoid changing DNS based on the assumption that subdomains are otherwise uncovered.
