1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

ProxSMTP is a flexible tool that allows you to reject, change or log

email based on arbitrary critera. It accepts SMTP connections and
forwards the SMTP commands and responses to another SMTP server. You
need to be able to write the filtering scripts that integrate it with
your particular needs.

PR:		ports/80596
Submitted by:	Dario Freni <saturnero@gufi.org>
This commit is contained in:
Pav Lucistnik 2005-05-04 14:42:03 +00:00
parent 9fcf507f17
commit e01a6f68f7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134610
8 changed files with 111 additions and 0 deletions

View File

@ -371,6 +371,7 @@
SUBDIR += prom-mew
SUBDIR += prom-wl
SUBDIR += pronto
SUBDIR += proxsmtp
SUBDIR += py-milter
SUBDIR += py-mimelib
SUBDIR += py-spambayes

41
mail/proxsmtp/Makefile Normal file
View File

@ -0,0 +1,41 @@
# New ports collection makefile for: proxsmtp
# Date created: 2005-05-03
# Whom: Dario Freni <saturnero@gufi.org>
#
# $FreeBSD$
#
PORTNAME= proxsmtp
PORTVERSION= 1.2.1
CATEGORIES= mail security
MASTER_SITES= http://memberwebs.com/nielsen/software/proxsmtp/
MAINTAINER= saturnero@gufi.org
COMMENT= A flexible SMTP filter which can act also as trasparent proxy
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_RC_SUBR= proxsmtpd.sh
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN5= proxsmtpd.conf.5
MAN8= proxsmtpd.8
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e "s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS}," ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/proxsmtpd.conf ${PREFIX}/etc/proxsmtpd.conf-sample
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

2
mail/proxsmtp/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (proxsmtp-1.2.1.tar.gz) = 7af2d5feafb1386934d347a5f5dc827e
SIZE (proxsmtp-1.2.1.tar.gz) = 156525

View File

@ -0,0 +1,11 @@
--- configure.orig Fri Apr 15 07:18:10 2005
+++ configure Wed Apr 20 15:45:54 2005
@@ -3156,7 +3156,7 @@
# which indicates that we try without any flags at all, and "pthread-config"
# which is a program returning the flags for the Pth emulation library.
-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+acx_pthread_flags="pthreads none -Kthread -kthread %%PTHREAD_LIBS%% -pthreads lthread -mthreads pthread --thread-safe -mt pthread-config"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:

View File

@ -0,0 +1,14 @@
/* ================================================================= */
Edit /etc/rc.conf and set
proxsmtpd_enable="YES"
to enable proxsmtpd.
Also, there is a proxsmtpd.conf-sample in %%PREFIX%%/etc/,
rename to proxsmtpd.conf, otherwise specify -f option to your
config file.
To work with postfix, See also
http://memberwebs.com/nielsen/software/proxsmtp/postfix.html
/* ================================================================= */

View File

@ -0,0 +1,30 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: proxsmtpd
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# Add the fellowing line to /etc/rc.conf to enable proxsmtpd:
#
# proxsmtpd_enable="YES"
#
. %%RC_SUBR%%
name=proxsmtpd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
sig_stop=-KILL
load_rc_config ${name}
proxsmtpd_enable=${proxsmtpd_enable-"NO"}
proxsmtpd_conf=${proxsmtpd_conf-"%%PREFIX%%/etc/proxsmtpd.conf"}
proxsmtpd_debug=${proxsmtpd_debug-"0"}
command_args="-f ${proxsmtpd_conf}"
run_rc_command "$1"

8
mail/proxsmtp/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
ProxSMTP is a flexible tool that allows you to reject, change or log
email based on arbitrary critera. It accepts SMTP connections and
forwards the SMTP commands and responses to another SMTP server. You
need to be able to write the filtering scripts that integrate it with
your particular needs.
Author: Nielsen <nielsen at memberwebs.com>
WWW: http://memberwebs.com/nielsen/software/proxsmtp/

4
mail/proxsmtp/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
@comment $FreeBSD$
@unexec [ ! -f /var/run/proxsmtpd.pid ] || %%PREFIX%%/etc/rc.d/proxsmtpd.sh stop || true
etc/proxsmtpd.conf-sample
sbin/proxsmtpd