Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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