2003-11-20 22:10:36 +00:00
|
|
|
# New ports collection makefile for: MailScanner
|
|
|
|
# Date created: 17 March 2003
|
|
|
|
# Whom: Jan-Peter Koopmann <j.koopmann@seceidos.de>
|
2003-06-18 03:11:13 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2003-12-16 21:14:13 +00:00
|
|
|
PORTNAME= MailScanner
|
2006-05-05 16:11:33 +00:00
|
|
|
PORTVERSION= 4.53.8
|
2003-06-18 03:11:13 +00:00
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
|
2004-06-04 00:08:06 +00:00
|
|
|
DISTNAME= ${PORTNAME}-install-${PORTVERSION}-${PATCHLEVEL}
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
MAINTAINER= j.koopmann@seceidos.de
|
2004-01-31 23:43:16 +00:00
|
|
|
COMMENT= Powerful virus/spam scanning framework for mail gateways
|
2003-11-20 22:10:36 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= \
|
|
|
|
${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
2005-06-11 16:13:12 +00:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \
|
2006-01-04 21:29:16 +00:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/Bundle/DBI.pm:${PORTSDIR}/databases/p5-DBI \
|
2005-06-11 16:13:12 +00:00
|
|
|
${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
|
2003-11-20 22:10:36 +00:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
|
|
|
|
${SITE_PERL}/Mail/Header.pm:${PORTSDIR}/mail/p5-Mail-Tools \
|
|
|
|
${SITE_PERL}/HTML/Tagset.pm:${PORTSDIR}/www/p5-HTML-Tagset \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/HTML/HeadParser.pm:${PORTSDIR}/www/p5-HTML-Parser \
|
|
|
|
${SITE_PERL}/MIME/Parser.pm:${PORTSDIR}/mail/p5-MIME-Tools \
|
2003-12-05 15:34:38 +00:00
|
|
|
${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
|
2004-04-02 06:01:03 +00:00
|
|
|
${SITE_PERL}/Convert/BinHex.pm:${PORTSDIR}/converters/p5-Convert-BinHex \
|
2004-03-08 21:51:57 +00:00
|
|
|
${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
|
2006-01-04 21:29:16 +00:00
|
|
|
${SITE_PERL}/Net/Ident.pm:${PORTSDIR}/net/p5-Net-Ident \
|
2004-03-08 21:51:57 +00:00
|
|
|
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
|
|
|
|
${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
|
- Update to 4.53.7
3/5/2006 New in Version 4.53.7-1
================================
* New Features and Improvements *
- Attachment extraction now checks for available disk space and a DoS attack
using messages with high expansion ratios will fail even quicker than it
did before.
- Added new setting "SpamAssassin Local State Dir" to support the sa-update
tool provided with MailScanner these days, to provide a way of auto-
updating the core SpamAssassin rulesets. The default value is set to what
you need for Linux (/var/lib).
- Added new cron job to run sa-update every night. The location of the
sa-update program is read from /etc/sysconfig/MailScanner.
- Added support for new header -H file format in Exim 4.61.
- Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to
enable unpacking of gzip-ed files for filename and filetype checking.
Even if this is disabled, gzip-ed files will still be virus scanned.
- Added support for numerical entries in phishing.safe.sites.conf file.
- Added support for optional multipliers in numbers in MailScanner.conf.
So you can now write "50M" instead of "50000000". The multipliers supported
are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9)
in upper or lower case.
You must *not* put any spaces between the number and the multiplier character.
- Added a new configuration option "Ignored Web Bug Filenames". This allows
you to whitelist a bunch of filenames that can appear in the URLs of
potential web bugs. So if you decide that all potential web bugs with
"spacer" or "pixel.gif" in the filename are just padding for page layout,
then you can make it ignore them by adding them to this list. A sample
list is provided in MailScanner.conf.
This is disabled by default, as spammers may start to use this as a means
of circumventing the Web Bug trap.
- When Web Bugs are disarmed, the URL used to replace the original web bug
can now be set using the new configuration option "Web Bug Replacement".
If this is not specified, then the old value of "MailScannerWebBug" is used.
The default value supplied in the MailScanner.conf file is the address of
an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner
web site. This will not be tracked other than to supply an overall count of
the number of hits this image gets, for overall statistical purposes.
- Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA
easy-to-install package, due to the recent change in licence. Now if DCC
could go the same way...
- Updated Catalan translations.
* Fixes *
- Fixed bug in DoS attack handler. Thanks for Jorge for this.
- Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf.
PR: ports/96751
Submitted by: maintainer
2006-05-05 10:38:03 +00:00
|
|
|
${SITE_PERL}/Time/Zone.pm:${PORTSDIR}/devel/p5-TimeDate \
|
|
|
|
${SITE_PERL}/${PERL_ARCH}/Filesys/Df.pm:${PORTSDIR}/devel/p5-Filesys-Statvfs_Df
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
|
2003-12-05 15:34:38 +00:00
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS} \
|
2006-02-16 16:34:56 +00:00
|
|
|
bash:${PORTSDIR}/shells/bash \
|
|
|
|
tnef:${PORTSDIR}/converters/tnef \
|
|
|
|
wget:${PORTSDIR}/ftp/wget
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
|
|
|
|
OPTIONS= SPAMASSASSIN "Install SpamAssassin" on \
|
|
|
|
CLAMAV "Install ClamAV" on \
|
|
|
|
CLAMAVMODULE "Install ClamAV Module" off \
|
|
|
|
BDC "Install BitDefender" off
|
2003-12-05 15:34:38 +00:00
|
|
|
|
2004-10-15 15:44:31 +00:00
|
|
|
CONFLICTS= MailScanner-devel-[0-9]*
|
2003-11-20 22:10:36 +00:00
|
|
|
|
2006-01-04 21:29:16 +00:00
|
|
|
PATCHLEVEL= 1
|
2004-04-02 06:01:03 +00:00
|
|
|
|
2003-11-20 22:10:36 +00:00
|
|
|
USE_PERL5= yes
|
|
|
|
|
2004-06-04 00:08:06 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-install-${PORTVERSION}
|
2005-05-10 17:26:44 +00:00
|
|
|
SUB_FILES= pkg-message
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
MAN8= MailScanner.8
|
|
|
|
MAN5= MailScanner.conf.5
|
2003-11-20 22:10:36 +00:00
|
|
|
MLINKS= MailScanner.8 mailscanner.8 \
|
|
|
|
MailScanner.conf.5 mailscanner.conf.5
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-27 17:30:45 +00:00
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
IGNORE= dependency requires newer Perl
|
|
|
|
.endif
|
|
|
|
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
.if defined(WITH_SPAMASSASSIN)
|
|
|
|
RUN_DEPENDS+= spamassassin:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
PLIST_SUB+= SPAMASSASSIN=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SPAMASSASSIN="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# backwards compatibility
|
|
|
|
.if defined(NO_SPAMASSASSIN_SYMLINK)
|
|
|
|
WITHOUT_SPAMASSASSIN_SYMLINK=${NO_SPAMASSASSIN_SYMLINK}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_SPAMASSASSIN_SYMLINK)
|
|
|
|
PLIST_SUB+= SPAMASSASSIN_SYMLINK="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SPAMASSASSIN_SYMLINK=""
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CLAMAV)
|
|
|
|
RUN_DEPENDS+= clamscan:${PORTSDIR}/security/clamav
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CLAMAVMODULE)
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/Mail/ClamAV.pm:${PORTSDIR}/mail/p5-Mail-ClamAV
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CLAMAV)||defined(WITH_CLAMAVMODULE)
|
|
|
|
RUN_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
unrar:${PORTSDIR}/archivers/unrar \
|
|
|
|
zoo:${PORTSDIR}/archivers/zoo \
|
|
|
|
unarj:${PORTSDIR}/archivers/unarj \
|
|
|
|
unace:${PORTSDIR}/archivers/unace \
|
|
|
|
lha:${PORTSDIR}/archivers/lha
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BDC)
|
|
|
|
RUN_DEPENDS+= bdc:${PORTSDIR}/security/bdc
|
|
|
|
.endif
|
|
|
|
|
2003-11-20 22:10:36 +00:00
|
|
|
DOC_FILES= INSTALL INSTALL.FreeBSD INSTALL.OpenBSD README
|
|
|
|
ETC_FILES= MailScanner.conf filename.rules.conf \
|
|
|
|
filetype.rules.conf spam.assassin.prefs.conf \
|
2005-02-16 16:11:37 +00:00
|
|
|
spam.lists.conf virus.scanners.conf \
|
2006-04-13 16:42:25 +00:00
|
|
|
phishing.safe.sites.conf \
|
|
|
|
country.domains.conf
|
2004-10-15 15:44:31 +00:00
|
|
|
MCP_FILES= mcp.spam.assassin.prefs.conf \
|
|
|
|
10_example.cf
|
2004-01-31 23:43:16 +00:00
|
|
|
USRLOCAL_FILES_LIB= \
|
|
|
|
bitdefender-autoupdate f-prot-autoupdate \
|
|
|
|
f-secure-wrapper inoculan-autoupdate \
|
|
|
|
kavdaemonclient-wrapper mcafee-autoupdate \
|
|
|
|
nod32-autoupdate rav-autoupdate \
|
|
|
|
rav-wrapper sophos-autoupdate
|
2003-11-20 22:10:36 +00:00
|
|
|
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
USE_RC_SUBR= mailscanner.sh mta.sh
|
|
|
|
|
2004-06-04 00:08:06 +00:00
|
|
|
post-extract:
|
2004-11-01 20:10:10 +00:00
|
|
|
cd ${WRKSRC} && ${TAR} xvzf perl-tar/MailScanner-${PORTVERSION}-${PATCHLEVEL}.tar.gz > /dev/null && ${MV} MailScanner-${PORTVERSION}/* .
|
2004-06-04 00:08:06 +00:00
|
|
|
|
2003-11-20 22:10:36 +00:00
|
|
|
do-build:
|
|
|
|
${PERL} -pi -e \
|
2003-12-24 16:03:38 +00:00
|
|
|
's,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g; \
|
|
|
|
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
|
2003-11-20 22:10:36 +00:00
|
|
|
${WRKSRC}/bin/MailScanner
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
|
|
|
|
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
|
2003-12-24 16:03:38 +00:00
|
|
|
s,/opt/MailScanner/bin,${PREFIX}/bin,g; \
|
|
|
|
s,/opt/MailScanner/etc/reports,${DATADIR}/reports,g; \
|
2004-04-02 06:01:03 +00:00
|
|
|
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g; \
|
2005-04-13 14:42:01 +00:00
|
|
|
s,/opt/MailScanner/lib,${PREFIX}/lib/MailScanner,g; \
|
|
|
|
s,/usr/bin/unrar,${LOCALBASE}/bin/unrar,g; \
|
|
|
|
s,/etc/mail/spamassassin,${LOCALBASE}/etc/mail/spamassassin,g;' \
|
2003-11-20 22:10:36 +00:00
|
|
|
${WRKSRC}/etc/MailScanner.conf
|
|
|
|
${PERL} -pi -e \
|
2003-12-24 16:03:38 +00:00
|
|
|
's,/opt/MailScanner/lib,${PREFIX}/libexec/MailScanner,g; \
|
2003-11-20 22:10:36 +00:00
|
|
|
s,/bin/false,/usr/bin/false,;' ${WRKSRC}/etc/virus.scanners.conf
|
|
|
|
${PERL} -pi -e \
|
2003-12-24 16:03:38 +00:00
|
|
|
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
|
|
|
|
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
|
2003-11-20 22:10:36 +00:00
|
|
|
${WRKSRC}/bin/update_virus_scanners
|
2006-02-16 16:34:56 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
|
2006-04-27 17:30:45 +00:00
|
|
|
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
|
|
|
|
s,%%RC_SUBR%%,${RC_SUBR},g;' \
|
2006-02-16 16:34:56 +00:00
|
|
|
${WRKSRC}/bin/cron/update_virus_scanners.cron
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
|
|
|
|
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
|
|
|
|
${WRKSRC}/bin/update_phishing_sites
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
|
2006-04-27 17:30:45 +00:00
|
|
|
s,/opt/MailScanner/bin,${PREFIX}/libexec/MailScanner,g; \
|
|
|
|
s,%%RC_SUBR%%,${RC_SUBR},g;' \
|
2006-02-16 16:34:56 +00:00
|
|
|
${WRKSRC}/bin/cron/update_phishing_sites.cron
|
- Update to 4.53.7
3/5/2006 New in Version 4.53.7-1
================================
* New Features and Improvements *
- Attachment extraction now checks for available disk space and a DoS attack
using messages with high expansion ratios will fail even quicker than it
did before.
- Added new setting "SpamAssassin Local State Dir" to support the sa-update
tool provided with MailScanner these days, to provide a way of auto-
updating the core SpamAssassin rulesets. The default value is set to what
you need for Linux (/var/lib).
- Added new cron job to run sa-update every night. The location of the
sa-update program is read from /etc/sysconfig/MailScanner.
- Added support for new header -H file format in Exim 4.61.
- Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to
enable unpacking of gzip-ed files for filename and filetype checking.
Even if this is disabled, gzip-ed files will still be virus scanned.
- Added support for numerical entries in phishing.safe.sites.conf file.
- Added support for optional multipliers in numbers in MailScanner.conf.
So you can now write "50M" instead of "50000000". The multipliers supported
are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9)
in upper or lower case.
You must *not* put any spaces between the number and the multiplier character.
- Added a new configuration option "Ignored Web Bug Filenames". This allows
you to whitelist a bunch of filenames that can appear in the URLs of
potential web bugs. So if you decide that all potential web bugs with
"spacer" or "pixel.gif" in the filename are just padding for page layout,
then you can make it ignore them by adding them to this list. A sample
list is provided in MailScanner.conf.
This is disabled by default, as spammers may start to use this as a means
of circumventing the Web Bug trap.
- When Web Bugs are disarmed, the URL used to replace the original web bug
can now be set using the new configuration option "Web Bug Replacement".
If this is not specified, then the old value of "MailScannerWebBug" is used.
The default value supplied in the MailScanner.conf file is the address of
an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner
web site. This will not be tracked other than to supply an overall count of
the number of hits this image gets, for overall statistical purposes.
- Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA
easy-to-install package, due to the recent change in licence. Now if DCC
could go the same way...
- Updated Catalan translations.
* Fixes *
- Fixed bug in DoS attack handler. Thanks for Jorge for this.
- Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf.
PR: ports/96751
Submitted by: maintainer
2006-05-05 10:38:03 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/bin/bash,${LOCALBASE}/bin/bash,g; \
|
|
|
|
s,/usr/bin/sa-update,${LOCALBASE}/bin/sa-update,g; \
|
|
|
|
s,%%RC_SUBR%%,${RC_SUBR},g;' \
|
|
|
|
${WRKSRC}/bin/cron/sa-update.cron
|
2006-02-16 16:34:56 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/etc/MailScanner/MailScanner.conf,${PREFIX}/etc/MailScanner/MailScanner.conf,g;' \
|
|
|
|
${WRKSRC}/bin/clean.SA.cache
|
2003-11-20 22:10:36 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/opt/MailScanner/var/MailScanner.pid,/var/run/MailScanner.pid,g; \
|
|
|
|
s,/usr/lib/sendmail,/usr/sbin/sendmail,g; \
|
2003-12-24 16:03:38 +00:00
|
|
|
s,/opt/MailScanner/bin,${PREFIX}/bin,g; \
|
|
|
|
s,/opt/MailScanner/etc/reports,${DATADIR}/reports,g; \
|
|
|
|
s,/opt/MailScanner/etc,${PREFIX}/etc/MailScanner,g;' \
|
2003-11-20 22:10:36 +00:00
|
|
|
${WRKSRC}/lib/MailScanner/ConfigDefs.pl
|
2004-01-09 17:45:42 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/bin/sed,/usr/bin/sed,g;' ${WRKSRC}/lib/MailScanner/SystemDefs.pm
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/usr/bin/clamscan,${LOCALBASE}/bin/clamscan,g;' \
|
|
|
|
${WRKSRC}/lib/clamav-wrapper
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/usr/bin/wget,${LOCALBASE}/bin/wget,g;' \
|
|
|
|
${WRKSRC}/lib/sophos-autoupdate
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/usr/bin/unzip,${LOCALBASE}/bin/unzip,g;' \
|
|
|
|
${WRKSRC}/lib/sophos-autoupdate
|
2004-01-31 23:43:16 +00:00
|
|
|
.for FILE in ${USRLOCAL_FILES_LIB}
|
|
|
|
${PERL} -pi -e \
|
|
|
|
's,/usr/local,${LOCALBASE},g;' \
|
|
|
|
${WRKSRC}/lib/${FILE}
|
|
|
|
.endfor
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
do-install:
|
2006-02-16 16:34:56 +00:00
|
|
|
#
|
|
|
|
# Step 1: Install bin files
|
|
|
|
#
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/MailScanner ${PREFIX}/sbin/mailscanner
|
|
|
|
${LN} -s ${LOCALBASE}/sbin/mailscanner ${PREFIX}/sbin/MailScanner
|
|
|
|
#
|
|
|
|
# Step 2: Install libexec files
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
|
|
|
${MKDIR} ${PREFIX}/libexec/MailScanner
|
|
|
|
${CHMOD} -R ${BINMODE} ${PREFIX}/libexec/MailScanner
|
2003-12-24 16:03:38 +00:00
|
|
|
cd ${WRKSRC}/lib && ${FIND} * -name "*-wrapper" -exec \
|
|
|
|
${INSTALL_SCRIPT} {} ${PREFIX}/libexec/MailScanner/{}.sample \;
|
2003-11-20 22:10:36 +00:00
|
|
|
cd ${WRKSRC}/lib && ${FIND} * -name "*-autoupdate" -exec \
|
2003-12-24 16:03:38 +00:00
|
|
|
${INSTALL_SCRIPT} {} ${PREFIX}/libexec/MailScanner/{}.sample \;
|
2006-02-16 16:34:56 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/analyse_SpamAssassin_cache \
|
|
|
|
${PREFIX}/libexec/MailScanner/analyse_SpamAssassin_cache
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/clean.SA.cache \
|
|
|
|
${PREFIX}/libexec/MailScanner/clean.SA.cache
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/clean.quarantine \
|
|
|
|
${PREFIX}/libexec/MailScanner/clean.quarantine
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_phishing_sites \
|
|
|
|
${PREFIX}/libexec/MailScanner/update_phishing_sites
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/update_phishing_sites.cron \
|
|
|
|
${PREFIX}/libexec/MailScanner/update_phishing_sites.cron
|
2003-11-20 22:10:36 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/update_virus_scanners \
|
|
|
|
${PREFIX}/libexec/MailScanner/update_virus_scanners
|
2006-02-16 16:34:56 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/update_virus_scanners.cron \
|
|
|
|
${PREFIX}/libexec/MailScanner/update_virus_scanners.cron
|
- Update to 4.53.7
3/5/2006 New in Version 4.53.7-1
================================
* New Features and Improvements *
- Attachment extraction now checks for available disk space and a DoS attack
using messages with high expansion ratios will fail even quicker than it
did before.
- Added new setting "SpamAssassin Local State Dir" to support the sa-update
tool provided with MailScanner these days, to provide a way of auto-
updating the core SpamAssassin rulesets. The default value is set to what
you need for Linux (/var/lib).
- Added new cron job to run sa-update every night. The location of the
sa-update program is read from /etc/sysconfig/MailScanner.
- Added support for new header -H file format in Exim 4.61.
- Added 2 new configuration options "Gunzip Command" and "Gunzip Timeout" to
enable unpacking of gzip-ed files for filename and filetype checking.
Even if this is disabled, gzip-ed files will still be virus scanned.
- Added support for numerical entries in phishing.safe.sites.conf file.
- Added support for optional multipliers in numbers in MailScanner.conf.
So you can now write "50M" instead of "50000000". The multipliers supported
are "k", "m" and "g" to denote 1 thousand, 1 million and 1 billion (10^9)
in upper or lower case.
You must *not* put any spaces between the number and the multiplier character.
- Added a new configuration option "Ignored Web Bug Filenames". This allows
you to whitelist a bunch of filenames that can appear in the URLs of
potential web bugs. So if you decide that all potential web bugs with
"spacer" or "pixel.gif" in the filename are just padding for page layout,
then you can make it ignore them by adding them to this list. A sample
list is provided in MailScanner.conf.
This is disabled by default, as spammers may start to use this as a means
of circumventing the Web Bug trap.
- When Web Bugs are disarmed, the URL used to replace the original web bug
can now be set using the new configuration option "Web Bug Replacement".
If this is not specified, then the old value of "MailScannerWebBug" is used.
The default value supplied in the MailScanner.conf file is the address of
an untracked 1x1 pixel transparent gif (51 bytes) hosted on the MailScanner
web site. This will not be tracked other than to supply an overall count of
the number of hits this image gets, for overall statistical purposes.
- Added Razor2 to the list of plugins automatically enabled by the ClamAV+SA
easy-to-install package, due to the recent change in licence. Now if DCC
could go the same way...
- Updated Catalan translations.
* Fixes *
- Fixed bug in DoS attack handler. Thanks for Jorge for this.
- Commented out setting of "SpamAssassin Local State Dir" in MailScanner.conf.
PR: ports/96751
Submitted by: maintainer
2006-05-05 10:38:03 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/cron/sa-update.cron \
|
|
|
|
${PREFIX}/libexec/MailScanner/sa-update.cron
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
2006-02-16 16:34:56 +00:00
|
|
|
# Step 3: Install etc files
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
|
|
|
${MKDIR} ${PREFIX}/etc/MailScanner
|
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner
|
|
|
|
.for FILE in ${ETC_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
|
|
|
|
${PREFIX}/etc/MailScanner/${FILE}.sample
|
2003-06-18 03:11:13 +00:00
|
|
|
.endfor
|
2003-11-20 22:10:36 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/MailScanner/rules
|
|
|
|
cd ${WRKSRC}/etc/rules && \
|
|
|
|
${INSTALL_DATA} EXAMPLES README ${PREFIX}/etc/MailScanner/rules
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
|
|
|
|
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules.sample
|
2004-10-15 15:44:31 +00:00
|
|
|
${MKDIR} ${PREFIX}/etc/MailScanner/mcp
|
|
|
|
${CHMOD} ${BINMODE} ${PREFIX}/etc/MailScanner/mcp
|
|
|
|
.for FILE in ${MCP_FILES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/mcp/${FILE} \
|
|
|
|
${PREFIX}/etc/MailScanner/mcp/${FILE}.sample
|
|
|
|
.endfor
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
2006-02-16 16:34:56 +00:00
|
|
|
# Step 4: Install files in share
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
|
|
|
@${MKDIR} ${DATADIR}
|
2005-08-31 13:19:02 +00:00
|
|
|
cd ${WRKSRC}/etc && ${FIND} reports -type d ! -name "*.old" -exec \
|
2004-03-03 07:07:48 +00:00
|
|
|
${MKDIR} ${DATADIR}/{} \;
|
2005-08-31 13:19:02 +00:00
|
|
|
# cd ${WRKSRC}/etc && ${FIND} reports -type f ! -name "*.orig" -exec ...
|
|
|
|
cd ${WRKSRC}/etc && ${FIND} reports \( -type d -name "*.old" -prune \) \
|
|
|
|
-o \( -type f ! -name "*.orig" -exec ${INSTALL_DATA} {} ${DATADIR}/{}.sample \; \)
|
2003-11-20 22:10:36 +00:00
|
|
|
${CHMOD} -R ${BINMODE} ${DATADIR}/reports
|
|
|
|
#
|
2006-02-16 16:34:56 +00:00
|
|
|
# Step 5: Install lib
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
|
|
|
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner
|
2004-04-02 06:01:03 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/MailScanner/MailScanner/CustomFunctions
|
2003-11-20 22:10:36 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/MailScanner.pm \
|
|
|
|
${PREFIX}/lib/MailScanner/MailScanner.pm
|
|
|
|
cd ${WRKSRC}/lib/MailScanner && ${FIND} * -type f ! -name "*.orig" -exec \
|
2003-12-24 16:03:38 +00:00
|
|
|
${INSTALL_SCRIPT} {} ${PREFIX}/lib/MailScanner/MailScanner/{} \;
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
2006-02-16 16:34:56 +00:00
|
|
|
# Step 6: Docs & Manpages
|
2003-11-20 22:10:36 +00:00
|
|
|
#
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.FreeBSD.port ${DOCSDIR}
|
2006-02-16 16:34:56 +00:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/CHANGES.port ${DOCSDIR}
|
2003-11-20 22:10:36 +00:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}/docs && \
|
2004-03-03 07:07:48 +00:00
|
|
|
${FIND} * -type d -exec ${MKDIR} ${DOCSDIR}/{} \; && \
|
2003-11-20 22:10:36 +00:00
|
|
|
${FIND} * -type f ! -name "*.orig" -exec \
|
2003-12-24 16:03:38 +00:00
|
|
|
${INSTALL_DATA} {} ${DOCSDIR}/{} \;
|
|
|
|
.endif
|
2003-11-20 22:10:36 +00:00
|
|
|
cd ${WRKSRC}/docs/man && \
|
|
|
|
${INSTALL_MAN} ${MAN5} ${MAN5PREFIX}/man/man5 && \
|
|
|
|
${INSTALL_MAN} ${MAN8} ${MAN8PREFIX}/man/man8
|
2004-01-09 17:45:42 +00:00
|
|
|
# Sophos install script
|
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/Sophos.install.freebsd ${DOCSDIR}
|
2004-01-31 23:43:16 +00:00
|
|
|
${PERL} -pi -e \
|
|
|
|
's,%%LOCALBASE%%,${LOCALBASE},g; \
|
|
|
|
s,%%PREFIX%%,${PREFIX},g;' \
|
|
|
|
${DOCSDIR}/Sophos.install.freebsd
|
2003-06-18 03:11:13 +00:00
|
|
|
.if exists(${PREFIX}/etc/MailScanner/MailScanner.conf)
|
|
|
|
# Upgrading MailScanner.conf file... Please wait
|
2003-11-20 22:10:36 +00:00
|
|
|
@${WRKSRC}/bin/upgrade_MailScanner_conf \
|
|
|
|
${PREFIX}/etc/MailScanner/MailScanner.conf \
|
|
|
|
${PREFIX}/etc/MailScanner/MailScanner.conf.sample > \
|
|
|
|
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} \
|
|
|
|
2> /dev/null
|
2003-06-18 03:11:13 +00:00
|
|
|
# Diff the files. If the files do not differ, delete the new file
|
2003-11-20 22:10:36 +00:00
|
|
|
@if diff -b -B -q ${PREFIX}/etc/MailScanner/MailScanner.conf \
|
|
|
|
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
|
|
|
|
then ${ECHO} "No changes in MailScanner.conf options found" ; \
|
|
|
|
${RM} ${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION} ; \
|
2003-06-18 03:11:13 +00:00
|
|
|
else \
|
2003-11-20 22:10:36 +00:00
|
|
|
${ECHO} "Changes in MailScanner.conf found. Please look at \
|
|
|
|
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
|
2003-06-18 03:11:13 +00:00
|
|
|
fi
|
2005-01-26 17:32:05 +00:00
|
|
|
.endif
|
|
|
|
# Languages.conf update
|
2004-12-22 11:42:09 +00:00
|
|
|
@for LANG_DIR in ${DATADIR}/reports/*; do \
|
|
|
|
if [ -f $${LANG_DIR}/languages.conf ]; then \
|
|
|
|
${ECHO} -n Upgrading $${LANG_DIR}/languages.conf... Please wait...; \
|
|
|
|
${WRKSRC}/bin/upgrade_languages_conf \
|
|
|
|
$${LANG_DIR}/languages.conf \
|
|
|
|
$${LANG_DIR}/languages.conf.sample > \
|
|
|
|
$${LANG_DIR}/languages.conf.new.${PORTVERSION} \
|
|
|
|
2> /dev/null ; \
|
|
|
|
if diff -b -B -q $${LANG_DIR}/languages.conf \
|
|
|
|
$${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
|
2005-01-26 17:32:05 +00:00
|
|
|
then ${ECHO} " no changes"; \
|
2004-12-22 11:42:09 +00:00
|
|
|
${RM} $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
|
2005-01-26 17:32:05 +00:00
|
|
|
else ${ECHO} " done"; \
|
2004-12-22 11:42:09 +00:00
|
|
|
${CP} $${LANG_DIR}/languages.conf.new.${PORTVERSION} $${LANG_DIR}/languages.conf ; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done
|
2003-11-20 22:10:36 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-12-12 20:57:43 +00:00
|
|
|
post-install:
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
.if defined(WITH_SPAMASSASSIN) && !defined(WITHOUT_SPAMASSASSIN_SYMLINK)
|
|
|
|
@if [ ! -r ${PREFIX}/etc/mail/spamassassin/mailscanner.cf ]; then \
|
|
|
|
${ECHO} ${LN} -s ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf ${PREFIX}/etc/mail/spamassassin/mailscanner.cf; \
|
|
|
|
${LN} -s ${PREFIX}/etc/MailScanner/spam.assassin.prefs.conf ${PREFIX}/etc/mail/spamassassin/mailscanner.cf; \
|
|
|
|
else \
|
|
|
|
${ECHO} "File ${PREFIX}/etc/mail/spamassassin/mailscanner.cf already exists!"; \
|
|
|
|
fi;
|
|
|
|
.endif
|
|
|
|
# Display warning about new start/stop scripts
|
|
|
|
@${CAT} ${FILESDIR}/rcwarning.txt
|
|
|
|
.if !defined(BATCH)
|
|
|
|
@${ECHO} Press ENTER to continue...
|
|
|
|
@read a
|
2005-12-12 20:57:43 +00:00
|
|
|
.endif
|
|
|
|
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
renew-wrapper: configure
|
2003-11-20 22:10:36 +00:00
|
|
|
# Renew virus wrapper scripts
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-wrapper ${PREFIX}/libexec/MailScanner
|
|
|
|
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
renew-autoupdate: configure
|
2003-11-20 22:10:36 +00:00
|
|
|
# Renew autoupdate scripts
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lib/*-autoupdate ${PREFIX}/libexec/MailScanner
|
|
|
|
|
- Update to 4.50.15
- OPTIONSify
- Use USE_RC_SUBR
Change Log:
- Speed increased significantly! Caches SpamAssassin results.
Note you need to run my install.sh script to get the new modules required.
- If "Virus Scanners = auto" (ie. the installed default value) then it
searches for and uses every available installed virus scanner.
- Added SpamAssassin cache analyser (analyse_SpamAssassin_cache) to the
distributions. 99% written by Steve Freegard of MailWatch fame.
- Upgraded ClamAV+SA bundle to ClamAV 0.88.
- Added default headers that Thunderbird 1.5 will use to automatically
identify spam based on SpamAssassin's spam headers.
- Added UU-decoder to automatically extract files from attachments that were
stored in uu-encoded form. This behaves similarly to the zip and rar
decoders. The virus scanners should check inside these files for themselves
anyway, but this assists them when they do not. It also allows for filename
and filetype checking of files stored in uu-encoded attachments.
- Added configuration option "Find UU-Encoded Files" to set whether uu-encoded
files are decoded or not. These files are very rarely used, and the
overhead of finding them is fairly large as it involves reading all
existing attachments looking for the signature of them. So the default is
to not look for them. A ruleset can be used to protect particularly
vulnerable recipients or senders.
- You can now start up MailScanner without changing MailScanner.conf at all.
It will auto-detect SpamAssassin and all available virus scanners.
- Changed default setting to "Use SpamAssassin = yes" and now auto- detect
installation of SpamAssassin, logging installation instructions if
it is not already installed and working.
- Added DBI and DBD::SQLite Perl modules. Please use my install.sh scripts
when you upgrade or install this version.
- Added American spelling of "analyze_SpamAssassin_cache" as well as English
spelling of "analyse_SpamAssassin_cache".
- DBI installation is forced in RPM distributions.
- Improved RPM installer to handle DBI module dependencies better. It now
installs cleanly on the systems I have tested it on. These include Fedora
Core 3, Fedora Core 4, SuSE 9.3, SuSE 10, RedHat Enterprise 4.
- Made log warnings more obvious when DBI/DBD::SQLite/Digest::MD5 are not
all installed properly.
- Improved comments about "Allow Filenames" and "Allow Filetypes" in
MailScanner.conf.
- Improvement to F-Prot output parser to handle new strings.
- Changed filename/type traps to account for new vulnerability in TNEF files.
- Adapted trend-autoupdate for 2006 onwards.
- --help implemented so you can see how to use it now.
- --debug now written. Works just like "Debug = yes" in MailScanner.conf.
- --debug-sa now written. Works just like "Debug SpamAssassin = yes".
- --check ruleset-checker now written. Takes max 1 from address, multiple to
addresses, client IP address and virus name.
- Added a new command-line parameter "--lint" to verify the config file.
- --lint now prints what virus scanners you have chosen to use, and what
- --lint now checks SpamAssassin configuration too.
scanners it can find installed.
- Added hi-res timing so the batch speed timings are now displayed to
micro-second accuracy.
- Added Time::HiRes to the list of required modules. You must use ./ install.sh
to upgrade to, or install, this version in order to get the new module.
Time taken to process the entire batch is logged, and time taken to do
"Always Looked Up Last" is logged separately if it is being used at all.
- Added check that MailScanner.conf has at least been customised to set the
organisation name, long name and web site.
- Added "SpamAssassin Cache Timings" configuration option for the few people
who need to adjust these settings. Do *not* change it unless you really
know what you are doing, the default settings will work nicely.
- Updated important perl modules.
- Removed duplicate logging of warnings about infected messages.
- Added detection of no virus scanners being installed, giving the user
advice about how to install ClamAV using my easy-installation package.
- Improved ClamAV+SA easy-installation package so that it automatically
enables the updates by commenting out the "Example" lines.
- Changed default Lock Type for sendmail to "posix" instead of "flock" as
new Linux systems (the most popular platform by far) run sendmail
8.13 or later, which requires this to be "posix".
- Upgraded Sys::Hostname::Long and HTML::Parser in ClamAV+SA package.
- Disabled movie format "deny" rules in filetype.rules.conf and have enabled
filetype checking by default.
- Updated man pages.
- Updated AVG parser to handle latest version 7.1.
- Added "Always Looked Up Last After Batch" which is looked up after the
"Always Looked Up Last" option. The 2nd of those is looked up once for
each message, the "...After Batch" value is looked up once for the
entire batch. It is only intended for use with a Custom Function, its
value is ignored.
* Fixes *
- Improved reliability of Bayes rebuilds a lot.
- Force installation of DBI as previous versions cause problems.
- Removed broken patch I was given, which was temporarily in 4.50.
- Packaging bug in 4.50.9-1 fixed. MailTools version typo.
- Fixed bug where temporary files were not cleaned up properly.
- Fixed missing HTML-Parser 3.48 package.
PR: ports/93026
Submitted by: maintainer
2006-02-15 10:47:00 +00:00
|
|
|
renew-reports: configure
|
2003-11-20 22:10:36 +00:00
|
|
|
# Renew reports
|
|
|
|
cd ${WRKSRC}/etc/reports/en && ${FIND} * -type f ! -name "*.orig" \
|
2003-12-24 16:03:38 +00:00
|
|
|
-exec ${INSTALL_DATA} {} ${DATADIR}/reports/en/{} \;
|
2003-11-20 22:10:36 +00:00
|
|
|
|
|
|
|
initial-config: renew-wrapper renew-autoupdate renew-reports
|
|
|
|
cd ${WRKSRC}/etc && ${INSTALL_DATA} ${ETC_FILES} \
|
|
|
|
${PREFIX}/etc/MailScanner
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/rules/spam.whitelist.rules \
|
|
|
|
${PREFIX}/etc/MailScanner/rules/spam.whitelist.rules
|
2005-01-26 17:32:05 +00:00
|
|
|
@${ECHO} "******************************************************************************"
|
|
|
|
@${ECHO} "The provided default configuration requires several directories to be created:"
|
|
|
|
@${ECHO} "/var/spool/MailScanner/incoming"
|
|
|
|
@${ECHO} "/var/spool/MailScanner/quarantine"
|
|
|
|
@${ECHO} "/var/spool/mqueue"
|
|
|
|
@${ECHO} "Either create those directories or change the configuration."
|
|
|
|
@${ECHO} "******************************************************************************"
|
2003-06-18 03:11:13 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|