I think there’s an issue with the SPF record on forum.k9mail.app. My mailserver doesn’t like it and is sending forum notifications to Junk by default.
2025-03-27 15:57:33 #787(rspamd_proxy) <A8DA19>; spf; parse_spf_a: unresolvable A element for amxip4:109.230.236.132ip6:2a05:bec0:1:3::42-all: forum.k9mail.app
(FWIW this is rspamd v3.11.1 as shipped and configured by docker-mailserver v15.0.2.)
Here’s the record itself, as supplied by one of the authoritative nameservers:
If a published record contains multiple character-strings, then the record MUST be treated as if those strings are concatenated together without adding spaces.
The SPF should be stored as one single quoted string, not a mutli-part like shown here. They would be reassembled without the required spaces as described in the original post.
I wonder if this is an unintentional side effect of Cloudflare’s recent change to how they handle TXT RRs. They used to not place quotes in the records.
If someone with access to the Cloudflare account sees this, it would be worth checking out that record.
I forgot to mention another issue though (sorry, let me know if I should post a new topic): forum.k9mail.app’s SMTP sender has IPv6 enabled, but there is no IPv6 reverse DNS. This yields a large penalty from my mailserver’s default anti-spam ruleset:
If setting a PTR for 2a05:bec0:1:3::42 is difficult, configuring the SMTP sender on forum.k9mail.app to prefer IPv4 may help. (For Postfix I believe that would be smtp_address_preference = ipv4 in main.cf.)