<domain>
Enables an SPF check of your own outgoing mail for messages to this receiver. The node checks the address it is about to send from against the SPF record of the return address domain — exactly as the receiving server will.
The outcomes are strict. Pass — delivery continues. TempError — the message goes back to the queue and is retried. Any other result is a bounce; the message does not go out.
It works only with an explicitly set sending address. smtp-source-host or smtp-proxy-source-host is needed — at the node or stream level. Without them there is nothing to check, and the node behaves as on a temporary error: messages pile up in the queue.
The bounce domain gets no, everyone else yes. This is the manual’s direct recommendation, not caution.
First the sending address, then the check. Without an explicitly set address, enabling it leads not to bounces but to a stuck queue.
Check by hand before enabling. The pmta check spf command gives the same result but bounces nothing.
# no for the bounce domain, yes for everyone else <domain yourbouncedomain.com> check-spf-outbound no </domain> <domain *> check-spf-outbound yes</domain>
what people get wrong and how it ends3 mistakes▶
§ 10.2
§ 10.2
our experience
3 relations
smtp-source-hostGlobalThe sending address without which there is nothing to run the check with. § 3.3.10.2smtp-proxy-source-hostGlobalThe second way to set a sending address — when working through a proxy. § 3.3.10.2
pmta show settings gmail.com/vmta1 | grep -i check-spf-outbound pmta check spf 203.0.113.10 mail.example.com sender@example.com
3 articles
◇Do not send what will fail the check at the receiverThe node checks the SPF of its own mail before sending: if it fails, it bounces the message without waiting for someone else’s refusal.◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇The watchdog that restarts the engineKeeps an eye on the engine and brings it back up after a crash by itself, sending a crash report to the postmaster address.