Last year, I modified my qmail installation so that messages are scanned at the SMTP level with the clamav virus scanner and SpamAssasin before qmail accepts and queues them for local delivery. If a virus is detected, the message is rejected (not bounced) with a custom error message saying that a virus has been detected. Similarly, if SpamAssassin detects the message as spam, qmail rejects it with a custom error message saying that the message has been identified as spam.
James, just curious if you've published these modifications. I'd be interested in them if they're under the umbrella of free software.
I have not, but I'll write a detailed HOWTO when I have some time. In the meantime, you can find links to some instructions at
http://jamesthornton.com/writing/challenge-response-at-smtp-level.html.
Specifically, look at the link to sa-analzye -- that's where I began.
Basically, I used sa-analyze, and wrote some scripts that run spamassassin/clamav and return unique exit codes which are passed on to qmail via sa-analyze. Then I added some custom exit code case statements in qmail.c (search qmail.c for "switch(exitcode)"). Note that this hardcodes the notification messages in qmail.c, but for this approach to be useful with C/R, we would need to dynamically pass in the notification message to qmail.
--
James Thornton _____________________________________________ Internet Consultant, http://jamesthornton.com
_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
