Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

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

Requirements

Role Variables

variable typecomment
debugbool Set to true for some extra info.
mxdomainstringYour mx record domain.
domainstringYour mailfrom domain. By default the subdomain is cut.
certbot_emailstringYour email for registration with letsencrypt.
certbot_flagsstringShould be fine as it is.
dkim_selectorstring 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_pathstringShould be fine as it is. It's where letsencrypt saves your certificate
privkey_pathstringSame as above.

Dependencies

Example Playbook

See tests/test.yml.

About

Ansible role to set up postfix with letsencrypt, dovecot and opendkim

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors