Problem with Send Mail Agent

I have seen similar posts, but none quite the same as this. We have a simple agent that when mail is received, a mail message is sent to certain people in a group. Was working fine with 5.0.11, yet after upgrading to R6, it has stopped. When we “test” the agent we get the following results:The following will occur when this agent is run:

‘CN=Fred Flintstone/O=Bedrock’ is allowed to run Personal/Formula/Simple Agents on ‘CN=DSI_Server4/O=Bedrock’.

Agent will be run by the Agent Manager after new mail messages are delivered.

Home mail server for ‘CN=Fred Flintstone/O=Bedrock’ is ‘’.

Agent will not run on ‘CN=DSI_Server4/O=Bedrock’ unless AMgr_DisableMailLookup ini variable is set to 1.

Started running agent ‘SendMail’ on 02/11/2003 08:42:06 AM

Running on new mail messages: 0 total

Found 0 document(s) that match search criteria

Done running agent ‘SendMail’ on 02/11/2003 08:42:06 AM

Fred’s mail file is located on DSI_Server5/Bedrock but used to be on DSI_Server4/Bedrock before the migration. I believe that even after the upgrade to R6, the agent ran, when Fred’s email was located on DSI_Server4 but stopped when his mail server changed. It appears that the agent can not determine where the mail file exists as evidenced by the above, and that is quite strange. All the permissions appear to be accurately set within each server document.

Any help would be appreciated.

Ben

Subject: Problem with Send Mail Agent

Ben,

this is the standard problem we’re having with “new mail agents” since ever: “new mail agents” will RUN only on the signer’s home server, that is the server which not primarily his mailfile is on, but the server which you find in the user’s person document in the directory.

Therefore, Fred Flintstones mail server entry in his person document points to DSI_Server5. As a result, the agent won’t run on DSI_Server4.

Workaround:

add the notes.ini variable

AMgr_DisableMailLookup=1

to the notes.ini of all the servers where this agent should run.

Have fun,

Stephan

Subject: RE: Problem with Send Mail Agent

I would recommend reading Agent FAQ on the topic of mail agents and this ini variable to understand the drawbacks of using the ini variable, and the background on why these agents work this way. Agent FAQ is under Forum FAQs on the left. You will find relevant info in “Trooubleshooting agents” as well as any article about mail agents such as “Out of the inbox”. Articles are in FAQ #0. There is also mail related FAQ which contains these and other links related to common questions about mail agents.

Good luck!

Subject: RE: Problem with Send Mail Agent

Stephan,Thanks much.

–Ben