Skip to content

[bug]: Auto-Generated SPF records in DNS causing authentication and failed mail #945

Answered by oddlama
wayneoutthere asked this question in Q&A
Discussion options

You must be logged in to vote

You probably have stalwart running on example.com instead of mail.example.com right? In that case the generated DNS records by stalwart will be incorrect since stalwart assumes you run it under a subdomain. In this case you actually need two spf records, one for the MX on the main domain example.com and one on the subdomain mail.example.com to allow the A record. But they are under different zones. If you run stalwart on the main domain, it will falsely output two records for example.com. What you should do is merge them and use a single record v=spf1 mx a ra=postmaster -all

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@wayneoutthere
Comment options

@mdecimus
Comment options

@wayneoutthere
Comment options

@oddlama
Comment options

Answer selected by wayneoutthere
@wayneoutthere
Comment options

@oddlama
Comment options

@wayneoutthere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #942 on November 22, 2024 06:28.