Either using 'cn=vmailadmin,dc=xx,dc=xx' or 'cn=Manager,dc=xx,dc=xx' is fine.

WARNING: With "basedn = o=domains,dc=xx,dc=xx", this script will update ALL mail users on your server. If you want to update just one domain, please set base dn to "basedn = domainName=domain.com,o=domains,dc=xx,dc=xx".

Hope it helps.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?