Logo
Explore Help
Sign In
engineering/ansible_role_mail
1
0
Fork 0
You've already forked ansible_role_mail
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
1300e7acc6079853a824fe2d9dfd79d8b01f6b4d
ansible_role_mail/templates/virtual_mailbox_maps.j2

9 lines
272 B
Plaintext
Raw Normal View History

feat(postfix): implement virtual mailbox configuration for Dovecot LMTP Updates the Postfix configuration to correctly handle virtual domains when Dovecot LMTP is enabled, moving away from local system delivery settings. - Removes `postfix_mail_domain` from `postfix_mydestination` to prevent conflicts with virtual domain handling. - Updates `main.cf` to set `virtual_transport`, `virtual_mailbox_domains`, and `virtual_mailbox_maps` instead of `mailbox_transport`. - Adds a new template `virtual_mailbox_maps.j2` to authorize specific users defined in `dovecot_users`. - Adds tasks to generate the virtual mailbox map file and run `postmap` upon changes.
2026-02-11 14:49:22 -03:00
# Virtual mailbox maps for Postfix
# Ansible managed: {{ ansible_managed }}
# Format: user@domain OK
{% if dovecot_users is defined and dovecot_users | length > 0 %}
{% for user in dovecot_users %}
{{ user.name }}@{{ postfix_mail_domain }} OK
{% endfor %}
{% endif %}
Reference in New Issue Copy Permalink
Powered by Gitea
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API