Domino server sends mail to outside users but returns "Maximum hop count exceeded" for internal recipients

Hi,I have a Notes agent that sends two emails. One to an internet account “name@outsidedomain.com”, the other to an internal user (listed in the Domino directory NAB) "name@internaldomain.com.

The office here uses a separate Exchange server for all email.

A names.nsf has been set up to be used as an email directory for this Notes app with all person documents specifying “Other Internet Mail” as their email system and “Internet Address” as their exchange email address, e.g. name@internaldomain.com

There are 2 replicas of this names.nsf, one is on the external server (EXTSERVER/DOMAIN), the other on the intranet server (INTRASERVER/DOMAIN).

The external and intranet notes servers are set up on the same physical machine with a partitioned hard drive each going out on a separate nic card.

The app itself (according to database properties) is on the external server but when the agent is run, no messages appear in the external server’s mail.box but in the internal server’s mail.box, the failure and dead failure reason (same) is:

“Error transferring to INTRASERVER\DOMAIN; Maximum hop count exceeded. Message probably in a routing loop. Maximum hop count exceeded. Message probably in a routing loop.”

This is the agent:

Sub Initialize

Dim s As NotesSession

Dim db As NotesDatabase

Dim Doc As NotesDocument

Set s = New NotesSession

Set db = s.CurrentDatabase

Set Doc=DB.CreateDocument

Dim recipients( 1 To 2 ) As String

recipients( 1 ) = "name@outsidedomain.com"

recipients( 2 ) = "name@internaldomain.com"	



    doc.form = "Memo"



Call doc.Send( True, recipients )

End Sub

One thing I’d be curious to know is why the agent is being run on the external server but the error log is in the mail.box on the intranet server? (no error messages appear on the external server’s mail.box)

Any way to get this email notification to work given the current environment?

-MC