I whipped out a little hack tonight, as a possible solution for my users who
just want spam to disappear, to act as a safety net.

It's a small client C program, intended to receive marked spam on STDIN. It
parse out a Date, From, and Subjet line, and sends them as a UDP packet to a
perl server process, which logs this to an SQL database.

The idea is for a user who doesn't receive a message they are expecting to
be able to check the log (via a web page, not yet made). If they see the
from/subject they were expecting, they can request the message to be resent,
see about whitelisting, or take whatever action is needed.

Already I'm thinking of changes -- this was designed to run the server
process on a logging machine, separate from the mail server. However, I'm
thinking of changing it to run the server on the same mail machine. If
connection was lost to the SQL server, it could log to a text file, that
could be reloaded later. (I think it is more likely to loose packets to
another machine, then to the local machine on a Unix socket).

This is a 'first draft', comments welcome, especially any problems in my C,
which is quite rusty. I wouldn't suggest non-programmers trying to use it --
this is the result of about 3 hours codeing while watching the Yankee game
:-)

Grab it from http://www.westnet.com/~chris/lognul-0.0.tar.gz

(I should say, this was written and compiles on Solaris 8)

-Chris

==========================================================
Chris Candreva  -- [EMAIL PROTECTED] -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to