[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/qmail-scanner/qmail-scanner.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] Content Scanner for Qmail [T] Qmail-Scanner is an add-on that enables a Qmail e-mail server to scan all [T] gateway-ed e-mail for certain characteristics (i.e. a content scanner). It is [T] typically used for its anti-virus protection functions, in which case it is [T] used in conjunction with external virus scanners. but also enables a site (at a [T] server/site level) to react to e-mail that contains specific strings in [T] particular headers, or particular attachment filenames or types (e.g. *.VBS [T] attachments). It also can be used as an archiving tool for auditing or backup [T] purposes. Qmail-Scanner is integrated into the mail server at a lower level [T] than some other Unix-based virus scanners, resulting in better performance. It [T] is capable of scanning not only locally sent/received e-mail, but also e-mail [T] that crosses the server in a relay capacity. [T] [T] This is a patched version (ergo unofficial) of qmail-scanner, that adds some [T] options focused in deal with spam and others features. [T] [T] Salvatore Toribio modified the code of qmail-scanner with the patch from Chris [T] Hine to block (quarantine) spam, based in the score of SpamAssassin, most of [T] the users don't know how to filter messages tagged as spam, and later he added [T] some other little functionalities. [U] https://qmail-scanner.sourceforge.net/ [U] http://toribio.apollinare.org/qmail-scanner/ [A] Jason Haar [A] Salvatore Toribio [M] T2 Project [C] extra/tool [L] GPL [S] Stable [V] 2.00st-20060416 [P] O [D] 1400505392 qmail-scanner-2.00.tgz http://dl.sourceforge.net/sourceforge/qmail-scanner/ [D] 3661380608 q-s-2.00st-20060416.patch.gz http://toribio.apollinare.org/qmail-scanner/download/ # remove not applying part of the patch tmppatch=`mktemp` $compressor -d < $(match_source_file -p 'st.*patch') | sed -e '/^--- .*qmail-scanner-queue.template.orig/,/^--- / {/^--- .*qmail-scanner-queue.template.orig/d;/^--- /b' \ -e 'd;}' > $tmppatch hook_add preconf 5 'rm -vf qmail-scanner-queue.template.orig' var_append patchfiles ' ' $tmppatch var_append patchfiles ' ' $confdir/head-1-postst.diff #var_append patchfiles ' ' $confdir/no_magic.diff var_append patchfiles ' ' $confdir/configure_no_exit_on_fail.diff confopt='--batch' var_append confopt ' ' '--log-details yes' var_append confopt ' ' '--debug yes' var_append confopt ' ' '--virus-to-delete yes' scanners= pkginstalled clamav && var_append scanners ',' clamdscan pkginstalled spamassassin && var_append scanners ',' fast_spamassassin var_append confopt ' ' '--scanners ${scanners:-auto}' notify=admin var_append confopt ' ' '--notify $notify' qscan_main() { # configure eval "./configure $confopt" # install qscandir=$root/var/spool/qmailscan mkdir -pv $qscandir/{quarantine,working,archive}/{new,tmp,cur} cp -vf quarantine-*.txt $qscandir chown -R qscand:qscand $qscandir mkdir -pv $root/var/qmail/bin cp qmail-scanner-queue.pl $root/var/qmail/bin/qmail-scanner-queue.pl chown qscand:qscand $root/var/qmail/bin/qmail-scanner-queue.pl chmod 4755 $root/var/qmail/bin/qmail-scanner-queue.pl } runmake=0 hook_add postmake 5 "qscan_main"