Sorry if this is a OT for courier-users, but may be someone will consider
this useful.

I wrote a simple GPLv2 clamdscan frontend that can be xfiltered from
maildrop.
It's a fast, simple and sysadmin friendly mailfilter that pipes your
incoming mail to clamdscan, uses clamd daemon to check your mail from
viruses and adds mail headers that you can check with maildrop to see if
the mail contains a virus (or phishing signatures).

You can download scandalo from here:
http://www.tuxweb.it/?section=progetti/scandalo&user_lang=en

Please let me know if it can be useful to someone.
Home this help.


This is an example of maildrop rules I use:

VIRUSDIR='Virus'
# Scan the mail message for viruses
xfilter "/usr/bin/scandalo"
if ((/^X-Virus-Ret: 1/) && (/^X-Virus-stream: !.*/))
{
   echo "Virus found: $MATCH2."
   `test -d ./Maildir/.$VIRUSDIR`   # make sure .Virus folder exists
   if( $RETURNCODE == 1 )
   {
      echo "Virus maildir does not exist"
      echo "Creating Maildir/.$VIRUSDIR "
      # This is used to create the virus maildir if it does not exists.
      DIRMAKE=`/opt/courier/bin/maildirmake -f $VIRUSDIR ./Maildir`
      `echo "INBOX.$VIRUSDIR" >> ./Maildir/courierimapsubscribed`
   }
   to "./Maildir/.$VIRUSDIR/."
}



Ciao, Dino.

-- 
Dino Ciuffetti
Linux System Administrator and Architect





-----------------
TuxWeb S.r.l. - InfoServices EveryWhere - http://www.tuxweb.it
Soluzioni informatiche, sviluppo, applicazioni web, consulenze sistemistiche e 
su prodotti opensource, corsi Linux e molto altro ancora! Per maggiori 
informazioni scrivi a [email protected].


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to