{"id":20286384,"url":"https://github.com/antoonline/python-check-all-opensrs-email-dns","last_synced_at":"2025-07-26T00:33:39.124Z","repository":{"id":162916838,"uuid":"638184675","full_name":"AntoOnline/python-check-all-opensrs-email-dns","owner":"AntoOnline","description":"Email Config Checker checks emails account spf, dns, dkim and email reachability.","archived":false,"fork":false,"pushed_at":"2023-05-09T09:26:50.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T04:12:32.300Z","etag":null,"topics":["dkim","dns","email","opensrs","python","spf"],"latest_commit_sha":null,"homepage":"https://anto.online","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoOnline.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T09:00:32.000Z","updated_at":"2023-05-09T09:07:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c881f098-394e-423d-a3cc-ca9e5b8ae8a4","html_url":"https://github.com/AntoOnline/python-check-all-opensrs-email-dns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoOnline/python-check-all-opensrs-email-dns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-check-all-opensrs-email-dns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-check-all-opensrs-email-dns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-check-all-opensrs-email-dns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-check-all-opensrs-email-dns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoOnline","download_url":"https://codeload.github.com/AntoOnline/python-check-all-opensrs-email-dns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoOnline%2Fpython-check-all-opensrs-email-dns/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267093818,"owners_count":24034950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dkim","dns","email","opensrs","python","spf"],"created_at":"2024-11-14T14:33:53.795Z","updated_at":"2025-07-26T00:33:39.055Z","avatar_url":"https://github.com/AntoOnline.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email Config Checker\n\nEmail Config Checker is a Python script that checks the DNS records for a list of email accounts. The script checks the MX record, SPF record, and DKIM record for each email account and tests the SMTP connection to the MX hostname.\n\n## Requirements\n\n- Python 3.x\n- `dnspython` library (`pip install dnspython`)\n\n## Usage\n\n1. Clone or download the repository to your local machine.\n2. Rename `config.ini.example` to `config.ini`.\n3. Open the `config.ini` file and customize the configuration settings as needed.\n4. Run the script by typing `python dns_checker.py` in the command line.\n\nThe script will loop through the email accounts in the `email_accounts` configuration and print out the DNS records and SMTP test results for each email account.\n\n## Example output\n\n```\nChecking email address john@example.com\nMX records for domain example.com: ['mx.example.com.cust.a.hostedemail.com.']\nSPF record for domain example.com: \"v=spf1 include:_spf.hostedemail.com ~all\"\nDKIM record for email john@example.com: \"v=DKIM1;t=s;p=exampleaYCaVwFGAdnQIhDAQAB\"\nEmail address john@example.com is working\n\nChecking email address sarah@example.com\nMX records for domain example.com: ['mx.example.com.cust.a.hostedemail.com.']\nSPF record for domain example.com: \"v=spf1 include:_spf.hostedemail.com ~all\"\nDKIM record for email sarah@example.com: \"v=DKIM1;t=s;p=exampleaYCaVwFGAdnQIhDAQAB\"\nEmail address sarah@example.com is working\nTotal number of failures: 0\n```\n\n## Configuration\n\nThe `config.ini` file contains the following configurations:\n\n### [emails]\n\n- `email_accounts`: A list of email accounts to check, separated by a newline.\n\n### [resolver]\n\n- `nameservers`: A comma-separated list of DNS servers to use for DNS resolution.\n- `timeout`: The DNS resolver timeout in seconds.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Want to connect?\n\nFeel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.\n\nOr just visit my [website](https://anto.online) to see what I do.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fpython-check-all-opensrs-email-dns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoonline%2Fpython-check-all-opensrs-email-dns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoonline%2Fpython-check-all-opensrs-email-dns/lists"}