Manage Learn to apply best practices and optimize your operations.

How to create mail files using a LotusScript agent

This LotusScript agent duplicates the AdminP email file creation process by pulling information from a Domino Directory in Lotus Notes/Domino 6.x and higher.

Our corporate extranet site originally gave employees access to policies, committee calendars and other applications. We've added email services to the site for more than 100 accounts. To do this, I had to create the Lotus Notes database and adjust both the access control list (ACL) and mail file owners in the preferences.

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.

Related resources from SearchDomino.com:
How to turn off the message recall feature in Lotus Notes 8

Domino server setting and email policy tricks admins must know

How to automatically create a backup copy of your Domino Directory

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 ALL
to 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.

LotusScript create mail files
(Click on code for enlarged view and script download.)

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.

Dig Deeper on Lotus Notes Domino AdminP

SearchWindowsServer
Search400
  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/Search400.com community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury

SearchDataCenter
SearchContentManagement
Close