Search this blog...


How to delete all "Change HTTP Password in Domino Directory" request and log documents?

How to delete all "Change HTTP Password in Domino Directory" request and log documents?

Create a LotusScript agent in the admin4.nsf database.

The Adminp requests are specified by a code in the ProxyAction field : "127" =  "Change HTTP Password in Domino Directory"

Backup all data before running any agents.
This is sample code and is not supported by IBM.

This technote lists the code for each Adminp request.

Title: AdminP proxy action numeric codes
Doc #: 1178240

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Dim doc2 As NotesDocument
Set db = session.CurrentDatabase
Set dc = db.AllDocuments
Set doc = dc.GetFirstDocument()
While Not(doc Is Nothing)
MessageBox doc.ProxyAction(0)
Set doc2 = dc.GetNextDocument(doc)
If doc.ProxyAction(0)="133" Then
MessageBox "Delete Document"
Call doc.RemovePermanently(True)
End If
Set doc = doc2
End Sub


Sync unread marks between two clustered mailboxes


Do you take advantage of Domino clusters in your company or for your customers? Just for mailboxes or also for Notes applications?

Over the last years Notes clustering is much more interesting:
for example there is an advanced Notes database property that forces Domino clustered servers to replicate ALSO unread marks.

That setting is interesting because Notes users need to use their mail without knowing whether that mailbox is on server A or server B: exchanging unread marks is a great option for a "consistent" mail experience.

Unfortunately the setting described above is useless if the 2 clustered mailboxes are not initially in sync, I mean "unread marks" counting.
Sometimes unread marks counts are not initially the same for clustered mailboxs, and the advanced db property setting does not solve the problem!

Ok, you can "force" that status of each Notes document using the "Ins" key, but that is time-consuming and must be done using the user ID of the mailbox owner...

There is another way to sync unread marks between two clustered mailboxes: using a Notes Edit menu option that normally is hidden!
The following operation will take care of unread marks for the current logged Notes user only.

1) unstack mailboxes icons (from the Edit menu)

2) select both mailbox icons clicking both shift-key AND mouse left-click

3) go to Edit menu -> Unread marks -> Exchange unread marks

Unread-marks counts will be in sync!

Is it possible to set unread marks for any mailbox, just using a programmatic way? I mean, using LotusScript and some new Notes objects property/methods...

With new R8, programmers will have the opportunity to set the "read status" of each Notes document (see "what's new" document in R8 Designer help).


Unable to start the Domino 852 server as a service and run the Java Controller on Windows 2008 R2 server.


Domino Administrator has installed a Domino 8.5.2 server on a Windows 2008 R2 machine. However, the service for the "Lotus Domino Server" does not start up either manually by clicking "start" service or automatically when the Operating System is rebooted.
It gives the below error, when trying to start the service manually.

Also, when the administrator tries to start the Lotus Domino Console i.e. the Java Controller for Domino, it gives the below error message.

"Either the Server Controller is not running on the host INMAIL01/Acme or is not listening on port 2050"

In the java controller log, it shows the below errors. The log for the java controller will be located in Domino\data\dcntrlrdcntrlr201010051228.out. The numbers indicate the date and time when the file was created.

createServerSocket=Unrecognized Windows Sockets error: 0: JVM_Bind
Unable to open listener socket: Unrecognized Windows Sockets error: 0: JVM_Bind Unrecognized Windows Sockets error: 0: JVM_Bind
at Method)
at lotus.domino.console.SSL.createServerSocket(
at lotus.domino.console.ClientAcceptor.Init(
Domino Server Controller exiting: Listener startup timed out. Please check if another Server Controller instance is running in the same data directory.

Further, when the administrator issues the command, "netstat -a" from the command prompt, it doesn't show that port 2050 is listening.

Resolving the problem

In one case, the issue was resolved by following the below steps:

1) Add the port 2050 in the windows firewall.
(From the windows, run type "firewall" and enter Windows Firewall with Advanced Security ->Inbound Rules)

2) Add the entry for the IP address which is mapped to server name in the local host file (e.g INMAIL01/Acme).

3) Enable the below notes.ini parameter in the Domino server's notes.ini.


Note: is the IP address of the Domino server.

4) With the above settings done, restart the Operating System (OS).

You will see "Lotus Domino Server" service will be launched successfully when the OS is up and also administrator will be able to connect to Domino server using the Lotus Domino Console i.e Java Controller for Domino.

Automatic HTTP-Login via HTTP link and redirecting to a database

I used this way to get a xPages based view displayed in an external application like an embedded view.


With this way the authentication was made with the login credentials and was directly rerouted to the needed database


How to move the Resource & Reservations database to a different server

 Technote (FAQ)

How do you move a Resource & Reservations (R&R) database on one Lotus Notes server to another server within the same domain? 

Moving an R&R database from one server to another.
1. Pull a new replica of the R&R database from the old server to the new server.

2. Open the access control list (ACL) of the R&R database on the new server.
a) Change the Server ACL to the new server.

b) Set the Manager and [Create Resource] (if needed) ACL to the new Manager and Resource Creator.

c) Select the Advanced icon and set the Administration server to the new server name.

* To open the ACL in Notes releases prior to 8, choose File --> Database --> Access Control.

* To open the ACL in Notes 8 and later releases, choose File --> Application --> Access Control.

3. The following agent can be run on the Lotus Domino Directory to change the room/resource mail-in documents from the old server name to the new server name. You do not have to worry about the domain since that is not changing. Run the agent on all room/resource documents that reside in the database that you are moving: 

FIELD MailServer:= "CN=newserver/OU=neworgunit/O=neworg";

