This repository contains the foundata.dovecot Ansible Collection.
It provides resources to manage and use Dovecot, a secure and high-performance open-source IMAP and POP3 server (mail server).
The primary resource in this collection to configure and maintain Dovecot. See the role's README.md for more information and usage examples.
mailserver_ldap_maildir.yml is a complete Dovecot mailserver setup - IMAP/LMTP/ManageSieve, Active Directory (LDAP) authentication, Maildir storage, per-user quota with warning mails, Sieve filtering and shared and public IMAP namespaces.
The deployment-specific values (mail domain, TLS certificate paths, LDAP/AD coordinates, mail storage, quota) are exposed as dovecot_playbook_* variables you override per environment.
Once the collection is installed (ansible-galaxy collection install foundata.dovecot), you can run the shipped playbook directly by its fully qualified name. Point it at your own inventory, supply the dovecot_playbook_* variables (e.g. via group_vars / host_vars / --extra-vars):
ansible-playbook foundata.dovecot.mailserver_ldap_maildir --inventory ./inventoryAlternatively, copy it into your own playbook repository and edit it to your needs.
See dependencies in galaxy.yml.
Copyright (c) 2026 foundata GmbH
This project is licensed under the GNU General Public License v3.0 or later (SPDX-License-Identifier: GPL-3.0-or-later), see LICENSES/GPL-3.0-or-later.txt for the full text.
The REUSE.toml file provides detailed licensing and copyright information in a human- and machine-readable format. This includes parts that may be subject to different licensing or usage terms, such as third-party components. The repository conforms to the REUSE specification. You can use reuse spdx to create a SPDX software bill of materials (SBOM).
This project was created and is maintained by foundata GmbH.
Initially based on an Ansible skeleton developed by foundata.