Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
qmail-scanner
> qmail-scanner.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File qmail-scanner.spec of Package qmail-scanner (Revision 32)
Currently displaying revision
32
,
show latest
%define mysql_host localhost %define mysql_user vpopmailuser %define mysql_pass vpopmailpass %define mysql_db vpopmail %define qdir /var/qmail %define qspool /var/spool/qscan Name: qmail-scanner Summary: Content Scanner for Qmail Version: 2.05 Release: 3 License: GNU Group: Productivity/Networking/Email/Servers Source0: %{name}-%{version}.tgz Source1: %{name}-%{version}_sql.sql Patch0: %{name}-%{version}_sql.diff Patch1: %{name}-root-check.diff Buildroot: %{_tmppath}/%{name}-%{version}-build BuildRequires: vpopmail perl spamassassin unzip Requires: vpopmail perl spamassassin unzip %if 0%{?suse_version} BuildReqquires: clamav Requires: clamav %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: clamav-server clamav-update Requires: clamav-server clamav-update %endif %description Qmail-Scanner is an add-on that enables a Qmail email server to scan gatewayed email for certain characteristics (i.e. a content scanner). It is typically used for its anti-virus and anti-spam protection functions, in which case it is used in conjunction with external scanners. It also enables a site (at a server/site level) to create "Policy blocks": i.e. react to email that contains specific strings in particular headers, or particular attachment filenames or types (e.g. *.VBS attachments). %prep %setup -q %patch0 %patch1 %build ./configure --mysql-db %{mysql_db} \ --mysql-user %{mysql_user} \ --mysql-pass %{mysql_pass} \ --mysql-host %{mysql_host} \ --qmaildir %{qdir} \ --bindir %{qdir}/bin \ --spooldir %{qspool} \ --qmail-queue-binary %{qdir}/bin/qmail-queue \ --admin hostmaster \ --notify none \ --silent-viruses auto \ --debug yes \ --unzip 1 \ --add-dscr-hdrs yes \ --archive 0 \ --redundant yes \ --log-details yes \ --log-crypto 0 \ --fix-mime 2 \ --ignore-eol-check 0 \ --scanners "auto" \ --batch \ --no-QQ-check \ --skip-setuid-test \ --qs-user vpopmail %install mkdir -p %{buildroot}%{qspool} %{buildroot}%{qdir}/bin mkdir -p %{buildroot}%{qspool}/quarantine/viruses/tmp %{buildroot}%{qspool}/quarantine/viruses/cur %{buildroot}%{qspool}/quarantine/viruses/new mkdir -p %{buildroot}%{qspool}/quarantine/spam/tmp %{buildroot}%{qspool}/quarantine/spam/cur %{buildroot}%{qspool}/quarantine/spam/new mkdir -p %{buildroot}%{qspool}/quarantine/policy/tmp %{buildroot}%{qspool}/quarantine/policy/cur %{buildroot}%{qspool}/quarantine/policy/new mkdir -p %{buildroot}%{qspool}/working/tmp %{buildroot}%{qspool}/working/cur %{buildroot}%{qspool}/working/new mkdir -p %{buildroot}%{qspool}/archive/tmp %{buildroot}%{qspool}/archive/cur %{buildroot}%{qspool}/archive/new mkdir -p %{buildroot}/%{qdir}/supervise/qmail-smtpd/env/ mkdir -p %{buildroot}/%{_defaultdocdir}/%{name} cp %{S:1} $RPM_BUILD_DIR/%{name}-%{version}/%{name}.sql cp quarantine-events.txt %{buildroot}%{qspool}/ cp qmail-scanner-queue.pl %{buildroot}%{qdir}/bin/qmail-scanner-queue.pl echo "%{qdir}/bin/qmail-scanner-queue.pl" > %{buildroot}/%{qdir}/supervise/qmail-smtpd/env/QMAILQUEUE %post if [ "$1" == "1" ]; then %{fillup_and_insserv -fy spamd} %{fillup_and_insserv -fy freshclam} %{fillup_and_insserv -fy clamd} chmod 4755 %{_bindir}/suidperl ½{qdir}/bin/qmail-scanner-queue.pl -z %{qdir}/bin/qmail-scanner-queue.pl -g fi %clean %files %attr(0644,root,root) %doc *.php README* CHANGES COPYING %{name}.sql %defattr(4755,vpopmail,vchkpw) %{qdir}/bin/qmail-scanner-queue.pl %defattr(-,vpopmail,vchkpw) %{qspool} %defattr(0600,qmaill,qmail) %{qdir}/supervise/qmail-smtpd/env/QMAILQUEUE %changelog * Thu Jul 17 2008 Carsten Schoene <cs@linux-administrator.com> - 2.05-3 - new release 2.05 - document that even though Qmail-Scanner will add a Message-ID header if there *isn't* already one, it will ensure this added header is not passed to SpamAssassin when it is called. This ensures SA can correctly interpret the lack of that header. - Fix bug in above new code! Causing some message-ids to be skipped when passing to SA. * Sat May 10 2008 Carsten Schoene <cs@linux-administrator.com> - 2.04-2 - fix qmail-queue binary path - initialize qmail-scanner after install * Fri May 09 2008 Carsten Schoene <cs@linux-administrator.com> - 2.04-1 - new release 2.04 - Regex bug fixed in message-id check. * Tue May 06 2008 Carsten Schoene <cs@linux-administrator.com> - 2.03-1 - new release 2.03 - Code cleanup and reorg. Thanks to Salvatore - Updated nod32 support. Users of this MUST CHECK that they have configured /etc/nod32/nod32.cfg correctly. Thanks to Salvatore - Updated support for qmail-queue-custom-error. Thanks to Futhwo for noticing the change - Enhanced perlscanner to be able to policy-block attachments based on arbitrary sizes. e.g. "block zip attachments if less than 1024 Bytes" - Fixed buglet in attachment filesize checks - Workaround for Berkeley DB bug. Thanks to Manuel Mausz for the patch - Updated clamdscan module to support more expected error conditions * Sun May 04 2008 Carsten Schoene <cs@linux-administrator.com> - 2.02-1 - initial build