{"action":"created","issue":{"url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/639","labels_url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/639/labels{/name}","comments_url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/639/comments","events_url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/639/events","html_url":"https://github.com/OpenSMTPD/OpenSMTPD/issues/639","id":110119297,"number":639,"title":"Misleading error message","user":{"login":"gtozzi","id":386394,"avatar_url":"https://avatars.githubusercontent.com/u/386394?v=3","gravatar_id":"","url":"https://api.github.com/users/gtozzi","html_url":"https://github.com/gtozzi","followers_url":"https://api.github.com/users/gtozzi/followers","following_url":"https://api.github.com/users/gtozzi/following{/other_user}","gists_url":"https://api.github.com/users/gtozzi/gists{/gist_id}","starred_url":"https://api.github.com/users/gtozzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtozzi/subscriptions","organizations_url":"https://api.github.com/users/gtozzi/orgs","repos_url":"https://api.github.com/users/gtozzi/repos","events_url":"https://api.github.com/users/gtozzi/events{/privacy}","received_events_url":"https://api.github.com/users/gtozzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-06T22:59:57Z","updated_at":"2015-10-07T19:56:00Z","closed_at":null,"body":"I am using this config line to relay all mail for a given domain to a different SMTP\r\n\r\n`accept from any for domain \"example.com\" relay via smtp://mysmtp.local`\r\n\r\nWhen *mysmtp.local* can't be resolved, the errors shown in maillog are:\r\n> Oct  7 00:39:51 host smtpd[8204]: relay: TempFail for da22753dbfba3245: session=0000000000000000, from=<someone@example.com>, to=<dest@example.com>, rcpt=<->, source=-, relay=mysmtp.local, delay=1d4h26m40s, stat=No MX found for domain\r\n> Oct  7 00:40:41 host smtpd[8204]: smtp-out: Failed to resolve MX for [relay:mysmtp.local,mx]: No MX found for domain\r\n\r\nI think these messages are misleading, maybe even wrong. I suggest you to change them in this or a similar way:\r\n* *\"No MX found for domain\"* becomes *\"Host not found\"*\r\n* *\"Failed to resolve MX for [relay:mysmtp.local,mx]: No MX found for domain\"* becomes *\"Failed to resolve host mysmtp.local\"*\r\n\r\nThank you for writing and sharing this very good software, that's just my 2c."},"comment":{"url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/comments/146310430","html_url":"https://github.com/OpenSMTPD/OpenSMTPD/issues/639#issuecomment-146310430","issue_url":"https://api.github.com/repos/OpenSMTPD/OpenSMTPD/issues/639","id":146310430,"user":{"login":"kusuriya","id":542669,"avatar_url":"https://avatars.githubusercontent.com/u/542669?v=3","gravatar_id":"","url":"https://api.github.com/users/kusuriya","html_url":"https://github.com/kusuriya","followers_url":"https://api.github.com/users/kusuriya/followers","following_url":"https://api.github.com/users/kusuriya/following{/other_user}","gists_url":"https://api.github.com/users/kusuriya/gists{/gist_id}","starred_url":"https://api.github.com/users/kusuriya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kusuriya/subscriptions","organizations_url":"https://api.github.com/users/kusuriya/orgs","repos_url":"https://api.github.com/users/kusuriya/repos","events_url":"https://api.github.com/users/kusuriya/events{/privacy}","received_events_url":"https://api.github.com/users/kusuriya/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T19:56:00Z","updated_at":"2015-10-07T19:56:00Z","body":"Really the message itself is actually correct, just not for this item, IMO it needs to be:\r\n```\r\nResolves domain but no MX records are present =  No MX found for domain\r\nTried to resolve a specific host for relay via or forward and no results come back = Hosname not found\r\nGot a Host name from DNS but can not connect to the host with the data that came back = Host not found.\r\n```"}}