Registering Users via Java

I am hoping that someone can shed some light on my problems and help solve it.

I am registering users on a Domino 9 server using the Java classes, specifically NotesRegistration and the registerNewUser method. If I specify the same admin server and mail server for the registration, all is well and the user is correctly registered, mail file created etc; however, if I specify a different mail server than the admin server, I receive the error id - 4005, text - Notes error: You are not authorized to set database quotas, and although the Person document is created, the mail file is not created, and the registration fails. We are using DIIOP to connect to Domino; however, only the Admin server have this tasks turned on.

Can anyone shed some light on what could be causing this and what a possible solution could be?

Thanks in advance

Geoff Poole

Subject: Have you checked the Server doc DB Admin field?

Probably a dumb question , but have you checked the server document of the mail server where the mail db is being created to ensure that the entity running the agent to register the user has at least DB Admin rights? The “Database Administrators” field in the server document controls who can set quotas on a server.