https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8213

            Bug ID: 8213
           Summary: TCP fallback not working with UDP truncated TXT
                    response
           Product: Spamassassin
           Version: 4.0.0
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Libraries
          Assignee: dev@spamassassin.apache.org
          Reporter: mickael.mail...@gmail.com
  Target Milestone: Undefined

I have lot's of error in my logs:
dns: reply to 11154/IN/TXT/adp.com truncated (EDNS 4096 bytes), 0 answer
records
dns: reply to 63685/IN/TXT/puma.com truncated (EDNS 4096 bytes), 0 answer
records
dns: reply to 7868/IN/TXT/amazon.com truncated (EDNS 4096 bytes), 0 answer
records
dns: reply to 10421/IN/TXT/microsoft.com truncated (EDNS 4096 bytes), 0 answer
records

and i found a bug for this from 2022:
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8021

Maybe i can fix the problem by allowing UDP to 4096 bytes but i'm sure that TCP
fallback isn't working.

I made a simple perl script with only Net::DNS::Resolver, and it fallback to a
tcp request with the full response.

But SpamAssassin always fail with every info in debug:
spf: using Mail::SPF for SPF checks
spf: checking EnvelopeFrom (helo=mtagate22.edf.fr, ip=163.62.134.34,
envfrom=prvs=7513b4786=service-facturation...@edf.fr)
dns: bgsend, DNS servers: [172.16.40.200]:53
dns: attempt 1/1, trying connect/sendto to [172.16.40.200]:53
dns: providing a callback for id: 59896/IN/TXT/edf.fr
dbg: dns: bgread: received 35 bytes from 172.16.40.200
dns: dns reply 59896 is OK, 0 answer records
dns: reply to 59896/IN/TXT/edf.fr truncated (EDNS 1000 bytes), 0 answer records
spf: query for
prvs=7513b4786=service-facturation...@edf.fr/163.62.134.34/mtagate22.edf.fr:
result: none, comment: , text: No applicable sender policy available            

And with edns=512
dbg: dns: dns reply 59102 is OK, 8 answer records
info: dns: reply to 59102/IN/TXT/edf.fr truncated (EDNS off), 8 answer records
dbg: askdns: answer received (__PDS_SPF_ONLYALL), rcode NOERROR, query
IN/TXT/edf.fr, answer has 8 records
But the answer does not contain all txt fields and miss the spf info.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to