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.
Additional drop-in rule sets are available at
http://wiki.apache.org/spamassassin/CustomRulesets
WWW: http://spamassassin.apache.org/
===> The following configuration options are available for p5-Mail-SpamAssassin-3.4.0_2:
AS_ROOT=on: Run spamd as root (recommended)
GNUPG=on: Install GnuPG (for sa-update, optional)
IPV6=on: IPv6 sockets support
SSL=on: Build spamd/spamc with SSL support
UPDATE_AND_COMPILE=on: Download and compile rulesets (recommended)
====> Optional user-config database backends
MYSQL=off: MySQL database support
PGSQL=off: PostgreSQL database support
====> Optional SpamAssassin plugins
DCC=off: Add DCC support (mail/dcc-dccd)
DKIM=on: DKIM/DomainKeys Identified Mail (mail/p5-Mail-DKIM)
PYZOR=off: Add Pyzor support (mail/pyzor)
RAZOR=on: Add Vipul's Razor support (mail/razor-agents)
RELAY_COUNTRY=off: Relay country support (net/p5-IP-Country)
SPF_QUERY=off: Add SPF query support (mail/p5-Mail-SPF)
===> Use 'make config' to modify these settings
Move {mail,japanese}/p5-Mail-SpamAssassin to &/spamassassin, in the name of
improving accessibility.
I think people who want to just find the port/package and install it are
more likely to look for "spamassassin the program" than "spamassassin the
perl module collection."
- Tidy the Makefile a bit more
- Break database backends out into their own OPTIONS group, for clarity
- Generalize the plugin enabling process to make it easier to add support
for new ones
- Remove an unnecessary rc.subr function, and use ${name} in the rc script
- Put some marginally helpful comments in the rc script
No PORTREVISION bump as all these changes don't affect the finished
product, sortof.
Retire mail/p5-Mail-SpamAssassin-Alt. It contained two
options, one of which was already a default, and the other
required you to hand-edit configuration files, so having
an option to auto-enable it wouldn't really get you anywhere.
- Introduce an option (on by default) to run sa-update and sa-compile
automatically on installation. With this, spamassassin installation
is no longer interactive.
- Break out plugin options into a PLUGIN group, for clarity.
- Add a pyzor plugin.
- Fold pkg-install contents into the pkg-plist.
- Add targets to ALL_TARGET, rather than invoking sub-makes multiple
times.
- PORTREVISION bumps all around.
Update SpamAssassin to 3.4.0, and take maintainership.
As part of this upgrade, the SPAMC option has been removed. First
and foremost, it was a NO-OP as spamc/spamd was being built anyway.
A number of other OPTIONS and dependencies have been cleaned up as
well.
I am also taking maintainership of p5-Mail-SpamAssassin-Alt, and I
intend to deprecate it unless I hear otherwise.
The patch/plist for japanese/p5-M-SA is no longer versioned. It'll
make future updates cleaner.
PR: ports/186756
The patch is a collaborative effort between myself and
Takefu <takefu@airport.fm>
Add a patch from SpamAssassin bug #6937 to improve compatibility
with perl 5.18's changes to "each" ordering. This fixes the message:
Use of each() on hash after insertion without resetting hash iterator results in
undefined behavior, Perl interpreter: 0x2880d800 at
/usr/local/lib/perl5/site_perl/5.18/Mail/SpamAssassin/AsyncLoop.pm line 363,
<GEN84> line 98.
PR: ports/186819
Approved by: perl (maintainers)
- Fix issue when spamd crashes because of memory problems in Logger.pm
For more details see Bug 6745
- Do not bump portrevision since issue not global
While I'm here:
- convert to the new perl5 framework
PR: ports/181242
Submitted by: Igor Roshchin <spamd-pr@str.komkon.org>
Tested by: Igor Roshchin <spamd-pr@str.komkon.org> (two weeks)
Approved by: maintainer (timeout)
- Fix CONFLICTS glob [1]
- Change OPTIONS= to += to support p5-Mail-SpamAssassin-Alt
- change post-patch: to :: to support p5-Mail-SpamAssassin-Alt
Submitted by: crees@ [1]
- More updates to support slave. Define ETCDIR
- Best practices, change ${CP} to ${INSTALL_DATA}
PR: ports/165765
Submitted by: scheidell (me)
Feature safe: yes
- Revert ports/165605 as requested by portmgr@
Note: devel/p5-B-Size and devel/p5-Devel-Arena
where intentionally not restored.
PR: ports/165605
Approved by: portmgr (bapt)
Feature safe: yes (I sure hope so)
- Deprecate EOL perl. This port will now only work with perl 5.12+ for installs
or upgrades.
- No PORTVERSION bump. Current users are NOT affected. Current users should not
upgrade.
PR: ports/165605
Submitted by: scheidell (me)
Feature safe: yes
- Remove ports that only work with < perl 5.12 (devel/p5-B-Size,
devel/p5-Devel-Arena)
- Remove conditionals for PERL_LEVEL < 501200
- Remove regression-test targets b/c this will be centralized in Mk/bsd.perl.mk
- Other minor cleanups
RUN_DEPENDS = ${BUILD_DEPENDS} -> RUN_DEPENDS:= ${BUILD_DEPENDS}
PR: ports/165605
Submitted by: pgollucci (myself)
Approved by: portmgr (linimon)
Exp Run by: linimon
Tested by: make index
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
- Built packages were not passing INSTALL var [1]
- moved pkg-install to files/pkg-install.in to fix [1]
- General cleanup:
- Move MAN* to files/manpages
- pre-install is/was not su. DATADIR was not made if you were not root
- removed pkginstall from pre-su-install (not needed, was a no-op anyway
- use my freebsd name as maintainer for auto GNATS assignments.
PR: ports/163715 [1]
Submitted by: Alexey Markov <redrat@mail.ru> [1]
Approved by: gabor (mentor)
- private email, patch to fix issue with dcc and existing X-DCC headers [1]
- pet pkg-plist
Submitted by: Herbert J. Skuhra [1]
Reviewed by: Vernon Schryver vjs@rhyolite.com
Approved by: gabor (mentor)
Obtained from: https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6698
Approved by: gabor (mentor)
Feature safe: yes
clean up a little for portlint sake.
The check for sa rules was not running right (rc keeps changing)
Backport DCC.pm from SA 3.4.0, SA bug: 6698
- Remove AWL support code [1]
- change PKGNAMEPREFIX = p5 to ? to allow slave ports
- Fix sa-update behaviour when disk full
PR: ports/160282
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer), [1] Jason
Helfman
- Update to 3.3.2. Now works with perl 5.12+ with no warnings.
- Separate out RUN_DEPENDS and BUILD_DEPENDS.
- Do not hardcode spamd as the user in the RC script.
- Use @stopdaemon.
- Add a patch from upstream that fixes a bug when using MYSQL.
PR: ports/158267
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
- use ports framework to create USER and GROUP [1]
- add bugfix for https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6488
noted by Yury <yuri _at_ rawbw.com>
- bump PORTREVISION
PR: ports/157664 [1]
Submitted by: Chris Rees <utisoft _at_ gmail.com>
Approved by: maintainer ( Michael Scheidell <scheidell _at_ secnap.net> )
Change dependency on old p5-Compress-Zlib, p5-IO-Compress-Base,
p5-IO-Compress-Zlib and p5-IO-Compress-Bzip2 modules to p5-IO-Compress.
Explicitly depend on p5-IO-Compress only if PERL_LEVEL < 500903
Bump PORTREVISION
- Update to 3.3.1
- Re-work pkg-install to ask about installing rules if they do not exist.
Rules are no longer distributed with the software and must be obtained
by running sa-update before trying to start spamd.
PR: ports/144911
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
- Fix QAT by not touching DATADIR until pre-install target.
- Fix pkg-install to give a warning that the rules need to be installed if they
don't already exist.
Submitted by: wxs@
Approved by: Michael Scheidell <scheidell@secnap.net> (maintainer)
Feature safe: yes
- Some dependency adjustments
- Fix syntax error, which was kept undetected so far because of the
optional case [1]
PR: ports/143729
Submitted by: Michael Scheidell <scheidell@secnap.net>
Reported by: koitsu [1]
- Fixing 3 issues:
#1 There were problems with p5-Mail-DKIM 0.33, requiring >=0.34 [1]
#2, running spamassassin via procmail could close without generating
a error code [1] [2]
#3, compiling spamc/spamd with NON base, ie PORTS openssl would fail.
patch to makefile to include CFLAGS [1] [3]
- Bump PORTREVISION
PR: ports/135001 [1], ports/134552 [2]
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer) [1],
Eric van Gyzen <eric@vangyzen.net> [2],
olivier [3]
- Update sa-update channel when updating the port
- Bump PORTREVISION
PR: ports/134574
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
. pre-install -> pre-su-install since this target (via pkg-install) creates
the 'spamd' user and groups.
PR: 126700
Approved by: Michael Scheidell (maintainer)
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
- Pass CC via MAKE_ENV to fix the case when users do something like this
.if ${.CURDIR:M/usr/ports/*} && !${.CURDIR:M*/work/*}
CC= gcc
.endif
in /etc/make.conf (this port uses CC to build WRKSRC/spamc).
PR: ports/122940
Submitted by: Frank Fenor <frank at fenor.de>
Approved by: maintainer
- Fix bumps portrevision and dependency on p5-Net-DNS from 0.60 to 0.63
PR: ports/122162
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
Remove a duplicated DOCS= line. This commit does not affect
the build or anything.
Submitted by: TAOKA Fumiyoshi <fmysh@iijmio-mail.jp>
PR: 119266
Approved by: maintainer
- Update to 3.2.3
- Add reinplace_cmd to respect CC
- From maintainer:
Several security updates from 3.2.1 to 3.2.2, but 3.2.2 broke spamd.
This fixes the spamd problem in 3.2.2 as well.
Build depends for DNS bumped to .60 due to DOS condition,
crypt to 0.24 due to segv in spamd with malformed DomainKey message.
DomainKey plugin turned BACK OFF in default installs (not needed now that DKIM
does work)
PR: ports/115369
Submitted by: Michael Scheidell <scheidell@secnap.net>`
Approved by: sat (mentor)
- take sa-compile out of Makefile and put into pkg-install, so it gets executed
from pkg_add
- add two interactive questions (with 120 seconds timeout)
- raise minimal version of p5-Net-DNS to .60
- despire documentation, dkim still needs p5-Mail-DomainKeys
PR: ports/114188
Submitted by: Michael Scheidell <scheidell@secnap.net> (maintainer)
Remove my name and e-mail address from these pkg-descr files for ports
that I no longer maintain. This was finally identified by a helpful user
as the source of the mystery e-mails that I still get from time to time
asking about support for them.
- SpamAssassin has been updated to 3.2.0
See http://spamassassin.apache.org
This is mostly a maintenance and features update.
There are however a couple of FreeBsd specific issues:
1) sa-update now puts files into /var/db/spamassassin/{version} where it
belongs rather than in the non-standard /var/lib/spamassassin.
Thanks to uhlar@fantomas.sk (see PR: ports/108934
2) security, version minimum updates:
Compress-Zlib needs to be minimum 1.04, HTML-Parser, 3.3.1, Tar.pm,
1.2.3, gnupg >=1.4.7 (gnupg 2.x preferred)
3) additional files needed: Detect.pm for encoding, p5-Mail-SPF replaces
p5-Mail-SPF-Query, newer DKIM replaces DomainKeys
4) sa-compile is broken (need re2c >=.11.3 or it segfaults)
5) tools directory removed (find it in SVN if you need it)
6) patch files added: patch-ImageInfo.pm and patch-sa-compile.raw
7) patch files REMOVED (ports, please note:
don't need patch-sa-learn-raw anymore!
PR: ports/112502
Submitted by: maintainer (Michael Scheidell)
- If there is no gnupg installed, install 2.x. If there is, use it. [1]
- DKIM plugin and Mail::DKIM do not need Mail::DomainKeys [2]
- Fix sa-learn with stdin [3]
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5336
- Bump PORTREVISON
PR: ports/109434 [1]
Submitted by: Michele Possamai <possamai at xs4all.nl> [1],
Mark Martinec (amavisd-new writer) [2], takefu [3]
Approved by: Michael Scheidell <scheidell at secnap.net> (maintainer)
- Since security/gnupg (2.x) installs symlink $PREFIX/bin/gpg,
depending on $PREFIX/bin/gpg for security/gnupg1 (1.4.x) is not
correct. To work around this, change dependency line from bin/gpg
to bin/gpgv which exists in security/gnupg1 port only.
Spotted by: ume
- Update to 3.1.7
- note : 3.1.7 is a "quick-fix" release; it contains only a fix for one bug,
introduced accidentally in 3.1.6:
if admins had set rule scores in the site configuration in
/etc, sa-update would fail. Back out this change
PR: ports/104314
Submitted by: Yoshito Uchiyama<gato_AT_intaa dot net>