Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/komachi/ansible-docker-mailserver
Deploy docker-mailserver to Debian GNU/Linux box
https://github.com/komachi/ansible-docker-mailserver
ansible ansible-playbook docker-mailserver playbook
Last synced: 3 months ago
JSON representation
Deploy docker-mailserver to Debian GNU/Linux box
- Host: GitHub
- URL: https://github.com/komachi/ansible-docker-mailserver
- Owner: komachi
- License: isc
- Created: 2020-02-25T13:39:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-21T16:58:14.000Z (8 months ago)
- Last Synced: 2024-06-22T09:26:12.533Z (8 months ago)
- Topics: ansible, ansible-playbook, docker-mailserver, playbook
- Language: Jinja
- Homepage:
- Size: 34.2 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-docker-mailserver
This 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.
## Variables
```
docker_mailserver_domainname: "example.com"
docker_mailserver_hostname: "mail"
email: "[email protected]"
email_password: "changeme"
certbot_certs:
- email: "{{ email }}"
domains:
- "{{ docker_mailserver_hostname }}.{{ docker_mailserver_domainname }}"
```## DNS settings
You need to create some DNS records first.
1. Create `A` and `AAAA` records which points to your server.
2. Create DMARC record: type `TXT`, name `_dmarc`, value `v=DMARC1; p=none`
3. Create SPF record: type `TXT`, name `@`, value: `v=spf1 mx -all`
4. Create MX record: type `MX`, name `@`, value: yours server hostname.After 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`
Also you should create reverse DNS record pointing to your mailserver domain.