Closed schack closed 1 year ago
If you need special handling for DNS, you can provide a custom DNS resolver to Mailauth. Mailauth uses dnsPromises.resolve method for all DNS queries and if you provide the resolver
option to Mailauth methods, it would use that method instead.
Thanks, sadly, I'm not sure how to implement that :-( Pretty new in the js world
Does the SPF query end with a temperror state? This is what is supposed to happen on DNS timeouts etc. To handle it either retry the request or improve your DNS stack. Increasing allowed time is not the correct approach - with UDP if you already need to wait you are probably not going to get the answer anyway. If the result is something else than temperror then it might be an issue on the Mailauth side.
Describe the bug Not really bug, just a question, and I couldn't find another way to contact you. Is there a way to configure DNS timeout values?
From time to time, I detect invalid SPF records, and if I try again, the issue is gone.
DNS timeouts are the only reason I can think of.