This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Oct 26, 2015, 5:03 PM
5 Posts
topic has been resolvedResolved

Wrong Sender Address When Agent Auto Replies

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Domino Designer,Agent
  • Replies: 4

Hi all, I am trying to get my Mail in Databases to send Auto Replies whenever they receive new messages, and to send notification of new messages to the users that manage these mail in databases. I found this article "http://dominogavin.blogspot.com/2012/02/how-to-create-auto-response-mail.html" to set up auto reply using a simple agent and modified it to send new mail notifications as well. Both work except the messages are sent with my mail address. I read that this could be solved by filling in the "Run on behalf of" field on the Agent's properties' key tab. In my test case I did this for the Auto Reply and it worked. I tried doing the same on production mail in database (new and hardly used) and neither the Auto Reply nor the New Mail Notification work any more. If I clear they "Run on behalf of" field they start working again. Does anyone know what I am doing wrong?

Details

I created the mail in database to receive mail to "procurement@company.com". The mail file is "Procurement.nsf" and located in the "MailInDatabases" folder I created in the Domino Data folder. The mail in database is "Procurement/COMPANY". I changed the mail file owner to "Procurement/COMPANY". The users / managers of the database are in a multipurpose group called "Procurement Mail Users" and this group has been added to the ACL of the database as a person group with manager rights.

I then created the agents by opening "Procurement.nsf" in Domino Designer and adding the agents. Both have condition "In folder Inbox". The action for the Auto Reply is "Reply to Sender". The action for new mail notification is "Send Mail Message". In Agent Properties both are set to trigger "on event" "After new mail has arrived".

The setup works as described above but send mail in my name. When I set "Run on behalf of" to "Procurement/COMPANY" it stops working.

Oct 26, 2015, 7:43 PM
43 Posts
There is a security setting in the server document that controls this.
A couple of things that factor in:

1) Security - The server document in the Domino directory where the database/mailfile is located controls who is authorized to sign agents to run on behalf of another user. Default is blank which means no one has this authority. To examine this, Open the server, open the domino directory database (names.nsf), navigate the the view "All Server Documents", scroll down to the server doc i.e. Acme/YourOrg, click on the 2nd tab labeled "Security" and on the right hand side there is a field called "Sign agents to run on behalf of someone else:" If it is blank, then no one is allowed to do this

2) "Before new mail arrives." agents limited to 1 - IF you are setting this up as a new mail triggered agent or scheduled agent, you should be fine, but for completeness wanted to put in that you are limited to only 1 of these types of agents described in this tech doc: "Before new mail arrives."

I bet it's #1
Oct 26, 2015, 9:28 PM
5 Posts
Additional question

Thanks Scott Vrusho. The comments for that field says if blank allows only the current server and Lotus Domino Developers. If I add myself, do I need to manually specify these as well?

Also the agent triggers "After new mail has arrived", not before new mail arrives.

Oct 26, 2015, 10:10 PM
5 Posts
Possibly working now

I added myself to the server document and tested, but nothing happened.

Then after about 20 minutes I added "Procurement/COMPANY" to the ACL with manager permissions. Now the messages are being processed. I don't know what to make of it. I have never added the mail in database account to the database's ACL before. So I do not know if that is the solution or it just took time for the changes to the server document to kick in. I'll investigate tomorrow.

Oct 27, 2015, 5:06 PM
5 Posts
Problem solved

I removed my account from the server document's "Sign agents to run on behalf of someone else:" field. and it still works. As such it appears that the name of the mail in database needed to be in the ACL for the agent to work using the "Run on behalf of" field configured with the name of the mail in database.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal