Hello,

I'm using 5.0.11 NE in a lab with the following:

Zimbra Proxy zproxy.example.org

Zimbra Mailbox Server on mbx1.example.org

Zimbra Mailbox Server on mbx2.example.org

zimbra-ose.example.org is the domain for my test users

the default CoS is assigned to zimbra-ose.example.org


When I create users, Zimbra auto selects which mailbox server to assign the new user. I started noticing some users not working, and after looking closer, all these users were assigned to the Zimbra Proxy as their Mailbox Server!

Below is a quick for loop creating the users, and displaying the zimbraMailHost:


[zimbra@zproxy ~]$ for a in `seq 10 30`
> do
> zmprov -l ca ${a}@zimbra-ose.example.org test123
> zmprov -l ga ${a}@zimbra-ose.example.org zimbraMailHost
> done

6e93bffe-cc35-4201-b73f-75b36a273beb
# name 10@zimbra-ose.example.org
zimbraMailHost: mbx1.example.org

557b122a-be67-42ca-9085-e83e11743202
# name 11@zimbra-ose.example.org
zimbraMailHost: mbx1.example.org

2276ba74-0dc3-4d67-baa7-8f49df6b3c15
# name 12@zimbra-ose.example.org
zimbraMailHost: mbx2.example.org

bbb00ed7-c920-4fa3-8143-9d029b64b4ca
# name 13@zimbra-ose.example.org
zimbraMailHost: mbx1.example.org

45103714-c49e-4d43-870c-ee5156b200cf
# name 14@zimbra-ose.example.org
zimbraMailHost: mbx1.example.org

1c7462a2-3f43-416c-8c6b-e30c7299184e
# name 15@zimbra-ose.example.org
zimbraMailHost: mbx2.example.org

e8567f84-bea7-480a-bee4-2dbea33e01a1
# name 16@zimbra-ose.example.org
zimbraMailHost: mbx2.example.org

fd26ee09-da44-4183-8fdb-dd27867f8854
# name 17@zimbra-ose.example.org
zimbraMailHost: zproxy.example.org

7734e8a2-2152-4ab1-aff1-26a7bfa54615
# name 18@zimbra-ose.example.org
zimbraMailHost: zproxy.example.org

c82c5ade-11ee-4107-810f-1df75558c4d8
# name 19@zimbra-ose.example.org
zimbraMailHost: mbx2.example.org

4117aaed-86c1-4979-90c7-6d1f9be30a93
# name 20@zimbra-ose.example.org
zimbraMailHost: mbx1.example.org

70763aab-d971-45f8-ac58-e4dedd02ee8b
# name 21@zimbra-ose.example.org
zimbraMailHost: mbx2.example.org

<snip>



I looked closer, and zmprov gc default shows three zimbraMailHostPools!

# display zimbraMailHostPool's for default CoS
[zimbra@zproxy ~]$ zmprov -l gc default zimbraMailHostPool
# name default
zimbraMailHostPool: 5cd57206-b2b5-49d2-b6a5-c78ba12c0bac
zimbraMailHostPool: 870d1d05-8b0e-4d12-994e-79d21dd812c8
zimbraMailHostPool: 733a7fcf-d0b6-410d-833d-f9c2218771a9
[zimbra@zproxy ~]$

Sure enough, my zproxy.example.org is listed:

# display zimbraId for zproxy
[zimbra@zproxy ~]$ zmprov -l gs zproxy.example.org zimbraId
# name zproxy.example.org
zimbraId: 870d1d05-8b0e-4d12-994e-79d21dd812c8


I fixed it manually by typing:

# Remove Proxy from default CoS
[zimbra@zproxy ~]$ zmprov -l mc default -zimbraMailHostPool 870d1d05-8b0e-4d12-994e-79d21dd812c8


# zproxy zimbraService's
[zimbra@zproxy ~]$ zmprov -l gs zproxy.example.org | grep -i zimbraService

zimbraServiceEnabled: stats
zimbraServiceEnabled: imapproxy
zimbraServiceHostname: zproxy.example.org
zimbraServiceInstalled: imapproxy
zimbraServiceInstalled: stats
[zimbra@zproxy ~]$


Question:

Each time I create a CoS, my proxy server is automatically listed in the CoS zimbraMailHostPool.
The only way to completely stop this is to remove the proxy from the default CoS - then all newly created CoS's are OK. Is this a bug?



If this is considered a bug, please let me know!