Basic dovecot installation with submission protocol support.
Features:
- Handles IMAP protocol and authenticated mail submission through port 587.
dovecot_usersvariable provides user account configuration according to thepasswd-fileformat [0].- System's PAM authentication is disabled is disabled in
10-auth.confand only passwd-file is left enabled. - Mailbox path is configured in
10-mail.confto be{{ dovecot_mailbox_root_dir }}/%d/%n. For example fortest@example.comaccount and{{ dovecot_mailbox_root_dir }} = /home/vmailthe path will be/home/vmail/example.com/test. Mail Delivery Agent have to be configured in the same way to deliver messages to the correct mailbox. Postfix for example can be configured withvirtual_mailbox_baseandvirtual_mailbox_maps[1] options.
[0]: Passwd-file file format description: https://doc.dovecot.org/configuration_manual/authentication/passwd_file/
[1]: http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox
- Mail Delivery Agent (eg. Postfix). Dovecot's submission handler will pass received message to the SMTP server.
dovecot_mailbox_root_dir: /home/vmail
dovecot_cert_path: /etc/ssl/certs/ssl-cert-snakeoil.pem
dovecot_privkey_path: /etc/ssl/private/ssl-cert-snakeoil.key
dovecot_submission_hostname: mail.example.com
dovecot_users: [] # {login, password, uid, gid, home}
MIT