Skip to content

Ansible role to configure mailserver using postfix, dovecot, opendkim, letsencrypt

Notifications You must be signed in to change notification settings

aaamendes/mailserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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  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

About

Ansible role to configure mailserver using postfix, dovecot, opendkim, letsencrypt

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published