{"action":"created","issue":{"url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/1","labels_url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/1/comments","events_url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/1/events","html_url":"https://github.com/vitalk/ansible-mail-stack/issues/1","id":85443193,"number":1,"title":"Example and description","user":{"login":"hhirsch","id":2451426,"avatar_url":"https://avatars.githubusercontent.com/u/2451426?v=3","gravatar_id":"","url":"https://api.github.com/users/hhirsch","html_url":"https://github.com/hhirsch","followers_url":"https://api.github.com/users/hhirsch/followers","following_url":"https://api.github.com/users/hhirsch/following{/other_user}","gists_url":"https://api.github.com/users/hhirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/hhirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhirsch/subscriptions","organizations_url":"https://api.github.com/users/hhirsch/orgs","repos_url":"https://api.github.com/users/hhirsch/repos","events_url":"https://api.github.com/users/hhirsch/events{/privacy}","received_events_url":"https://api.github.com/users/hhirsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T05:58:59Z","updated_at":"2015-06-05T08:49:37Z","closed_at":null,"body":"Hello,\r\n\r\ncan you provide an example on how to set it up?\r\nCan you also provide an example on how to add a user?\r\n\r\nWill this enable a server to send and receive mails? Does it provide imap?"},"comment":{"url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/comments/109205741","html_url":"https://github.com/vitalk/ansible-mail-stack/issues/1#issuecomment-109205741","issue_url":"https://api.github.com/repos/vitalk/ansible-mail-stack/issues/1","id":109205741,"user":{"login":"vitalk","id":1663958,"avatar_url":"https://avatars.githubusercontent.com/u/1663958?v=3","gravatar_id":"","url":"https://api.github.com/users/vitalk","html_url":"https://github.com/vitalk","followers_url":"https://api.github.com/users/vitalk/followers","following_url":"https://api.github.com/users/vitalk/following{/other_user}","gists_url":"https://api.github.com/users/vitalk/gists{/gist_id}","starred_url":"https://api.github.com/users/vitalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitalk/subscriptions","organizations_url":"https://api.github.com/users/vitalk/orgs","repos_url":"https://api.github.com/users/vitalk/repos","events_url":"https://api.github.com/users/vitalk/events{/privacy}","received_events_url":"https://api.github.com/users/vitalk/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T08:49:37Z","updated_at":"2015-06-05T08:49:37Z","body":"Hi @hhirsch!\r\n\r\nAs you [can see](https://github.com/vitalk/ansible-mail-stack/blob/master/tasks/main.yml) that role doesn't do so much and only configure host to send mails via postfix MTA. Receiving mail should work as well, but not tested.\r\n\r\nIn the near feature I plan to:\r\n\r\n- provide configuration for [SPF](https://en.wikipedia.org/wiki/Sender_Policy_Framework), [DKIM](https://en.wikipedia.org/wiki/DomainKeys_Identified_Mail)\r\n- provide `imap` configuration via [dovecot](http://dovecot.org/)\r\n\r\nAt that moment I use it as one-click installation mail server for some of my applications:\r\n\r\n```ansible\r\n- name: Mail stack\r\n  hosts: example.com\r\n  sudo: yes\r\n  vars:\r\n    # Forward root mails into alice's mail.\r\n    postfix_notify_email: alice@gmail.com\r\n    postfix_hostname: example.com\r\n\r\n  roles:\r\n    - vitalk.mail-stack\r\n```"}}