"newserver" is the new Domino Server that the database was moved to.
"neworgunit" is the new organizational unit of the new domino server (if this applies).
"neworg" is the new organizational certifier of the new Domino server.
"newdomain" is the new mail domain that the R&R database was moved to.

4. Run the following commands on the new server:
Load fixup your_resource_reservations_database_name.nsf
Load updall names.nsf -t "($rooms)" -r
Load updall names.nsf -t "($resources)" -r

5. Once you move the database, open the R&R database in Domino Designer and go to Shared Code --> Agents. Enable all scheduled agents (represented with a clock icon).

This will complete your move. 

Get Rules From Users Mailfile

A few days ago I was asked to create a report about all rules in all mailfiles. The easiest way to do this is to write an agent to examine the mailfiles.
The result of this scan is stored in a Notes database.
Put the following code into an agent ( start: manually from menue, target: All Selected Documents 

Sub Initialize
On Error Resume Next
Dim session As New NotesSession
Dim NAB As NotesDatabase
Dim resultDocs As NotesDocumentCollection
Dim MailFiles As NotesDocumentCollection

Dim doc As NotesDocument
Dim NABDoc As NotesDocument
Dim rtitem As Variant
Dim MailFileItem As NotesItem
Dim i As Integer
Dim NabDocCounter As Integer
Dim fNAME As String
Dim logline As String
Set NAB = session.CurrentDatabase
Set MailFiles = NAB.UnprocessedDocuments

Dim RetCode As Integer
Dim MailServer As String
Dim MailFile As String

Dim db_AllDocsCol As NotesDocumentCollection
Dim db_User As String
Dim archiveDb As New NotesDatabase( "", "RULEZ.NSF" )
Dim k As Integer
For NabDocCounter = 1 To MailFiles.Count
  db_User = ""
  Set NABDoc = MailFiles.GetNthDocument ( NABDocCounter )
  Set MailFileItem = NABDoc.GetFirstItem ( "LastName" )
  db_User = MailFileItem.Text & ", "
  Set MailFileItem = NABDoc.GetFirstItem ( "FirstName" )
  db_User = db_User + MailFileItem.Text

  Set MailFileItem = NABDoc.GetFirstItem ( "MailServer" )

  MailServer = MailFileItem.Text
  Set MailFileItem = NABDoc.GetFirstItem ( "MailFile" )
  MailFile = MailFileItem.Text
  Dim db As New NotesDatabase ("", "" )
  Call db.Open ( MailServer, MailFile )

  If db.IsOpen Then

  Dim dateTime As New NotesDateTime(_
  Cstr(Datenumber(2000, 5, 1)))

  Set resultDocs = db.Search( {@UpperCase(Form)="MAILRULE"}, dateTime,0)

  Call ResultDocs.StampAll ("RuleOwner", db_user)
  For k = 1 To resultDocs.Count
    Set doc = resultDocs.GetNthDocument ( k )
    Call doc.CopyToDatabase ( archiveDB )
  End If
End Sub

'Set Config' parameter does not alter the parameter in the Domino server configuration document

Quelle: Dennis´ Domino Blog
1. Set ENABLE_SRVCFG_NAB_UPDATE=1 in your Notes.ini
2. Pass in the keyword "update" on the SET CONFIG command, such as

When you issue a "set config" command at the Domino™ server console (for example,
"set config server_restricted=2") to change the value of an existing Notes.ini parameter,
the value change for the parameter is not reflected in the Configuration document.
The Configuration document parameter stays the same, and soon afterwards the parameter
reverts back to its old value. 

This issue was reported to Lotus software Quality Engineering; however, it was determined not
to be a software problem. To have such console commands be reflected in the Configuration
document, you need to do one of two things: 

    "set config server_restricted=0 update"

NOTES.INI-Eintrag "TypeAheadShowServerFirst"

Immer wieder gibt es Probleme bei der Mailadressierung, weil immer die lokalen Adressbücher vor den auf den Server liegenden durchsucht werden.

Beginnend mit IBM Notes/Domino 9 gibt es einen Eintrag für die NOTES.INI am Client, der dieses Problem behebt:


Mit diesem Eintrag wird dem Client mitgeteilt, zuerst die Adressbücher am Server und erst danach die lokalen zu durchsuchen. Diese Einstellung kann über die Desktop-Einstellung an die Clients ausgerollt werden.


The Lotus Notes Install Cleanup Executable (NICE) tool

IBM hat das Tool "NICE" herausgebracht, mit dem sehr einfach folgende Problem-Installationen

behoben werden können:

  • Unvollständige / Abgebrochene Installation
  • Unvollständiger / Abgebrochener Upgrade
  • Unvollständige / Abgebrochene De-Installation
Wie NICE arbeitet und den Download-Link können Sie hier nachlesen.


Anzeige von Facebook-Geburtstagen im Notes-Kalender

Quelle: Mat Newman

1. Log into facebook, choose Events, then choose the drop-down and select birthdays: 
Add Facebook to Lotus Notes Calendar Step 1 

2. Go back to the drop-down and choose "Export Birthdays" 
Add Facebook to Lotus Notes Calendar Step 2 

3. In the "Export Birthdays" dialog, highlight and copy the link 
Add Facebook to Lotus Notes Calendar Step 3 

4. Back into Lotus Notes Calendar, choose the "Add Calendar" option and paste the link from step 3 
Add Facebook to Lotus Notes Calendar Step 4 

5. Facebook birthdays now in your Lotus Notes calendar 
Add Facebook to Lotus Notes Calendar Step 5 

You can also add Facebook Events you have subscribed to using the same steps, just choose "Upcoming Events" at step 1. 

Adding Facebook calendar entries to Lotus Notes ... easy! Enjoy :-)