{"id":24953372,"url":"https://github.com/iamfarrokhnejad/emailval","last_synced_at":"2026-07-04T10:31:23.019Z","repository":{"id":258614354,"uuid":"874253052","full_name":"IAmFarrokhnejad/EmailVal","owner":"IAmFarrokhnejad","description":"An email verifier using Go","archived":false,"fork":false,"pushed_at":"2026-03-26T08:37:51.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T02:57:00.596Z","etag":null,"topics":["functional","functional-programming","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IAmFarrokhnejad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-17T14:01:40.000Z","updated_at":"2026-03-26T08:37:56.000Z","dependencies_parsed_at":"2025-03-28T19:46:04.171Z","dependency_job_id":"c40b38fb-cc12-4350-9a1b-8f0f962c81bd","html_url":"https://github.com/IAmFarrokhnejad/EmailVal","commit_stats":null,"previous_names":["iamfarrokhnejad/emailval"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IAmFarrokhnejad/EmailVal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmFarrokhnejad%2FEmailVal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmFarrokhnejad%2FEmailVal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmFarrokhnejad%2FEmailVal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmFarrokhnejad%2FEmailVal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IAmFarrokhnejad","download_url":"https://codeload.github.com/IAmFarrokhnejad/EmailVal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IAmFarrokhnejad%2FEmailVal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35118970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"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":["functional","functional-programming","go","golang"],"created_at":"2025-02-03T03:35:30.619Z","updated_at":"2026-07-04T10:31:23.013Z","avatar_url":"https://github.com/IAmFarrokhnejad.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Email Domain Validator\n\nA command-line tool to check email domain security records (MX, SPF, DMARC).  \nWritten in both **Go** and **Rust**, it reads a list of domain names from standard input and outputs a CSV report containing DNS lookup results.\n\n## Features\n\n- **MX Records** – Verify if the domain has mail exchange servers.\n- **SPF Records** – Detect Sender Policy Framework (TXT) records.\n- **DMARC Records** – Check for DMARC policies under `_dmarc.\u003cdomain\u003e`.\n- **Concurrent Processing** – Configurable number of workers for fast bulk checks.\n- **Timeout Control** – Set a per-lookup timeout to avoid hanging.\n- **CSV Output** – Results can be saved to a file or printed to stdout.\n- **Error Handling** – Errors are collected per domain and included in the output.\n\n## Usage\n\nBoth versions accept the same command-line arguments.\n\n| Flag               | Description                                | Default      |\n|--------------------|--------------------------------------------|--------------|\n| `-output`, `-o`    | Output CSV file (optional)                 | (stdout)     |\n| `-concurrency`, `-c`| Number of concurrent workers               | `10`         |\n| `-timeout`, `-t`   | Timeout for DNS lookups (e.g., `5s`, `1m`) | `10s`        |\n\nDomains are read **one per line** from **stdin**.\n\n### Examples\n\nCheck a list of domains from `domains.txt` and print results to the console:\n\n```bash\ncat domains.txt | ./emailVal\n```\n\nSame, but save results to `report.csv` using 20 workers and a 5‑second timeout:\n\n```bash\ncat domains.txt | ./emailVal --output report.csv --concurrency 20 --timeout 5s\n```\n\n## Go Version\n\n### Build\n\n```bash\ngo build -o emailVal main.go\n```\n\n### Run\n\n```bash\n./emailVal \u003c domains.txt\n```\n\n### Dependencies\n\nUses only the standard library (`net`, `context`, `encoding/csv`, etc.). No external dependencies required.\n\n## Rust Version\n\n### Build\n\nEnsure you have [Rust and Cargo](https://rustup.rs/) installed, then:\n\n```bash\ncargo build --release\n```\n\nThe binary will be placed in `target/release/emailVal`.\n\n### Dependencies\n\nAdd the following to your `Cargo.toml`:\n\n```toml\n[package]\nname = \"emailVal\"\nversion = \"0.1.0\"\nedition = \"2021\"\n\n[dependencies]\nclap = { version = \"4\", features = [\"derive\"] }\ncsv = \"1\"\nhumantime = \"2\"\ntokio = { version = \"1\", features = [\"full\"] }\ntrust-dns-resolver = \"0.23\"\nanyhow = \"1\"\n```\n\n### Run\n\n```bash\n./target/release/emailVal \u003c domains.txt\n```\n\n## Output Format\n\nThe tool outputs a CSV with the following columns:\n\n| Column          | Description                                        |\n|-----------------|----------------------------------------------------|\n| Domain          | The queried domain name                            |\n| Has MX          | `true` if at least one MX record exists            |\n| Has SPF         | `true` if a TXT record starting with `v=spf1` found|\n| SPF Record      | The full SPF TXT value (if any)                    |\n| Has DMARC       | `true` if a DMARC record (`v=DMARC1`) exists       |\n| DMARC Record    | The full DMARC TXT value (if any)                  |\n| MX Records      | Semi‑colon separated list of MX hosts              |\n| Errors          | Semi‑colon separated error messages (if any)       |\n\n## Example\n\nInput file `domains.txt`:\n\n```\nexample.com\ngoogle.com\nnonexistent.xyz\n```\n\nCommand:\n\n```bash\ncat domains.txt | ./emailVal -o result.csv\n```\n\nOutput `result.csv`:\n\n```csv\nDomain,Has MX,Has SPF,SPF Record,Has DMARC,DMARC Record,MX Records,Errors\nexample.com,true,false,,false,,,MX lookup error: no record found\ngoogle.com,true,true,v=spf1 include:_spf.google.com ~all,true,v=DMARC1; p=reject; sp=reject; rua=mailto:mailauth-reports@google.com,aspmx.l.google.com;alt1.aspmx.l.google.com;alt2.aspmx.l.google.com;alt3.aspmx.l.google.com;alt4.aspmx.l.google.com,\nnonexistent.xyz,false,false,,false,,,MX lookup error: no such host;SPF lookup error: no such host;DMARC lookup error: no such host\n```\n\n## License\n\nThis project is licensed under the MIT License – see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamfarrokhnejad%2Femailval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamfarrokhnejad%2Femailval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamfarrokhnejad%2Femailval/lists"}