[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Catch VBS files on Sendmail



Yes, but it's far easier to use procmail (/etc/procmailrc)

  VIRUSDUMP='/var/spool/virus'

  :0
  *^Content-type: (multipart/mixed|application/octet-stream)
  {
    :0 HB
    *^Content-Disposition: attachment;
    *filename=".*\.(vbs|wsf|vbe|wsh|hta)"
    {
      :0 fhw
      | formail -A "X-Suspected-Virus: VBS"

      :0
      ${VIRUSDUMP}
    }
  }

>Can sendmail be setup to catch vbs attachments inside an e-mail?

--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.