Virenscanner [clamav] per maildrop einbinden?

I.MC

Watt soll denn hier hin?
Hi,

damit ich mal ein günstigeres Paket beim meinem Webhoster mieten kann, würde ich gerne den noch fehlenden Virenscanner in meinem Mailserver integrieren. Jetzt frage ich mich, ob sich das nicht auch mittels maildrop erledigen lässt, so wie es mit spamassassin auch geht. So kann jeder user in seiner maildrop-config selber einstellen, ob er clamav und spamassassin nutzen möchte.

Gruß, I.MC
 
Push... muss doch einer kurz was zu sagen können, also ob und wie man Antivirenlösungen in den MDA einbinden kann...
 
maildroprc:
Code:
# Only scan mails smaller than VSCANSIZE for a virus
VSCANSIZE="2000000"

# Only scan mails smaller than SCANSPAMSIZE for spam
SCANSPAMSIZE="200000"

###############################################################################
#
# Use ClamAV to scan for viruses.
#
###############################################################################

if( $SIZE < $VSCANSIZE ) 
{
  exception {
    xfilter "/usr/local/bin/clamscan"
  }
}
 
if(/^X-Virus-Status:.*INFECTED/)
{
  `test -d $DEFAULT/.Quarantine`
  if ( $RETURNCODE == 1 )
  {
    `/usr/bin/maildirmake -f Quarantine $DEFAULT`
    `echo INBOX.Quarantine >> $DEFAULT/courierimapsubscribed`
  }
  exception {
    to "$DEFAULT/.Quarantine/"
  }
}

###############################################################################
#
# Use SpamAssassin to filter SPAM
#
###############################################################################
if( $SIZE < $SPAMSCANSIZE ) 
{
  xfilter "/usr/bin/spamc -u $USER -s $SCANSPAMSIZE"
}

if (/^X-Spam-Status: *Yes/:h)
{
  #Create SPAM IMAP folder if they don't have one
  `test -d $DEFAULT/.Spam`
  if( $RETURNCODE == 1 )
  {
    `/usr/bin/maildirmake -f Spam $DEFAULT`
    `echo INBOX.Spam >> $DEFAULT/courierimapsubscribed`
  }
  exception {
    to "$DEFAULT/.Spam/"
  }
}
 
Zurück
Oben