ports/119576: [NEW PORT] mail/dovecot-antispam: The dovecot antispam plugin

Denis Shaposhnikov dsh at wizard.volgograd.ru
Fri Jan 11 22:10:03 UTC 2008


>Number:         119576
>Category:       ports
>Synopsis:       [NEW PORT] mail/dovecot-antispam: The dovecot antispam plugin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 11 22:10:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD localhost.my.domain 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Oct  1 18:16:29 MSD
>Description:
The dovecot antispam plugin watches a defined spam folder (defaults to
"SPAM"). Instead of moving mail into special folders or forwarding
them to special mail addresses for retraining, the plugin offers two
actions for the user:

    1. moving mail out of the SPAM folder and

    2. moving mail into the SPAM folder.

The dovecot plugin watches these actions (and additionally prohibits
APPENDs to the SPAM folder, more for technical reasons than others)
and tells the spam classifier that it made an error and needs to
re-clas- sify the message (as spam/not spam depending on which way it
was moved.)

WWW: http://johannes.sipsolutions.net/Projects/dovecot-antispam

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- dovecot-antispam-20071029.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	dovecot-antispam
#	dovecot-antispam/Makefile
#	dovecot-antispam/distinfo
#	dovecot-antispam/pkg-descr
#	dovecot-antispam/pkg-message
#	dovecot-antispam/pkg-plist
#	dovecot-antispam/files
#	dovecot-antispam/files/patch-dspam-exec.c
#
echo c - dovecot-antispam
mkdir -p dovecot-antispam > /dev/null 2>&1
echo x - dovecot-antispam/Makefile
sed 's/^X//' >dovecot-antispam/Makefile << 'END-of-dovecot-antispam/Makefile'
X# New ports collection makefile for:	dovecot-antispam
X# Date created:		Sat Jan  5 16:31:30 MSK 2008
X# Whom:			Denis Shaposhnikov <dsh at wizard.volgograd.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	dovecot-antispam
XPORTVERSION=	20071029
XCATEGORIES=	mail
XMASTER_SITES=	http://ports.internal.vlink.ru/distfiles/
X
XMAINTAINER=	dsh at wizard.volgograd.ru
XCOMMENT=	The dovecot antispam plugin
X
XBUILD_DEPENDS=	${NONEXISTENT}:${PORTSDIR}/mail/dovecot:configure
XRUN_DEPENDS=	dovecot>=1.0.10:${PORTSDIR}/mail/dovecot
X
XUSE_BZIP2=	yes
XUSE_GMAKE=	yes
XUSE_LDCONFIG=	${PREFIX}/lib/dovecot/imap
X
XMAN7=		dovecot-antispam.7
X
XOPTIONS+=	DSPAM "direct dspam training" on
XOPTIONS+=	MAILTRAIN "send mail to special addresses for training" off
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/lib90_antispam_plugin.so \
X		${PREFIX}/lib/dovecot/imap/
X	${INSTALL_MAN} ${WRKSRC}/antispam.7 \
X		${MANPREFIX}/man/man7/dovecot-antispam.7
X
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.pre.mk>
X
Xdo-configure:
X	DOVECOT=`${MAKE} -C ${PORTSDIR}/mail/dovecot -V WRKSRC` && \
X		${ECHO} "DOVECOT=$$DOVECOT" > ${WRKSRC}/.config
X	${ECHO} "DOVECOT_VERSION=1.0" >> ${WRKSRC}/.config
X.if defined(WITH_DSPAM)
X	${ECHO} "BACKEND=dspam-exec"  >> ${WRKSRC}/.config
X.endif
X.if defined(WITH_MAILTRAIN)
X	${ECHO} "BACKEND=mailtrain"  >> ${WRKSRC}/.config
X.endif
X	${ECHO} "PLUGINNAME=antispam" >> ${WRKSRC}/.config
X
X.include <bsd.port.post.mk>
END-of-dovecot-antispam/Makefile
echo x - dovecot-antispam/distinfo
sed 's/^X//' >dovecot-antispam/distinfo << 'END-of-dovecot-antispam/distinfo'
XMD5 (dovecot-antispam-20071029.tar.bz2) = 128b94b34f81807192256cfed5b3e809
XSHA256 (dovecot-antispam-20071029.tar.bz2) = 7134526bd3edb999c1292f64654f1510b993a82da3fca1c3db442e47ed9a0464
XSIZE (dovecot-antispam-20071029.tar.bz2) = 17205
END-of-dovecot-antispam/distinfo
echo x - dovecot-antispam/pkg-descr
sed 's/^X//' >dovecot-antispam/pkg-descr << 'END-of-dovecot-antispam/pkg-descr'
XThe dovecot antispam plugin watches a defined spam folder (defaults to
X"SPAM"). Instead of moving mail into special folders or forwarding
Xthem to special mail addresses for retraining, the plugin offers two
Xactions for the user:
X
X    1. moving mail out of the SPAM folder and
X
X    2. moving mail into the SPAM folder.
X
XThe dovecot plugin watches these actions (and additionally prohibits
XAPPENDs to the SPAM folder, more for technical reasons than others)
Xand tells the spam classifier that it made an error and needs to
Xre-clas- sify the message (as spam/not spam depending on which way it
Xwas moved.)
X
XWWW: http://johannes.sipsolutions.net/Projects/dovecot-antispam
END-of-dovecot-antispam/pkg-descr
echo x - dovecot-antispam/pkg-message
sed 's/^X//' >dovecot-antispam/pkg-message << 'END-of-dovecot-antispam/pkg-message'
X---------------------------------------------------------------------
X 
XThis port assumes you are known with Dovecot and have it installed and
Xrunning on the system you have installed this plugin on.
X
XYou can enable the plugin with this directive in your dovecot.conf:
X
X    protocol imap {
X        mail_plugins = antispam
X    }
X
XFurther information on configuration can be found at:
X 
X    man 7 dovecot-antispam
X
X---------------------------------------------------------------------
END-of-dovecot-antispam/pkg-message
echo x - dovecot-antispam/pkg-plist
sed 's/^X//' >dovecot-antispam/pkg-plist << 'END-of-dovecot-antispam/pkg-plist'
Xlib/dovecot/imap/lib90_antispam_plugin.so
X at dirrmtry lib/dovecot/imap
X at dirrmtry lib/dovecot
END-of-dovecot-antispam/pkg-plist
echo c - dovecot-antispam/files
mkdir -p dovecot-antispam/files > /dev/null 2>&1
echo x - dovecot-antispam/files/patch-dspam-exec.c
sed 's/^X//' >dovecot-antispam/files/patch-dspam-exec.c << 'END-of-dovecot-antispam/files/patch-dspam-exec.c'
X--- dspam-exec.c.orig	2007-10-29 14:09:16.000000000 +0300
X+++ dspam-exec.c	2008-01-05 18:38:37.000000000 +0300
X@@ -127,7 +127,7 @@
X 
X 		argv[0] = (char *)dspam_binary;
X 		argv[1] = "--source=error";
X-		argv[2] = "--stdout";
X+		argv[2] = "--deliver=";
X 		argv[3] = (char *)class_arg;
X 		argv[4] = (char *)sign_arg;
X 
X@@ -136,7 +136,7 @@
X 		 * not good with stderr debuggin since we then write to
X 		 * stderr which our parent takes as a bug
X 		 */
X-		debug("%s --source=error --stdout %s %s ...",
X+		debug("%s --source=error --deliver= %s %s ...",
X 		      dspam_binary, class_arg, sign_arg);
X #endif
X 
END-of-dovecot-antispam/files/patch-dspam-exec.c
exit
--- dovecot-antispam-20071029.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list