Commit graph

40 commits

Author SHA1 Message Date
jschauma
fe19bb05b5 PKGREVISION++ after openssl update. 2003-11-12 03:39:39 +00:00
jdolecek
8d3d4bda88 spamassassin builds and works fine with perl 5.6.0 2003-11-04 16:37:48 +00:00
heinz
ad81929102 Update to version 2.60 (fixes PR pkg/23318):
Summary of changes since 2.5x
-----------------------------------

- spamd supports UNIX-domain sockets
- SSL support for spamc/spamd now usable
- improved Bayes text analysis
- improved expiration of Bayes-DB
- better detection of 'invisible text' and other obfuscation techniques
  in HTML
- new RBL (eg SORBS, SpamCop, Osirusoft dropped)
- better handling of RBL timeouts
- support for Razor V1 dropped
- more flexible header and report rewriting
- Perl taint mode enabled by default
- bug fixes
- new rules
2003-11-03 00:56:25 +00:00
jlam
bc8cc1c9bd Don't install unpatched (*.orig) files leftover from the patch process. 2003-09-13 21:24:23 +00:00
jlam
075d61f2fb * Provide a default SPAMASSASSIN_USE_SSL?=NO.
* Use ALL_TARGET appropriately instead of using a post-build target.
* Get rid of DEPTHFIRST* variables and do the "depth-first" listing by
  using a reverse sort instead.
* Get rid of extra shell processes.
* Tabify.
2003-09-13 17:57:21 +00:00
jlam
d1f2401ef2 Move the perl dependency a little higher to be with all of the other
dependencies.
2003-09-13 17:17:09 +00:00
jlam
86eeac459f INSTALL_TARGET is now "install" again after rev. 1.19 of perl5/module.mk. 2003-09-13 15:21:27 +00:00
jlam
60b1d50907 Catch up with INSTALL_TARGET changes in perl5/module.mk. INSTALL_TARGET is
now set to "pure_install" in perl5/module.mk, so we need to append the
additional target "inst_cfs" that is normally invoked by the "install"
target in ${WRKSRC}/Makefile.
2003-09-13 14:55:30 +00:00
jlam
9d5763e153 Reorder some lines to make the Makefile layout more standard and fix some
whitespace.
2003-09-13 14:43:30 +00:00
jlam
6f9b958105 Instead of using PKG_SYSCONFBASE, substitute with PKG_SYSCONFDIR for the
full /etc/mail/spamassassin.  This is more precise.
2003-09-13 14:29:30 +00:00
atatat
f90ace6498 Since osirusoft is dead now, we should remove all reference to it from
spamassassin.  These patches remove all references to osirusoft from
the rules files (perhaps leaving some of the comments a tad stale),
but leaving information about them in the stats files.

