Skip to content

Ansible role to prepare the setup for a mail server with postfix und dovecot

License

Notifications You must be signed in to change notification settings

roles-ansible/ansible_role_mailserver_preperations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible_role_mailserver_preperations

Preperation, User and Database Configuration ansible role for a mailserver Setup

ATTENTION

THIS IS A WORK IN PROGRESS

BE CAREFULL, IF YOU THINK ABOUT USING IT. EVERYTHING HERE CAN CHANGE!!!

IT IS NOT FULLY DOCUMENTATED, NOT EVEN THE OTHER REQUIRED ROLES

What is the purpose of this Ansible role?

The Ansible role was created when L3D set up a mail server. This role performs a few preliminary tasks for the mail server setup.

The role is intended to be used in conjunction with the following Ansible roles to set up a mail server. The setup was largely inspired by the instructions on https://thomas-leister.de/mailserver-debian-buster/.

What exactly is being done?

As an optional step, a simple version check can be performed.

First, the hostname of the system is set. For a mailing server, the name of the server used is an important part. For more details have a look at tasks/hosts.yml

Next, create a user and a group for the mail history. And a few folders that are needed. More details in tasks/user.yml.

And as the last important step, a template for creating a database is deployed. And the data for the MySQL database is deployed. This requires that a mysql database exists before.

Testing

We are using some github actions for publishing and linting checks. If you know a good testing method for ansible that is using systemd stuff please let us know. For more infos about the tests, please have a look at the github marketplace.

test status Github Marketplace
Ansible Lint check ansible-lint action

About

Ansible role to prepare the setup for a mail server with postfix und dovecot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages