Email Validation - DNS
by Kitworks Systems https://github.com/kitworks-systems/email-validationAvailability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
CRM (crm)
• Calendar (calendar) • Contacts (contacts) • Discuss (mail) |
Community Apps Dependencies | Show |
Lines of code | 785 |
Technical Name |
kw_email_validation_dnspython |
License | LGPL-3 |
Website | https://github.com/kitworks-systems/email-validation |
Versions |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
CRM (crm)
• Calendar (calendar) • Contacts (contacts) • Discuss (mail) |
Community Apps Dependencies | Show |
Lines of code | 785 |
Technical Name |
kw_email_validation_dnspython |
License | LGPL-3 |
Website | https://github.com/kitworks-systems/email-validation |
Versions |
Email Validation with DNS Verification
This module extends the base email validation functionality with DNS-based verification using the dnspython library. It adds an additional layer of validation by checking the existence of MX records for email domains, significantly improving the accuracy of email validation without requiring external API services.
Key features include:
- DNS-based domain verification using MX record lookups
- Integration with the base email validation system
- No external API dependencies or costs
- Improved validation accuracy compared to syntax-only checks
Technical Details
- Implementation: Adds a new validator to the kw.email.validator model
- Validation Method:
- Checks for the existence of MX records for the email domain
- Falls back to A record check if MX records are not found
- Validates that the domain can receive email
- Performance:
- Fast validation without external API calls
- Minimal network overhead compared to full SMTP checks
Benefits
- Cost-Effective: No external API costs or rate limits
- Privacy: Email addresses are not shared with third-party services
- Reliability: No dependency on external service availability
- Speed: Fast DNS lookups compared to full SMTP validation
- Accuracy: More accurate than syntax-only validation
Limitations
While DNS validation significantly improves validation accuracy, it has some limitations:
- Cannot verify if the specific mailbox exists (only validates the domain)
- Cannot detect disposable email addresses
- Cannot detect catch-all email configurations
- For these advanced validations, consider using API-based validators
Dependencies
- kw_email_validation: Base module providing core validation functionality
- dnspython: Python library for DNS queries
Configuration
No additional configuration is required for this module.
Bug Tracker
Bugs are tracked on https://kitworks.systems/requests. In case of trouble, please check there if your issue has already been reported.
Maintainer
KitWorks Systems. Our web site: https://kitworks.systems
We can provide you further Odoo Support, Odoo implementation, Odoo customization, Odoo 3rd Party development and integration software, consulting services. Our main goal is to provide the best quality product for you.
For any questions contact us.
Please log in to comment on this module