Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DomainAcceptsNoMail returned if domain contains an invalid MX record with an empty target #413

Copy link
Copy link
@ValCanBuild

Description

@ValCanBuild
Issue body actions

Looking at a domain like this for example: clarionhg.com

Doing dns_get_record("clarionhg.com", DNS_MX); returns

[
    [
      "host" => "clarionhg.com",
      "class" => "IN",
      "ttl" => 752,
      "type" => "MX",
      "pri" => 10,
      "target" => "clarionhg-com.mail.protection.outlook.com",
    ],
    [
      "host" => "clarionhg.com",
      "class" => "IN",
      "ttl" => 752,
      "type" => "MX",
      "pri" => 10,
      "target" => "",
    ],
  ]

You can see they have a valid MX record (first one) but they also have an invalid one with an empty target. This causes the check in DNSCheckValidation->validateMxRecord to return a DomainAcceptsNoMail error and the whole check to fail.

This is wrong - even though the domain DNS is misconfigured it still contains a valid MX record ( the first one ) so it should pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.