This bumps us to 2.55nb2.
2003-09-03 13:08:04 +00:00
martti
f928be280d COMMENT should start with a capital letter. 2003-07-21 16:56:41 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
heinz
8f07696ccf - include patch from SA CVS repository to fix a bug with 'spamassassin -r'
learning a message without Message-Id as ham (see bugzilla #2030)
- depend on p5-IO-Socket-SSL>=0.92 because of bugs in earlier versions
- bump revision
2003-06-08 01:11:37 +00:00
abs
9a5fcb0714 Update spamassassin to 2.55
Many small changes since 2.53, but difficult to pick out anything significant.
2003-05-22 11:41:02 +00:00
heinz
56eed52ea2 work around differences in find options for depth-first traversal 2003-04-15 00:35:25 +00:00
heinz
bb64e46cb0 Update to version 2.53.
This also closes PR pkg/21114 (thanks to Todd Vierling for dynamic PLIST)

  Most serious bugs since release of SA 2.50 fixed (hence the 'long'
  delay for the Pkgsrc package).

  Dependence on procmail removed. You still need a mail delivery agent
  but procmail is only a recommendation, not a prerequisite.

  Runs on Solaris (somewhat tested on Solaris 8, feedback welcome).

  Includes some SSL support for spamc/spamd. Not yet recommended due to
  lurking bug(s) (SA bugzilla ID 1751).

  Uses Perl module DB_File now instead of NDBM_File. This changes the
  name and format of the auto-whitelist database  ('auto-whitelist'
  instead of 'auto-whitelist.db' on NetBSD).

  ! This release adds/changes/removes configuration options, PLEASE use !
  ! 'perldoc Mail::SpamAssassin::Conf' and make  sure your mail         !
  ! configuration still works as expected.                              !

==========================================================================

Changes since 2.52:

- corruption of Bayes db where nspam/nham was getting zeroed, fixed.

- Bayes now has much lower lock timeouts for opportunistic expiry
  and auto-learning, to avoid overloading busy servers with an expiry
  run.  (This may result in occasional "lock failed" messages in the
  syslog while you're doing manual sa-learn ops, but those are
  not serious; it just means that an auto-learn could not take place
  because the dbs were opened by you in another process.)

- NDBM_File does not provide an EXISTS method, worked around.

- BSMTP support (spamc -B) fixed.

- Bayes allowed the user to 'forget' messages they hadn't learned.

- sa-learn broken when installed in a non-standard location.

- spamc was failing to dump message if out of memory.

- add-all-addrs-to-blacklist was a no-op, fixed.

- syslog-socket support was broken, fixed.

- sslspamc compilation fixed.

- SIGCHLD handling in spamd was causing an ugly warning on Red Hat 8.

- user_prefs were left world-writable after auto-whitelist use.

- Razor was zeroing %ENV; protected against this.

- some test failures on 5.005 and with Razor fixed; some tests were
  also still using the user's Bayes dbs.

- Windows portability fix in new Bayes journal code.

- dialup_codes now a privileged setting.

- clean PATH env variable immediately upon spamd start; fixed problem
  with taint mode failures when getting hostname in Perl 5.005.

- NetBSD: fixed SSL support, spamd start script.

- single-Received-header mails were not getting DNSBL checks.

- some doco fixes.


Changes since 2.51:

  - bug 1664: expiry imposed way too much load when a single
    site-wide Bayes db was used, fixed
  - bug 1672: a typo in a backported patch for 2.51 caused Bayes to
    sometimes not unlock the db, fixed
  - INSTALL now strongly recommends using DB_File
  - some NetBSD support fixes
  - bug 1601: option --syslog-socket wasn't implemented
  - bug 1260: corrected description of --nocreate-prefs option


Changes since 2.50:

  - Bayes locking and concurrency issues fixed
  - Bayes expiration was not working; fixed
  - spamd was not enabling Bayes after auto-learning without restart;
    fixed
  - safer way to attach spams, for broken mail clients, using 'report_safe
    2'
  - a few doco cleanups


Main changes since 2.4x:

- Bayesian filtering, using a Bayesian-style form of probability-analysis
  classification.  This uses an algorithm based on the one detailed in
  Paul Graham's 'A Plan For Spam' paper, along with aspects taken from
  Graham Robinson's work, and the chi-combining technique developed by the
  SpamBayes project.

- Auto-learning.  This trains the Bayesian filter automatically, based on
  the results from traditional SpamAssassin diagnosis.   It uses a set of
  heuristics and separate thresholds to ensure (as much as is possible)
  that it trains on guaranteed non-spam and spam.   Old, unused tokens are
  automatically expired.

- much-improved rule set.  A whole new set of rules based on Message-Id
  analysis is now in place, which accurately detects forged headers from
  a wide range of spamware.   Many inaccurate rules have been dropped.
  HTML tests much improved, with a set to detect image-only spam.

- new default format for detected-spam messages; the message is
  encapsulated as a MIME part, with a preview and the spam report
  in the main part of the message.

- Score sets.  Based on whether you are using just SpamAssassin rules,
  adding network tests, and using a trained Bayesian database,
  SpamAssassin will use a set of scores appropriately to gain the
  maximum degree of accuracy.

- Italian, Polish, Spanish, French and German rule sets and translations.

- Much improved reliability with spamd.  The problems with signals
  have been cleared up thanks to a pipe-based child tracking system,
  and all spamd-hanging bugs reported have proved unreproducable.

- Unicode problems with Red Hat 8 and perl 5.8 fixed.   Works on Perl
  5.005, 5.6.x, and 5.8.x.

- Taint-safe.  SpamAssassin runs with perl's taint-checking enabled for
  better security.

- Razor 1 support is now officially deprecated.

- "spamc -c" was not working, fixed.  This fix required increasing the
  revision of the spamd protocol; only difference is that now more than
  one protocol header can appear in the reply from spamd.

- all fixes from 2.44 included.
2003-04-15 00:02:24 +00:00
heinz
bea17a032b Remove incorrect 'free()' from libspamc.c (used in 'spamc'). Patch copied
from stable branch of SA CVS repository.

On other operating systems 'spamc' was reported to cause a core dump if
'spamd' was not running. At least NetBSD/i386 1.5.3 seems not to be as
severely affected, I only got 'spamc in free(): warning: junk
pointer, too high to make sense.'.
2003-02-09 02:55:41 +00:00
heinz
fce90a9f2c Remove incorrect 'free()' from libspamc.c (used in 'spamc'). Patch copied
from stable branch of SA CVS repository.

On other operating systems 'spamc' was reported to cause a core dump if
'spamd' was not running. At least NetBSD/i386 1.5.3 seems not to be as
severely affected, I only got 'spamc in free(): warning: junk
pointer, too high to make sense.'.
2003-02-09 02:27:54 +00:00
heinz
827b142e37 Maintenance update to 2.44
Parts of patch-ag and patch-ah as well as complete patch-aa could be
removed again, they are now included in SA 2.44 (see below).

#### official release announcement ###############

This is a bug-fix release, which fixes the following bugs:

  - Backport fix for Bug 1306: Possible buffer overflow in libspamc when
    running in BSMTP mode (patch 1.15 -> 1.18)

  - Backport workaround from Bug 526: Failed sanity check because of
    clobbered STDOUT (patch 1.147 -> 1.148)

  - Backport fix for Debian Bug 160206: Insufficient buffer in libspamc
    (patch 1.8 -> 1.9)

  - Backport fix for warnings in sed_path (patch 1.141 -> 1.142)

  - Backport fix for Bug 1127: Existing lowercase x-spam-status header
    kills SpamAssassin (patch 1.40 -> 1.41)

  - localized %ENV to fix problem where Razor2 erases the PATH so DCC
    and
    pyzor don't work, etc.

Note that this is *not* 2.50, which offers Bayesian filtering etc. These
bugs are already fixed in the 2.50 CVS tree, but that is not yet ready for
release.  This is a stable maintainance release only.
2003-02-02 19:38:39 +00:00
tron
c30f53768f Fix buffer overflow in "spamc" program can be remotely exploited.
Bump package revision.
2003-01-29 17:34:28 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
heinz
24d4f258b3 Changed the rc.d script to account for different behaviour of
load_rc_config in NetBSD 1.6. This resolves PR pkg/18928 by Frank Cusack
(fcusack at fcusack com).

The rc.d script is now called on 'shutdown'.

Included fixes from SA CVS repository (2002-10-21) to minimize
impact of Razor2 on the environment vector, especially PATH.

Bumped PKGREVISION.
2002-11-06 21:51:26 +00:00
heinz
fc7f5bd8aa PKGREVISION is now empty, to placate lintpkgsrc (thanks to Martti
Kuparinen).
2002-10-21 12:39:30 +00:00
jlam
8956afab00 For subtle reasons, expand ${WRKSRC} into ${WRKDIR}/${DISTNAME} in
RCD_SCRIPT_SRC.spamd definition.  The reason is that WRKSRC isn't defined
by the time we get down to bsd.pkg.install.mk, so the dependency logic
replaces "${WRKSRC}" with "", which is wrong.

XXX bsd.pkg.install.mk should really be included by bsd.pkg.mk, in much the
XXX same way bsd.buildlink2.mk is included by bsd.pkg.mk.  It would remove
XXX these ordering problems with variables not being available.
2002-10-21 07:57:07 +00:00
heinz
cf59fe8ec6 Update to 2.43
Item 1) was already provided by 'inofficial' patch-af for 2.42 (now
removed).

