{"action":"created","issue":{"url":"https://api.github.com/repos/void-linux/void-packages/issues/5777","repository_url":"https://api.github.com/repos/void-linux/void-packages","labels_url":"https://api.github.com/repos/void-linux/void-packages/issues/5777/labels{/name}","comments_url":"https://api.github.com/repos/void-linux/void-packages/issues/5777/comments","events_url":"https://api.github.com/repos/void-linux/void-packages/issues/5777/events","html_url":"https://github.com/void-linux/void-packages/issues/5777","id":390562363,"node_id":"MDU6SXNzdWUzOTA1NjIzNjM=","number":5777,"title":"opensmtpd: Cannot send mails from a musl system","user":{"login":"QuadPiece","id":6379091,"node_id":"MDQ6VXNlcjYzNzkwOTE=","avatar_url":"https://avatars1.githubusercontent.com/u/6379091?v=4","gravatar_id":"","url":"https://api.github.com/users/QuadPiece","html_url":"https://github.com/QuadPiece","followers_url":"https://api.github.com/users/QuadPiece/followers","following_url":"https://api.github.com/users/QuadPiece/following{/other_user}","gists_url":"https://api.github.com/users/QuadPiece/gists{/gist_id}","starred_url":"https://api.github.com/users/QuadPiece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuadPiece/subscriptions","organizations_url":"https://api.github.com/users/QuadPiece/orgs","repos_url":"https://api.github.com/users/QuadPiece/repos","events_url":"https://api.github.com/users/QuadPiece/events{/privacy}","received_events_url":"https://api.github.com/users/QuadPiece/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-13T08:10:33Z","updated_at":"2018-12-16T14:47:00Z","closed_at":null,"author_association":"NONE","body":"### System\r\n\r\n* xuname:  \r\n  `Void 4.19.8_1 x86_64-musl GenuineIntel/KVM uptodate F`\r\n* package:  \r\n  `opensmtpd-6.4.0p2_1`\r\n\r\n### Expected behavior\r\nOpenSMTPD sends external mails as intended\r\n\r\n### Actual behavior\r\nEvery time I send mail to an external address, OpenSMTPD fails with logs showing output similar to this:\r\n\r\n```\r\n2018-12-13T06:27:46.731661+00:00 hostname smtpd[1606]: smtp-out: Failed to resolve MX for [relay:gmail.com,smtp]: Temporary failure in MX lookup\r\n2018-12-13T06:27:46.731697+00:00 hostname smtpd[1606]: 0000000000000000 mta delivery evpid=[redacted] from=<contact@quad.moe> to=<someone@gmail.com> rcpt=<-> source=\"-\" relay=\"gmail.com\" delay=0s result=\"TempFail\" stat=\"Temporary failure in MX lookup\"\r\n```\r\n\r\nIt seems that OpenSMTPD cannot properly perform DNS lookups on a musl system, for whatever reason.\r\n\r\nFound this OpenSMTPD issue, maybe it's relevant or helpful: https://github.com/OpenSMTPD/OpenSMTPD/issues/798\r\n\r\n### Steps to reproduce the behavior\r\n\r\n1. Set up opensmtpd-based mail server on a musl system\r\n2. Try sending mail to any external SMTP server\r\n\r\nClearing `resolv.conf` and putting only `nameserver 8.8.8.8` and `nameserver 8.8.4.4` in the file does not help. \r\n\r\nOriginally posted as a reply to https://github.com/voidlinux/void-packages/issues/6972, but I forgot the repos had moved"},"comment":{"url":"https://api.github.com/repos/void-linux/void-packages/issues/comments/447648777","html_url":"https://github.com/void-linux/void-packages/issues/5777#issuecomment-447648777","issue_url":"https://api.github.com/repos/void-linux/void-packages/issues/5777","id":447648777,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzY0ODc3Nw==","user":{"login":"chneukirchen","id":139,"node_id":"MDQ6VXNlcjEzOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/139?v=4","gravatar_id":"","url":"https://api.github.com/users/chneukirchen","html_url":"https://github.com/chneukirchen","followers_url":"https://api.github.com/users/chneukirchen/followers","following_url":"https://api.github.com/users/chneukirchen/following{/other_user}","gists_url":"https://api.github.com/users/chneukirchen/gists{/gist_id}","starred_url":"https://api.github.com/users/chneukirchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chneukirchen/subscriptions","organizations_url":"https://api.github.com/users/chneukirchen/orgs","repos_url":"https://api.github.com/users/chneukirchen/repos","events_url":"https://api.github.com/users/chneukirchen/events{/privacy}","received_events_url":"https://api.github.com/users/chneukirchen/received_events","type":"User","site_admin":false},"created_at":"2018-12-16T14:47:00Z","updated_at":"2018-12-16T14:47:00Z","author_association":"CONTRIBUTOR","body":"Please update libasr (55b8e0a8fc)."}}
{"actor":{"display_login":"chneukirchen"}}