Writing antispam module for domino

Hello! i’m writing antispam software and wish to connect it to Domino Server in the form of module.

Just can’t find any callbacks methods (COM or API) what will provide follow functionality:

Callback my function in case of new mail arrive.

Is it possible?

May you point at needed documentation or methods?

Thanks!

Subject: writing antispam module for domino

Sergey

client-side or server-side?

Which version of Notes/Domino?

On the client, you can use an agent triggered “before new mail arrives” or “after new mail arrives”.

On the server, you need to get to know Domino quite a bit. There’s no easy way to trap mail routing, since the Domino Router seems to use some non-published API’s to do its magic - see Notes/Domino API Toolkit user’s guide database, documents “Agents” and “Extension Manager” for some guidance.

BTW: Did you check the market? Looking at tools like Darren Crocker’s excellent no.Spam.domino (http://www.drcc.com), Mark Ramos’ spamJam (http://www.granite-software.com) and various other commercial offerings in that area, what do you want to achieve? If it’s not a personal learning you’re hoping to get out of this, I’d question the allocation of resources to a problem that has been mastered and solved.

Yours truly

Peter

Subject: or just configure the server to use the blacklist filter

Subject: RE: or just configure the server to use the blacklist filter

I’ve been working on a similar process. And as one of the other posters indicated, I will add the code to the client to look out for my e-mails and share it with co-workers. So far, I have a function to remove the odd characters from a string… ie: v@i@a… becomes via… My next step is to keep a list of words that I dont want to see in my emails and when that are found do not allow the email to be saved to my mail database.

Subject: I found that, the blacklist doesn’t greatly reduce our spam traffice. SpamJam solved that for us.

Subject: Worked for us…

We’re denying about 50% of all inbound traffic. Most of our endusers really noticed the difference when we switched from ‘log&tag’ to ‘log&delete’.

Subject: RE: Worked for us…

Spam is spam. There is always going to be it, but I have removed most of my spam (75%). It was as simple as having more than one blacklist.

Subject: writing antispam module for domino

modules are called add-in’s in the domino/notes world. download the 6.x API Toolkit and check the help for the following EM functions. oh, you can only write these in C, not C++, you can use a C++ IDE but the code must be C (last time i looked anyways)

EM_SMTPCONNECT - processing an inbound smtp connection

EM_SMTPMESSAGEACCEPT - processing an accepted smtp message

EM_NSFNOTEUPDATEMAILBOX - processing any message placed into any mailbox type database (from database properties, not template based)

these three EMs cover everything you need to build a domino server spam add-in

you would use different API EMs for client side processing, they are there I just never used them so don’t know what they are called.