Run postmap after relevant files have changed.
This commit is contained in:
parent
04ca9ff769
commit
2bbe026cd2
@ -11,3 +11,12 @@
|
|||||||
|
|
||||||
- name: Restart postgrey
|
- name: Restart postgrey
|
||||||
service: name=postgrey state=restarted
|
service: name=postgrey state=restarted
|
||||||
|
|
||||||
|
- name: Run postmap
|
||||||
|
command: postmap /etc/{{ item }}
|
||||||
|
with_items:
|
||||||
|
- postfix/helo_access
|
||||||
|
- postfix/ldap-aliases.cf
|
||||||
|
- postfix/ldap-virtual-maps.cf
|
||||||
|
- postfix/recipient_access
|
||||||
|
- postfix/virtual-alias
|
||||||
|
@ -60,17 +60,23 @@
|
|||||||
file: path=/etc/postfix/ssl state=directory mode=0750 owner=postfix group=postfix
|
file: path=/etc/postfix/ssl state=directory mode=0750 owner=postfix group=postfix
|
||||||
tags: mail
|
tags: mail
|
||||||
|
|
||||||
# TODO run postmap
|
|
||||||
- name: Configure postfix
|
- name: Configure postfix
|
||||||
|
template: src={{ item }}.j2 dest=/etc/{{ item }}
|
||||||
|
with_items:
|
||||||
|
- postfix/main.cf
|
||||||
|
- postfix/master.cf
|
||||||
|
notify: Restart postfix
|
||||||
|
tags: mail
|
||||||
|
|
||||||
|
- name: Configure postfix maps
|
||||||
template: src={{ item }}.j2 dest=/etc/{{ item }}
|
template: src={{ item }}.j2 dest=/etc/{{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- postfix/helo_access
|
- postfix/helo_access
|
||||||
- postfix/ldap-aliases.cf
|
- postfix/ldap-aliases.cf
|
||||||
- postfix/ldap-virtual-maps.cf
|
- postfix/ldap-virtual-maps.cf
|
||||||
- postfix/main.cf
|
|
||||||
- postfix/master.cf
|
|
||||||
- postfix/recipient_access
|
- postfix/recipient_access
|
||||||
notify: Restart postfix
|
- postfix/virtual-alias
|
||||||
|
notify: Run postmap
|
||||||
tags: mail
|
tags: mail
|
||||||
|
|
||||||
- name: Create razor directory structure
|
- name: Create razor directory structure
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
|
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
|
||||||
|
|
||||||
# Debian specific: Specifying a file name will cause the first
|
|
||||||
# line of that file to be used as the name. The Debian default
|
|
||||||
# is /etc/mailname.
|
|
||||||
|
|
||||||
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
|
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
|
||||||
biff = no
|
biff = no
|
||||||
|
|
||||||
@ -78,10 +74,9 @@ content_filter = amavis:[127.0.0.1]:10024
|
|||||||
receive_override_options = no_address_mappings
|
receive_override_options = no_address_mappings
|
||||||
|
|
||||||
virtual_mailbox_domains = {{ mail_domain }}
|
virtual_mailbox_domains = {{ mail_domain }}
|
||||||
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
|
virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual-maps.cf
|
||||||
virtual_alias_maps = hash:/etc/postfix/virtual_alias
|
virtual_alias_maps = hash:/etc/postfix/virtual-alias, ldap:/etc/postfix/ldap-aliases.cf
|
||||||
#virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual-maps.cf
|
#virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, hash:/etc/postfix/virtual-alias, ldap:/etc/postfix/ldap-aliases.cf
|
||||||
#virtual_alias_maps = hash:/var/lib/mailman/data/virtual-mailman, hash:/etc/postfix/virtual, ldap:/etc/postfix/ldap-aliases.cf
|
|
||||||
|
|
||||||
virtual_transport = dovecot
|
virtual_transport = dovecot
|
||||||
dovecot_destination_recipient_limit = 1
|
dovecot_destination_recipient_limit = 1
|
||||||
|
0
roles/mail/templates/postfix/virtual-alias.j2
Normal file
0
roles/mail/templates/postfix/virtual-alias.j2
Normal file
Loading…
Reference in New Issue
Block a user