There are extended time periods (multiple weeks at a time) where all Bitbucket e-mail notifications are marked as spam in my e-mail inbox. Since the problem is not permanent, I am missing important notifications when the problem starts and I don't realise.
My inbox uses rspamd. Here is an example spam result header:
X-Spamd-Result: default: False [11.39 / 15.00]; R_SPF_ALLOW(0.00)[+ip4:209.85.128.0/17]; TO_DN_NONE(0.00)[]; NEURAL_SPAM(2.96)[0.986,0]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; CTYPE_MIXED_BOGUS(1.00)[]; FORGED_SENDER(0.30)[pullrequests-reply@bitbucket.org,candid@k15t.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:~]; ARC_ALLOW(0.00)[i=1]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[caf_=cdauth,k15t=cdauth.eu]; FAKE_REPLY(1.00)[]; FROM_NEQ_ENVFROM(0.00)[pullrequests-reply@bitbucket.org,candid@k15t.com]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; HTML_SHORT_LINK_IMG_1(2.00)[]; TAGGED_RCPT(0.00)[k15t]; MIME_GOOD(-0.10)[multipart/mixed,multipart/related,multipart/alternative,text/plain]; RCPT_COUNT_ONE(0.00)[1]; BAD_REP_POLICIES(0.10)[]; MANY_INVISIBLE_PARTS(0.05)[1]; IP_SCORE(-0.56)[ipnet: 209.85.128.0/17(1.14), asn: 15169(-3.85), country: US(-0.09)]; BAYES_HAM(-1.95)[94.75%]; RCVD_IN_DNSWL_NONE(0.00)[169.208.85.209.list.dnswl.org : 127.0.5.0]; URIBL_SBL(6.50)[bitbucket.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[169.208.85.209.rep.mailspike.net : 127.0.0.17]; RCVD_TLS_ALL(0.00)[]; GREYLIST(0.00)[pass,body]; DMARC_POLICY_SOFTFAIL(0.10)[bitbucket.org : SPF not aligned (relaxed), No valid DKIM,none]
The biggest problem seems to be the URIBL_SBL rule.
The problem seems to be that the IP address 104.192.141.1, which is the A record for bitbucket.org, is listed in the blocklist.