reacherhq / check-if-email-exists

Check if an email address exists without sending any email, written in Rust. Comes with a ⚙️ HTTP backend.
https://reacher.email
Other
4.22k stars 324 forks source link

Domain with MX record localhost marked as possible to accept emails #1469

Open UstyuzhaninAV opened 1 month ago

UstyuzhaninAV commented 1 month ago

Email to check

gaasd@we.de

From where did you run check-if-email-exists?

self hosted backend api

Version of check-if-email-exists (if running it yourself)

lastone

What happened?

Look please one issue, domain for example gaasd@we.de has MX record localhost and all emails must be mark as invalid but it's mark as unknown and "accepts_mail": true with is wrong.

Relevant log output

"input": "gaasd@we.de",
  "is_reachable": "unknown",
  "misc": {
    "is_disposable": false,
    "is_role_account": false,
    "gravatar_url": null,
    "haveibeenpwned": null
  },
  "mx": {
    "accepts_mail": true,
    "records": [
      "localhost."
    ]
  },
  "smtp": {
    "error": {
      "type": "SmtpError",
      "message": "io: Address not available (os error 99)"
    }
  },
  "syntax": {
    "address": "gaasd@we.de",
    "domain": "we.de",
    "is_valid_syntax": true,
    "username": "gaasd",
    "normalized_email": "gaasd@we.de",
    "suggestion": null
  },