Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaamendes/mailserver
Ansible role to configure mailserver using postfix, dovecot, opendkim, letsencrypt
https://github.com/aaamendes/mailserver
ansible dovecot dovecot-configuration letsencrypt opendkim postfix
Last synced: 3 months ago
JSON representation
Ansible role to configure mailserver using postfix, dovecot, opendkim, letsencrypt
- Host: GitHub
- URL: https://github.com/aaamendes/mailserver
- Owner: aaamendes
- Created: 2024-08-18T12:32:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T18:06:43.000Z (4 months ago)
- Last Synced: 2024-09-27T15:04:23.994Z (3 months ago)
- Topics: ansible, dovecot, dovecot-configuration, letsencrypt, opendkim, postfix
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
mailserver
=========Configures mailserver using postfix, dovecot and opendkim.
A letsencrypt certificate will be requested using **standalone** method.
Make sure port 80 isn't used on your new mailserver
while running the playbook.### Tested on
[![Rocky Linux](https://img.shields.io/badge/Rocky%20Linux-10B981?logo=rockylinux&logoColor=fff)](#)Requirements
------------Role Variables
--------------| variable | type | comment |
| --- | --- | --- |
| debug | bool | Set to `true` for some extra info. |
| mxdomain | string | Your mx record domain. |
| domain | string | Your mailfrom domain. By default the subdomain is cut. |
| certbot_email | string | Your email for registration with letsencrypt. |
| certbot_flags | string | Should be fine as it is. |
| dkim_selector | string | Set it to what you like. It's the selector for dkim, could also be something like YYYYMMDD, e.g. 20240818. The path to your public key will be `/etc/opendkim/keys/mailfromdomain/20240818.txt` |
|fullchain_path | string | Should be fine as it is. It's where letsencrypt saves your certificate |
| privkey_path | string | Same as above. |Dependencies
------------Example Playbook
----------------See `tests/test.yml`.
Author Information
------------------Check out https://amendes.me