payload: {"action":"created","issue":{"url":"https://api.github.com/repos/emersion/maddy/issues/58","repository_url":"https://api.github.com/repos/emersion/maddy","labels_url":"https://api.github.com/repos/emersion/maddy/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/emersion/maddy/issues/58/comments","events_url":"https://api.github.com/repos/emersion/maddy/issues/58/events","html_url":"https://github.com/emersion/maddy/issues/58","id":439106385,"node_id":"MDU6SXNzdWU0MzkxMDYzODU=","number":58,"title":"Per-domain TLS certificates","user":{"login":"foxcpp","id":37885127,"node_id":"MDQ6VXNlcjM3ODg1MTI3","avatar_url":"https://avatars0.githubusercontent.com/u/37885127?v=4","gravatar_id":"","url":"https://api.github.com/users/foxcpp","html_url":"https://github.com/foxcpp","followers_url":"https://api.github.com/users/foxcpp/followers","following_url":"https://api.github.com/users/foxcpp/following{/other_user}","gists_url":"https://api.github.com/users/foxcpp/gists{/gist_id}","starred_url":"https://api.github.com/users/foxcpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxcpp/subscriptions","organizations_url":"https://api.github.com/users/foxcpp/orgs","repos_url":"https://api.github.com/users/foxcpp/repos","events_url":"https://api.github.com/users/foxcpp/events{/privacy}","received_events_url":"https://api.github.com/users/foxcpp/received_events","type":"User","site_admin":false},"labels":[{"id":476990533,"node_id":"MDU6TGFiZWw0NzY5OTA1MzM=","url":"https://api.github.com/repos/emersion/maddy/labels/new%20feature","name":"new feature","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2019-05-01T09:01:00Z","updated_at":"2019-06-26T19:15:38Z","closed_at":null,"author_association":"COLLABORATOR","body":"Perhaps something like that:\r\n```\r\ntls perdomain {\r\n  <domain> <cert_file> <key_file>\r\n  _default cert_file key_file\r\n}\r\n```\r\n\r\nPossible using GetCertificate or GetConfigForClient callbacks in tls.Config."},"comment":{"url":"https://api.github.com/repos/emersion/maddy/issues/comments/506008743","html_url":"https://github.com/emersion/maddy/issues/58#issuecomment-506008743","issue_url":"https://api.github.com/repos/emersion/maddy/issues/58","id":506008743,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjAwODc0Mw==","user":{"login":"foxcpp","id":37885127,"node_id":"MDQ6VXNlcjM3ODg1MTI3","avatar_url":"https://avatars0.githubusercontent.com/u/37885127?v=4","gravatar_id":"","url":"https://api.github.com/users/foxcpp","html_url":"https://github.com/foxcpp","followers_url":"https://api.github.com/users/foxcpp/followers","following_url":"https://api.github.com/users/foxcpp/following{/other_user}","gists_url":"https://api.github.com/users/foxcpp/gists{/gist_id}","starred_url":"https://api.github.com/users/foxcpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foxcpp/subscriptions","organizations_url":"https://api.github.com/users/foxcpp/orgs","repos_url":"https://api.github.com/users/foxcpp/repos","events_url":"https://api.github.com/users/foxcpp/events{/privacy}","received_events_url":"https://api.github.com/users/foxcpp/received_events","type":"User","site_admin":false},"created_at":"2019-06-26T19:15:38Z","updated_at":"2019-06-26T19:15:38Z","author_association":"COLLABORATOR","body":"@NamedKitten \n\nConsider this:\nSet MX record for all domains to point to one domain (kitteh.pw, for example).  Enable per-domain authentication and storage (note that it requires users to specify the full address in login credentials). Then consider deploying autodiscovery protocols mentioned above or just tell users to use kitteh.pw as IMAP/SMTP server when connecting.\n\nThis issue basically boils down to autodiscovery protocols support in clients. Research is needed.\nWithout it - SNI makes (a lot) sense. I doubt many clients sorry autodiscovery.\n\nI think we can merge a PR to support it anyway, I'm not sure about config syntax though. Are there better options than one I described (and implemented but removed before merging in #59)? Somebody can just send a patch to revert the commit that removed it.\n\n"}}
other: {"actor":{"display_login":"foxcpp"}}