Two new patches (-ag and -ah) from the SpamAssassin-current repository
work around a roblem with razor2 timeouts.

Logo 'ninjabutton.png' is now in the correct html directory.

Official changes:
 1) AWL change reverted; instead of decreasing the AWL bias gradually to
    allow frequently-seen addresses to get into the "nonspam" area, it now
    behaves like 2.31 did, in that the AWL simply represents the
    long-term average score from that correspondent.

 2) core-dump bug in spamd worked around, _except for the "-m" switch_.
    The "-m" switch relies on signal handling in the Perl interpreter,
    which seems to have some bugs we cannot work around reliably on some
    platforms, so its use is no longer recommended.

 3) some portability fixes for SunOS.
2002-10-20 20:09:05 +00:00
heinz
cc4c6f0e91 - Setting PKG_SYSCONFBASE in /etc/mk.conf works now (Thanks to Urban
Boquist).
- Included fix for bad AWL behaviour which will also be in 2.50 (maybe 2.43)
  (ie AWL works the same again as in SA 2.31). This causes revision bump.
2002-10-08 16:41:32 +00:00
heinz
c820c3185c Update to 2.42.
Uses buildlink2 and module.mk. Some perl scripts for rule developers
(in PREFIX/share/doc/spamassassin/{masses,tools}/) and a small SpamAssassin
logo (PREFIX/share/doc/spamassassin/html/) are now included.
New netbsd_lists.cf file to reduce false positives on NetBSD lists (so
far, only some rules for netbsd-bugs).

