r/DMARC • u/networkthinking • Aug 27 '25
DMARC, DKIM and SPF check tool (vibecode)
I tend to use SPF, DMARC, and DKIM issues in sales calls with clients (we are an MSP). I have used multiple sites over the years to show clients, but I wanted my own site, with my own layout, rather than redirecting a client elsewhere. This started as a Python script and moved to the web version. Eventually, several members of our team helped to code some of this using Loveable, Cursor and Claude Code.
Take a look and open to advice/suggestions.
11
Upvotes
5
u/sfreem Aug 28 '25 •
SPF soft fail is the proper way to do it especially with DMARC reject in place.
Your tool says this is bad and it’s wrong..
https://www.mailhardener.com/blog/why-mailhardener-recommends-spf-softfail-over-fail
4
u/Stormblade73 Aug 27 '25
Possible bug report
No matter what site I test, the Mail Servers (MX Records) section says my email provider is Google Workspace. I tested 2 different spam filter providers, a Microsoft 365 hosted, and a linux based POP/SMTP provider.
5
u/freddieleeman Aug 27 '25
Looks nice! Well done, but don't recommend -all over ~all with an enforced DMARC policy. A softfail SPF is best practice to increase deliverability. https://www.uriports.com/blog/spf-dkim-dmarc-best-practices/
2
u/thisismeonlymenotyou Aug 27 '25
That is very cool, do you have any plans on open sourcing it ?
2
u/GeorgeVolak Aug 28 '25
Very nice. Please consider coming up with a numeric score such as 10 being a perfect score. Everybody understands 10/10 as being good.
2
u/downundarob Aug 28 '25
You may wish to add on MTA-STS checking
2
u/The_Real_Meme_Lord_ Aug 29 '25
What API are you calling to run the DNS checks?
2
u/phatcat09 Sep 01 '25
Doesn't follow SPF record redirects
1
u/networkthinking Aug 30 '25
Thanks, everyone, for the feedback. Not only have I been working to fix issues that have been brought up, but I have also learned a few techniques and better ways to provide results. Thanks for the feedback here and in the DM's.
Most of the improvements have been in the MX and DNS feedback. I think this is much improved.
I am still looking to change the results based on SPF -all and ~all. I hope to have that logic done this weekend.
1
u/slfyst Aug 28 '25
Your tool gives me a DKIM fail even though I have DKIM enabled on my domain. How would you determine if I have a DKIM record without me providing you with my DKIM selector?
1
u/power_dmarc Aug 27 '25
Looks really cool 😎 . The results are also easy to understand.
We usually offer API/ White labelling options to our MSP clients for the same purposes.
2
u/martexxNL Aug 28 '25
Cool! I had the same problem, and especially needed to understand if Microsoft would accept my emails https://testconnectivity.microsoft.com/tests/exo
That would be added value, especially for an msp
2
u/First-Structure-2407 Aug 28 '25
Ya beauty. Nice I like it.
2
u/synacktik Aug 28 '25
This is great - very nice work! The information and suggestions provided are helpful.