forked from Deuxfleurs/infrastructure
Read domain name from LDAP
This commit is contained in:
parent
9b7fd2fc0a
commit
3534ba1a19
4 changed files with 24 additions and 5 deletions
|
@ -0,0 +1,12 @@
|
||||||
|
bind = yes
|
||||||
|
bind_dn = {{ key "secrets/email/postfix/ldap_binddn" | trimSpace }}
|
||||||
|
bind_pw = {{ key "secrets/email/postfix/ldap_bindpwd" | trimSpace }}
|
||||||
|
version = 3
|
||||||
|
timeout = 20
|
||||||
|
start_tls = no
|
||||||
|
tls_require_cert = no
|
||||||
|
server_host = ldap://bottin2.service.2.cluster.deuxfleurs.fr
|
||||||
|
scope = sub
|
||||||
|
search_base = ou=domains,ou=groups,dc=deuxfleurs,dc=fr
|
||||||
|
query_filter = (&(objectclass=dNSDomain)(domain=%s))
|
||||||
|
result_attribute = domain
|
|
@ -90,13 +90,10 @@ slow_destination_concurrency_limit = 2
|
||||||
# Transport configuration
|
# Transport configuration
|
||||||
#====
|
#====
|
||||||
transport_maps = hash:/etc/postfix/transport
|
transport_maps = hash:/etc/postfix/transport
|
||||||
virtual_mailbox_domains = deuxfleurs.fr, dufour.io, dufour.tk
|
virtual_mailbox_domains = ldap:/etc/postfix/ldap-virtual-domains.cf
|
||||||
virtual_mailbox_maps = ldap:/etc/postfix/ldap-account.cf
|
virtual_mailbox_maps = ldap:/etc/postfix/ldap-account.cf
|
||||||
#virtual_alias_domains = deuxfleurs.fr, dufour.io, dufour.tk
|
|
||||||
virtual_alias_maps = ldap:/etc/postfix/ldap-alias.cf
|
virtual_alias_maps = ldap:/etc/postfix/ldap-alias.cf
|
||||||
virtual_transport = lmtp:dovecot-lmtp.service.2.cluster.deuxfleurs.fr:24
|
virtual_transport = lmtp:dovecot-lmtp.service.2.cluster.deuxfleurs.fr:24
|
||||||
#master_service_disable =
|
|
||||||
#tcp_windowsize = 1400
|
|
||||||
|
|
||||||
#===
|
#===
|
||||||
# Mail filters
|
# Mail filters
|
||||||
|
|
|
@ -356,6 +356,16 @@ job "email" {
|
||||||
destination = "secrets/postfix/ldap-alias.cf"
|
destination = "secrets/postfix/ldap-alias.cf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifact {
|
||||||
|
source = "http://127.0.0.1:8500/v1/kv/configuration/email/postfix/ldap-virtual-domains.cf.tpl?raw"
|
||||||
|
destination = "secrets/postfix/ldap-virtual-domains.cf.tpl"
|
||||||
|
mode = "file"
|
||||||
|
}
|
||||||
|
template {
|
||||||
|
source = "secrets/postfix/ldap-virtual-domains.cf.tpl"
|
||||||
|
destination = "secrets/postfix/ldap-virtual-domains.cf"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template {
|
template {
|
||||||
data = "{{ key \"configuration/email/postfix/postfix.crt\" }}"
|
data = "{{ key \"configuration/email/postfix/postfix.crt\" }}"
|
||||||
|
|
|
@ -182,7 +182,7 @@ job "jitsi" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 300
|
cpu = 300
|
||||||
memory = 200
|
memory = 400
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue