1
0
forked from infra/ansible

Use more variables for mail templates.

This commit is contained in:
Markus 2016-02-15 21:30:24 +01:00
parent fbcac9f826
commit 68cdb42b77
4 changed files with 10 additions and 11 deletions

View File

@ -1,6 +1,6 @@
server_host = {{ ldap_host }}
start_tls = yes
#tls_ca_cert_file =
#tls_ca_cert_file = TODO
#tls_require_cert = yes
bind = yes
bind_dn = {{ ldap_binddn }}

View File

@ -1,13 +1,13 @@
server_host = {{ ldap_host }}
start_tls = yes
#tls_ca_cert_file =
#tls_ca_cert_file = TODO
#tls_require_cert = yes
bind = yes
bind_dn = {{ ldap_binddn }}
bind_pw = {{ ldap_bindpw }}
version = 3
search_base = dc=binary-kitchen,dc=de
search_base = {{ ldap_base }}
query_filter = (&(objectClass=mailUser)(mail=%s))
result_attribute = uid
result_format = %u/.maildir/

View File

@ -21,11 +21,10 @@ inet_interfaces = all
message_size_limit = 50000000
recipient_delimiter = +
mydomain = binary-kitchen.com
myhostname = ptest.binary-kitchen.com
myorigin = binary-kitchen.com
# fixme
mydestination = ptest.binary.kitchen, localhost.binary.kitchen, localhost
mydomain = {{ mail_domain }}
myhostname = {{ ansible_fqdn }}
myorigin = {{ ansible_fqdn }}
mydestination = localhost.{{ mail_domain }}, localhost
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
alias_maps = hash:/etc/aliases
@ -78,7 +77,7 @@ rblgrey = reject_rbl_client sbl.spamhaus.org
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
virtual_mailbox_domains = binary-kitchen.com
virtual_mailbox_domains = {{ mail_domain }}
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox
virtual_alias_maps = hash:/etc/postfix/virtual_alias
#virtual_mailbox_maps = ldap:/etc/postfix/ldap-virtual-maps.cf