
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Validates Sender Policy Framework (SPF) strings to ensure they are formatted correctly.
spf-validator is a Python package for validating Sender Policy Framework strings and records to ensure they are formatted correctly.
The validation returns a list of strings where each string, if any, is an issue with the SPF record.
Use pip to install:
pip install spf-validator
There are two main functions in the package: validate_spf_string
and validate_domain_spf
. Both of these will return a list of strings where each string, if any, is an issue with the SPF record.
To validate an SPF string, use validate_spf_string
by passing it the string.
To use:
from spf_validator import validator
issues_list = validator.validate_spf_string('v=spf1 a mx include:_spf.google.com ~all')
To validate an SPF record on a given domain, use validate_domain_spf
by passing it the domain. This will retrieve the TXT records for the domain, locate the SPF record, and validate it.
To use:
from spf_validator import validator
issues_list = validator.validate_domain_spf('google.com')
Community made feature requests, patches, bug reports, and contributions are always welcome.
Please review our contributing guidelines if you decide to make a contribution.
This project is licensed under the MIT License. See LICENSE for more details.
FAQs
Validates Sender Policy Framework (SPF) strings to ensure they are formatted correctly.
We found that spf-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.