PermaLink Free for a limited time
Update 8 Sep 2005: If planning to use this version on a D7 server, please take careful note of what follows. The script library used by mail rules has completely changed in 7 and applying this enhancement to a D7 system will remove some new functionality in the D7 directory, specifically the ability to create mail rules that operate on DNS whitelists. Quite why you would want to do this though is unclear to me - probably no great loss. However I have created a new version of the enhanced rule set for D7 and have published it here.

Consider this version of the enhanced rules on D6 and mixed version (D6/D7) environments. Use the new one on pure D7 sites or on mixed version (D6/D7) sites where you are happy to administer all mail rules from a D7 server.


Due to overwhelming popular demand I am making available here a file containing the Domino Directory enhanced mail rules I am always bashing on about. Please read this post in full before doing anything with the download.

The fine print

  • I make absolutely no warranty express or implied concerning this download. You use it entirely at your own risk.

  • I am not the author of this code, just a grateful user and sometime hacker who has enhanced it slightly. Authorship belongs to Daniel Koffler who, it is entirely reasonable to assume, also makes no warranty of any kind.

  • For your information, this enhancement is working here on Domino 6.5.4 servers and has previously worked on 6.5.2. No other versions have been tested here.

How to install it

  • Take a backup of your Domino Directory.

  • Do NOT just replace the design of your Domino Directory with the downloaded template - it is only a template (.ntf) at all to make it easier to download.

  • Sign all the elements on the downloaded template (there are only two) with an ID used to administer your server(s).

  • Open your Domino Directory in Designer and locate a form named (RulesDlg) alias Mailrule. Rename that form to (RulesDlgBackup) and delete the alias.

  • Paste the (RulesDlg) form from the downloaded template into your Domino Directory.

  • Still in Domino Designer, switch to Shared Code, Script Libraries in your Domino Directory and locate a LotusScript library named Rules. Rename this to RulesBackup.

    [Afterthought: it may be necessary to delete the existing Rules script library to avoid conflicts with the replacement. If this is so, keep a backup of the old Rules script library by creating an empty .nsf database and pasting a copy there.]

  • Paste the Rules LotusScript library from the downloaded template into your Domino Directory.

  • Finally, still in Designer and with your Domino Directory open, select menu option Tools / Recompile all LotusScript.

How to use it

You now have the ability to create server mail rules that act on additional information to be found in the MIME headers of inbound messages.

Try creating test rules using this additional information until you get a feel for what can be achieved. For the purposes of illustration below, 192.168.0.1 and mailhost.example.com should be taken to mean the public IP and DNS name of your own Domino server(s). Examples of rules currently working well here include:

  • When X-Mailer contains The Bat! [choose an action] - this rule may need to be tuned by adding additional conditions for negative filtering to eliminate false positives.

  • When HELO is 192.168.0.1 OR HELO is mailhost.example.com do not accept message.

  • When X-Antivirus contains skaner antywirusowy poczty Wirtualnej Polski S. A. move to database spamtrap.nsf

    There are several further variations on this theme which collectively are currently identifying nearly 2/3 of all spam that makes it past protocol level blocks here.

How to remove it

  • IMPORTANT - delete all rules using the enhanced mail rule functionality from your PAB first.

  • Delete the form and the script library.

  • Rename the backup form and script library and reinstate the alias on the renamed form.

  • Recompile all LotusScript again.

Good luck. Feedback welcome. I would especially like to hear from people who have constructed successful rules. If we share we can all benefit.

Category: Domino: Administration
Technorati:

Comments :

1. Gerco Wolfswinkel26/04/2005 11:24:54
Homepage: http://www.domino-weblog.nl


Thanks a lot! I I've done these tweaks myself on ND7 B1 some time ago, and that worked ok. I will test your version on ND7 B3 some time later this week - possibly wednesday evening.. I'll let you know the results.




2. Steve Dionne26/04/2005 13:18:21
Homepage: http://www.canamgroup.ca


Wow, Thank you so much!

I have done all the modifications as written by Daniel Koffler a few weeks ago, but I still have to play in it to add the X-Mailer and the X-Antivirus variable per your recommendation on your site!

It will save me some time!




3. Marc Henkel28/04/2005 12:28:16


Great, thank you!

I'll start testing it tomorrow on 6.5.3 and 7b3 and expect it so save me a lot of time in fighting spam in the future.




4. Ultra13/05/2005 07:02:04
Homepage: http://ultra.trollprod.com


Wow, great article. This is a really must do for getting rid of this spam.
Thanks a lot for sharing.




TrackBack From StartingBlock Computing17/06/2005 01:22:44


Boy do these work!

A picture tells a great story. I've seen ski slopes before, but this took spam to the cellar.




6. David Lu08/09/2005 07:24:27
Homepage: http://removed - no free advertising here


We are a professional ski equipment manufacturer from china, the range of ski bags,ski caps,goggles,sunglasses, skiwear.




7. kevin14/07/2006 07:14:05
Homepage: http://removed - no free advertising here


we are selling Nordica Ski Boot, Dynastar Ski,Head Ski Boot and other ski sports related equipments.




Unable to post a comment? Please read this for a possible explanation...
Add Manual Trackback
Please enter the details of the trackback post. Your trackback will not appear on the site until it has been verified. This won't be immediate, as trackbacks are validated on a scheduled basis. Be patient.











Search
Popular Categories
Monthly Archive
Other stuff
ClustrMaps
Contact Me
Meta
Proudly powered by IBM Lotus Domino 8 Proudly powered by IBM Lotus Domino 8

Subscribe to articles Subscribe to articles feed

Subscribe to comments Subscribe to comments feed

ROR info ROR info


My Amazon wish list Wishlist


Wikio - Top Blogs - Technology
Like what I do?
Research Autism Then please consider a donation to support the work of Research Autism.
Idea Jam
Planet Lotus
Dilbert