{"record":{"id":"4be6bac3b37371e1","repo":"phacility/phabricator","slug":"no-configured-mail-receiver-can-accept-mail-to-s","errorCode":null,"errorMessage":"No configured mail receiver can accept mail to '%s'.","messagePattern":"No configured mail receiver can accept mail to '(.+?)'\\.","errorType":"console","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/metamta/management/PhabricatorMailManagementReceiveTestWorkflow.php","lineNumber":146,"sourceCode":"        ->setAncestorClass('PhabricatorMailReceiver')\n        ->setFilterMethod('isEnabled')\n        ->execute();\n\n      $receiver = null;\n      foreach ($receivers as $possible_receiver) {\n        $possible_receiver = id(clone $possible_receiver)\n          ->setViewer($viewer)\n          ->setSender($user);\n\n        if (!$possible_receiver->canAcceptMail($pseudomail, $target)) {\n          continue;\n        }\n        $receiver = $possible_receiver;\n        break;\n      }\n\n      if (!$receiver) {\n        throw new Exception(\n          pht(\"No configured mail receiver can accept mail to '%s'.\", $to));\n      }\n\n      if (!($receiver instanceof PhabricatorObjectMailReceiver)) {\n        $class = get_class($receiver);\n        throw new Exception(\n          pht(\n            \"Receiver '%s' accepts mail to '%s', but is not a \".\n            \"subclass of PhabricatorObjectMailReceiver.\",\n            $class,\n            $to));\n      }\n\n      $object = $receiver->loadMailReceiverObject($to, $user);\n      if (!$object) {\n        throw new Exception(pht(\"No such object '%s'!\", $to));\n      }\n","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/metamta/management/PhabricatorMailManagementReceiveTestWorkflow.php#L128-L164","documentation":"receive-test iterates every configured mail receiver and asks canAcceptMail($pseudomail, $to); none accepted, so there is no route for that destination. The address is not configured as any application's email, and/or the monogram/object is not handled by any receiver - inbound mail to it would be silently undeliverable, which is exactly what the workflow reports.","triggerScenarios":"Passing --to an address that matches no PhabricatorMetaMTAApplicationEmail row (inbound addresses never configured, or a different domain), or a monogram for an object type whose application has no mail receiver enabled.","commonSituations":"Inbound mail not yet set up on a new install; testing an address from a different install or domain; receiver configuration limited to a subset of applications.","solutions":["If --to is an address: create the application email first (application's Email Addresses panel, e.g. Maniphest > Email Addresses) with that exact address, then retry.","If --to is a monogram: use one from an application that accepts inbound mail (e.g. a task T123 or revision D123).","Check that the address domain matches what you actually registered with your mail provider.","Re-run ./bin/mail receive-test after the receiver exists."],"exampleFix":"# before: no application owns this address\n./bin/mail receive-test --to reviews@example.com --as alincoln\n\n# after: create the application email (UI: Differential > Email Addresses,\n# or MetaMTA application email editor) for reviews@example.com, then\n./bin/mail receive-test --to reviews@example.com --as alincoln","handlingStrategy":"validation","validationCode":"// Before receive-test, confirm something will accept the destination.\nif (strpos($to, '@') !== false) {\n  $app_email = id(new PhabricatorMetaMTAApplicationEmailQuery())\n    ->setViewer($viewer)\n    ->withAddresses(array($to))\n    ->executeOne();\n  if (!$app_email) {\n    // configure the application email first\n  }\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Configure application email addresses before testing inbound delivery.","Keep the receiver domain list aligned with the addresses users actually mail."],"tags":["phabricator","cli","mail","routing","receiver","inbound"],"backgroundTag":"unroutable-inbound-address","analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}