A role to manage Dovecot.
dovecot_fqdn: "{{ ansible_fqdn }}"dovecot_domain: "{{ ansible_domain }}"dovecot_auth_passwdfile: trueUse passwordfiles for User, created out of var mailuserdovecot_auth_pgsql: falseUse postgresql database for User, not full supported by this roledovecot_imapd: trueEnable imap module in dovecot, required for use imapdovecot_lmtpd: trueEnable local mail transport in dovecotdovecot_sieve: falseEnable serverside filterdovecot_sieve_default_script: falseUse default sieve rule files/default.sieveufw_imap_public: "{{ dovecot_imapd }}"Open TCP 143 in Firewallufw_imaps_public: "{{ dovecot_imapd }}"Open TCP 993 in Firewalldovecot_cert_path: "/etc/ssl/letsencrypt/certs/{{ postfix_fqdn }}"Path to SSL certsdovecot_postmaster: "postmaster@{{ dovecot_domain }}"Address of Postmaster (Sender address for error messages)dovecot_max_userip_connections: 10Numer of parallel connections to imap per userdovecot_auth_mechanisms: plain loginConfigure sasl auth mechanismsdovecot_imap_idle_notify_interval: "2 mins"Timeout to close IDLE connections without activity
- hosts: servers
vars:
- mailuser:
- domain: "{{ ansible_domain }}"
users:
- username: "test"
pass: "{{ mailpw_test_vault }}"
UID: 5001
- username: "foo"
hash: "{{ mailpwhash }}"
UID: 5002
roles:
- role: pcopfer.dovecot
BSD
pcopfer