Changes:
- bug fixes
- new, better scores (intensive testing was done to improve on 2.40 and
  2.41)
- netbsd rc.d script works now with NetBSD 1.5 and 1.6
- management of addresses in the automatic whitlist now easier with
  dedicated options (--add-addr-to-whitelist, --remove-addr-from-whitelist)
2002-10-08 00:49:18 +00:00
simonb
5ecdb5eb31 Update spamassassin to 2.41.
Major changes include:

 - SpamAssassin now *REQUIRES* procmail for local delivery support; "-P"
   option is now the default.  Unless you use procmail, Mail::Audit, KMail,
   or an MTA-level integration, do not upgrade blindly, your mail *WILL*
   spill all over the floor in a big mess.

 - significant speed increases, mostly from Matt Sergeant and Dan Quinlan

 - bugs in whitelist_to, all_spam_to and friends fixed

 - rules which were causing too many false-positives removed or fixed:
   DOUBLE_CAPSWORD, UPPERCASE_25_50, PARTIAL_RFC_2369, MSGID_CHARS_SPAM,
   many others

 - lots of rule fixes, and lots of new rules
2002-09-29 23:44:28 +00:00
grant
0c5bb6abcc Make these scripts more portable by taking advantage of automatic rc.d
script handling and using @RCD_SCRIPTS_SHELL@.

as discussed with jlam.
2002-09-20 02:01:54 +00:00
grant
1a32f410cb Use @PREFIX@, not "/usr/pkg" (which is obviously not right). 2002-09-20 01:38:38 +00:00
jlam
5c053dd06a Take advantage of the auto-generation and installation of rc.d scripts. 2002-09-19 09:04:02 +00:00
wiz
45bacf7314 Add conflict with p5-Mail-SpamAssassin (for those who still have it installed). 2002-09-08 23:30:38 +00:00
hubertf
24616a7a60 The SpamAssassin daemon (spamd) must be started with the -d
flag to really become a daemon, but that flag is missing in
        the provided rc.d script.

Patch by Urban Boquist <urban@boquist.net> in PR 18171
2002-09-05 09:03:33 +00:00
abs
af036bcd9e Add REQUIRE: DAEMON to ensure starts at the right time.
Omission noted by wiz.
2002-08-30 11:17:10 +00:00
abs
09a910259e Updated spamassassin to 2.31nb1
Add rc.d/spamd (From norm at sandbox org uk)
2002-08-30 10:50:51 +00:00
hubertf
d7cbb07612 Rename pkgsrc/mail/p5-Mail-Spamassassin to pkgsrc/mail/spamassassin. 2002-08-26 16:00:52 +00:00
hubertf
2c0cbb9af6 Rename pkgsrc/mail/p5-Mail-Spamassassin to pkgsrc/mail/spamassassin. 2002-08-26 15:54:28 +00:00
hubertf
065db589cb spamassassin is already present as p5-Mail-SpamAssassin
(how obvious... NOT!)
2002-08-25 22:44:19 +00:00
hubertf
ed728fb611 Add spamassassin-2.31: Spam identifier and blocker
SpamAssassin is a mail filter which attempts to identify spam using text
analysis and several internet-based realtime blacklists.

Using its rule base, it uses a wide range of heuristic tests on mail
headers and body text to identify "spam", also known as unsolicited
commercial email.

Once identified, the mail can then be optionally tagged as spam for later
filtering using the user's own mail user-agent application.

In its most recent test, SpamAssassin differentiated between spam and
non-spam mail correctly in 99.94% of cases.  Since then, it's just been
getting better and better!
2002-08-24 19:46:39 +00:00