When an email account is first created, you can tell AdminP to create the mail file, instead of doing it in real time. Unfortunately, you can't create this particular AdminP request manually, through Notes or the Admin client. With some work, I was able to duplicate this request using LotusScript. The agent pulled the information from the selected Domino Directory entries.
Copy the following agent into your Domino Directory and change the constants in the Declarations section to match your domain. I signed the agent and ran it as a user in the external Domino domain with full admin rights, instead of my usual ID from our internal domain, even though that ID can register accounts interactively without problems.
Once you've adjusted the agent, open the People view, select the documents for people who should have mail files and then select the agent from your Actions list. This agent will cycle through the selected documents, parse out the necessary information to create an Administrative Request to create a mail file and then update the Person document to refer to it.
Note: Remember to
TELL ADMINP PROCESS ALLto create the mail files or you'll have to wait for it to trigger as scheduled.
This coding is fairly basic; the trick is flagging individual fields as signed and/or protected. This was used in a Lotus Notes/Domino 7.0.2 environment, but could be used in Notes/Domino 6.x and higher.
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip library by member Eric Jewett. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes/Domino technical tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.
This was first published in March 2009