{"id":20642321,"url":"https://github.com/komachi/ansible-docker-mailserver","last_synced_at":"2025-04-16T01:37:59.808Z","repository":{"id":148082468,"uuid":"243008526","full_name":"komachi/ansible-docker-mailserver","owner":"komachi","description":"Deploy docker-mailserver to Debian GNU/Linux box","archived":false,"fork":false,"pushed_at":"2024-06-21T16:58:14.000Z","size":35,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T03:32:10.053Z","etag":null,"topics":["ansible","ansible-playbook","docker-mailserver","playbook"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/komachi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-25T13:39:06.000Z","updated_at":"2024-06-21T16:58:17.000Z","dependencies_parsed_at":"2023-05-19T02:45:28.170Z","dependency_job_id":null,"html_url":"https://github.com/komachi/ansible-docker-mailserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komachi%2Fansible-docker-mailserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komachi%2Fansible-docker-mailserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komachi%2Fansible-docker-mailserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komachi%2Fansible-docker-mailserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komachi","download_url":"https://codeload.github.com/komachi/ansible-docker-mailserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182786,"owners_count":21226123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-playbook","docker-mailserver","playbook"],"created_at":"2024-11-16T16:08:46.734Z","updated_at":"2025-04-16T01:37:59.792Z","avatar_url":"https://github.com/komachi.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-docker-mailserver\n\nThis playbook deploy [docker-mailserver](https://github.com/tomav/docker-mailserver) to your Debian GNU/Linux box. It's complete solution you need to self-host your own mailserver. I use it myself.\n\n## Variables\n\n```\ndocker_mailserver_domainname: \"example.com\"\ndocker_mailserver_hostname: \"mail\"\nemail: \"example@example.com\"\nemail_password: \"changeme\"\ncertbot_certs:\n  - email: \"{{ email }}\"\n    domains:\n      - \"{{ docker_mailserver_hostname }}.{{ docker_mailserver_domainname }}\"\n```\n\n## DNS settings\n\nYou need to create some DNS records first.\n\n1. Create `A` and `AAAA` records which points to your server.\n2. Create DMARC record: type `TXT`, name `_dmarc`, value `v=DMARC1; p=none`\n3. Create SPF record: type `TXT`, name `@`, value: `v=spf1 mx -all`\n4. Create MX record: type `MX`, name `@`, value: yours server hostname.\n\nAfter that, you can run playbook. There is another one DNS record you should create: DKIM. Find it's content in `/etc/docker-mailserver/opendkim/keys/{{ domainname }}/{{ hostname }}.txt`\n\nAlso you should create reverse DNS record pointing to your mailserver domain.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomachi%2Fansible-docker-mailserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomachi%2Fansible-docker-mailserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomachi%2Fansible-docker-mailserver/lists"}