Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

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.
0
prateek_k1
Asked:
prateek_k1
  • 2
  • 2
1 Solution
 
scottrmaCommented:
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
 
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.
Regards.
0
 
scottrmaCommented:
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
 
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,
Prateek
0

Featured Post

Independent Software Vendors: 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!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now