Coding Note's Client at user end!

Hi All!
   This is in reference to my previous question. Can I code Notes client's "Send" action at user end in such a way that it allows user to send mail onlt at defined mail address? Also user can not alter this code in any way. I have put restriction Lotus script at the user's mail DB at server but he may connect to different mail DB so I am trying to code user's Notes client so whether he use any DB restriction code will work at the time of sending mail.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I briefly looked at your last question:

and having code in the QuerySave of your Memo/Reply forms might not be the best way of doing it. Because the user can send the mail without saving it, and thus they may be able to bypass your QuerySave checking all together. Also, anybody with a reasonable amount of Notes knowledge can create a new local database based on mail50.ntf (installed by default with Notes client installations), and this would not have your QuerySave checks in it, and they can use this to send a mail, and when they replicate, the mail will get sent, and bypass your security. There really is no way for Notes to distinguish what file the mail originated from, it just sees it as a mail message, and nothing more.

You might be better off looking in your Server Configuration document, under Router/SMTP, Outbound Restrictions and Controls section. There are fields there that allow you to define who is allowed or not allowed to send to specific Internet addresses that you can define. This works at the server level, so it will enforce your security regardless of which mail file (local or server) the mail came from.


prateek_k1Author Commented:
Hi Scottrma and thanks a lot for answering my query. You hit exactly on my problem. You are very much correct that it is not the optimum solution with QuerySave and also user may user other .ntf or .nsf file. As you suggested to configure server side properties, I went through these properties and found that these are useful if the security restriction is ame for all the user. While in my case each user is authorised to send mails to different addresses with different sizes.
So, please suggest me can I achive this objective from server side? Please suggest me any other alternative.
Notes does not have a solution to this out-of-the-box. You can specify in the Server Configuration document maximum message size, and who is allowed to send to what addresses, and what addresses are allowed to be sent to, but Notes does not really do combinations of all these criteria very well.

You might try this. Put your validation checking in a "Before New Mail Arrives" agent in the file on the server. This is probably the only trigger type that will work in this file, because most of the time, mails are routed through too fast for an "After New Mail Arrives" agent to catch them. This way, your validation checks will be performed regardless of what mail file users sent the original mail from. The disadvantage of this is that it may slow down server performance, especially if your server routes a lot of mails. Also, you would need to have a 2nd agent in another database that periodically saves this 1st agent. The reason is that the file is not considered a normal .nsf database, so the Agent Manager (amgr) will not run agents in this database once it flushes its agent cache (usually once a day). But, if you save the agent again, you can fool amgr into running the agent until it flushes its cache again. That is why you need another agent in another database to (daily?) re-save this 1st agent. Hope that makes sense. Once final note: I HAVE NEVER TESTED THIS BEFORE, SO I CAN'T GUARANTEE THAT IT WILL WORK, BUT YOU ARE FREE TO TRY IT FOR YOURSELF IF YOU WISH.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
prateek_k1Author Commented:
Thanks a lot Scott. It sounds intresting...I am experimenting on it and will let you know about the outcome. I am also posting one more query regarding integration of Lotus with an jsp application and I am looking forward for your wonderful suggestions.

Once again thanks and regards,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.