Also search on the domain name for the virtual domain name in the ldap#642
Also search on the domain name for the virtual domain name in the ldap#642tomav merged 1 commit intodocker-mailserver:masterfrom johansmitsnl:issue-638
Conversation
|
@johansmitsnl, @tomav the tests are passing because we have currently no explicit unit test for virtual domains. We should extend the tests, so that we cover at least:
|
|
@alinmear agree to the tests. I'm not very familiar with the test of this project, could you create them based on the pull request? |
|
@johansmitsnl when i have time, i can check how to implement the tests. |
|
I have reworked the PR. @tomav I removed the conflict. @alinmear It should have these tests:
When the escaping is fixed remove the My production env that is used (and working): - VIRTUAL_HOST=mail.xxx.net
- LETSENCRYPT_HOST=mail.xxx.net
- [email protected]
- ENABLE_SPAMASSASSIN=1
- ENABLE_CLAMAV=1
- ENABLE_FAIL2BAN=1
- ENABLE_FAIL2BAN=0
- ENABLE_POSTGREY=0
- ONE_DIR=1
- DMS_DEBUG=0
- ENABLE_MANAGESIEVE=1
- SSL_TYPE=letsencrypt
- SASLAUTHD_PASSWD=
# >>> SASL Authentication
- ENABLE_SASLAUTHD=1
- SASLAUTHD_LDAP_SERVER=ldap
- SASLAUTHD_LDAP_PROTO=
- SASLAUTHD_LDAP_BIND_DN=cn=admin,dc=xxx,dc=net
- SASLAUTHD_LDAP_PASSWORD=xxx
- SASLAUTHD_LDAP_SEARCH_BASE=dc=xxx,dc=net
- SASLAUTHD_LDAP_FILTER=(&(objectClass=PostfixBookMailAccount)(uniqueIdentifier=%U))
- SASLAUTHD_MECHANISMS=ldap
# <<< SASL Authentication
# >>> Postfix Ldap Integration
- ENABLE_LDAP=1
- LDAP_SERVER_HOST=ldap
- LDAP_SEARCH_BASE=dc=xxx,dc=net
- LDAP_BIND_DN=cn=admin,dc=xxx,dc=net
- LDAP_BIND_PW=xxx
- LDAP_QUERY_FILTER_ALIAS=(&(mailAlias=%s)(mailEnabled=TRUE))
- LDAP_QUERY_FILTER_GROUP=(&(mailGroupMember=%s)(mailEnabled=TRUE))
- LDAP_QUERY_FILTER_USER=(&(mail=%s)(mailEnabled=TRUE))
- LDAP_QUERY_FILTER_DOMAIN=(&(\|(mail=*@%s)(mailalias=*@%s)(mailGroupMember=*@%s))(mailEnabled=TRUE))
# <<< Postfix Ldap Integration
# >>> Dovecot Ldap Integration
- DOVECOT_USER_FILTER=(&(objectClass=PostfixBookMailAccount)(\|(uniqueIdentifier=%n)(mail=%u)))
- DOVECOT_PASS_FILTER=(&(objectClass=PostfixBookMailAccount)(\|(uniqueIdentifier=%n)(mail=%u)))
# <<< Dovecot Ldap Integration |
|
Welcome @alinmear in |
|
@tomav thx for adding me ;) |
|
Restarted build. |
|
@johansmitsnl i will check this on the weekend. |
…p (Solves: #638) Added test to check email delivery for a other domain then the primary of the mailserver.
|
@johansmitsnl looks good to me; thx for the contribution. Anyone else, otherwise i would merge it?! |
See #638