?
Solved

Coding Note's Client at user end!

Posted on 2003-03-25
4
Medium Priority
?
161 Views
Last Modified: 2013-12-18
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.
0
Comment
Question by:prateek_k1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Expert Comment

by:scottrma
ID: 8208240
I briefly looked at your last question:

http://www.experts-exchange.com/Applications/Email/Lotus_Notes/Q_20562079.html

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.

Regards,

Scott
0
 

Author Comment

by:prateek_k1
ID: 8208591
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.
Regards.
0
 
LVL 7

Accepted Solution

by:
scottrma earned 200 total points
ID: 8215883
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 mail.box 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 mail.box 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 mail.box 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.

Regards,

Scott
0
 

Author Comment

by:prateek_k1
ID: 8216816
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,
Prateek
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question