diff options
author | joerg <joerg@FreeBSD.org> | 2004-04-08 16:00:34 +0800 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2004-04-08 16:00:34 +0800 |
commit | ace1be8a343f133b4640486e03bdc27d95d7bb6c (patch) | |
tree | 9b16aee321223384212921c7758001e8daf1da89 /mail | |
parent | 526cda912858881587b50f48dc0081257720701b (diff) | |
download | freebsd-ports-gnome-ace1be8a343f133b4640486e03bdc27d95d7bb6c.tar.gz freebsd-ports-gnome-ace1be8a343f133b4640486e03bdc27d95d7bb6c.tar.zst freebsd-ports-gnome-ace1be8a343f133b4640486e03bdc27d95d7bb6c.zip |
Initial import of spampd, an SMPT/LMTP proxy that connects to
spamassassin. Useful to wire spamassassin into Postfix.
Submitted by: Christian Schade <christian.schade@interface-systems.de>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/spampd/Makefile | 25 | ||||
-rw-r--r-- | mail/spampd/distinfo | 2 | ||||
-rw-r--r-- | mail/spampd/files/patch-setsid | 19 | ||||
-rw-r--r-- | mail/spampd/files/spampd.sh.sample | 21 | ||||
-rw-r--r-- | mail/spampd/pkg-descr | 11 | ||||
-rw-r--r-- | mail/spampd/pkg-plist | 2 |
7 files changed, 81 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index f0a3fa6b4bf7..d398aa69f275 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -368,6 +368,7 @@ SUBDIR += spamd SUBDIR += spamguard SUBDIR += spamoracle + SUBDIR += spampd SUBDIR += spamprobe SUBDIR += spamstats SUBDIR += spruce diff --git a/mail/spampd/Makefile b/mail/spampd/Makefile new file mode 100644 index 000000000000..c49cbe8b1c58 --- /dev/null +++ b/mail/spampd/Makefile @@ -0,0 +1,25 @@ +# ports collection makefile for: spampd +# Date created: 7 April 2004 +# Whom: chris +# +# $FreeBSD$ +# + +PORTNAME= spampd +PORTVERSION= 2.12 +CATEGORIES= mail perl5 +MASTER_SITES= http://www.worlddesign.com/Content/rd/mta/spampd/ + +MAINTAINER= christian.schade@interface-systems.de +COMMENT= Spamassassin SMTP Proxy + +RUN_DEPENDS= spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin \ + ${SITE_PERL}/Net/Server/PreForkSimple.pm:${PORTSDIR}/net/p5-Net-Server + +NO_BUILD= yes + +do-install: + @${INSTALL_SCRIPT} ${WRKSRC}/spampd ${PREFIX}/sbin + @${INSTALL_SCRIPT} ${FILESDIR}/spampd.sh.sample ${PREFIX}/etc/rc.d + +.include <bsd.port.mk> diff --git a/mail/spampd/distinfo b/mail/spampd/distinfo new file mode 100644 index 000000000000..2eb13ba436ae --- /dev/null +++ b/mail/spampd/distinfo @@ -0,0 +1,2 @@ +MD5 (spampd-2.12.tar.gz) = cf4d5959500053c83ac230cd27fd8dd1 +SIZE (spampd-2.12.tar.gz) = 21862 diff --git a/mail/spampd/files/patch-setsid b/mail/spampd/files/patch-setsid new file mode 100644 index 000000000000..2fafac1852a7 --- /dev/null +++ b/mail/spampd/files/patch-setsid @@ -0,0 +1,19 @@ +*** spampd.orig Wed Apr 7 14:32:09 2004 +--- spampd Wed Apr 7 14:32:17 2004 +*************** my $server = bless { +*** 831,837 **** + syslog_ident => 'spampd', + syslog_facility => 'mail', + background => 1, +! # setsid => 1, + pid_file => $pidfile, + user => $user, + group => $group, +--- 831,837 ---- + syslog_ident => 'spampd', + syslog_facility => 'mail', + background => 1, +! setsid => 1, + pid_file => $pidfile, + user => $user, + group => $group, diff --git a/mail/spampd/files/spampd.sh.sample b/mail/spampd/files/spampd.sh.sample new file mode 100644 index 000000000000..c9ee609a7a55 --- /dev/null +++ b/mail/spampd/files/spampd.sh.sample @@ -0,0 +1,21 @@ +#!/bin/sh + +case "$1" in +start) + if [ -x /usr/local/sbin/spampd ]; then + /usr/local/sbin/spampd --user=uucp --group=uucp --host 127.0.0.1:10024 --relayhost=127.0.0.1:10025 --dose --tagall --auto-whitelist + echo -n ' spampd' + fi + ;; +stop) + if [ -f /var/run/spampd.pid ]; then + kill `cat /var/run/spampd.pid` + rm -f /var/run/spampd.pid + echo -n ' spampd' + fi + ;; +restart) + $0 stop + $0 start + ;; +esac diff --git a/mail/spampd/pkg-descr b/mail/spampd/pkg-descr new file mode 100644 index 000000000000..b8151dee65a5 --- /dev/null +++ b/mail/spampd/pkg-descr @@ -0,0 +1,11 @@ +spampd is a program used within an e-mail delivery system to scan messages for +possible Unsolicited Commercial E-mail (UCE, aka spam) content. + +It uses an excellent program called SpamAssassin (SA) to do the actual message +scanning. spampd acts as a transparent SMTP/LMTP proxy between two mail servers, +and during the transaction it passes the mail through SA. If SA decides the +mail could be spam, then spampd will ask SA to add some headers and a report to +the message indicating it's spam and why. spampd is written in Perl and should +theoretically run on any platform supported by Perl and SpamAssassin. + +WWW: http://www.worlddesign.com/index.cfm/rd/mta/spampd.htm diff --git a/mail/spampd/pkg-plist b/mail/spampd/pkg-plist new file mode 100644 index 000000000000..79736cd025aa --- /dev/null +++ b/mail/spampd/pkg-plist @@ -0,0 +1,2 @@ +sbin/spampd +etc/rc.d/spampd.sh.sample |