ports/108942: [NEW PORT] mail/qmail-auditor: Selective e-mail auditing for qmail by means of qmail-queue wrapping

Patrick Tracanelli eksffa at freebsdbrasil.com.br
Thu Feb 8 19:40:15 UTC 2007


>Number:         108942
>Category:       ports
>Synopsis:       [NEW PORT] mail/qmail-auditor: Selective e-mail auditing for qmail by means of qmail-queue wrapping
>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:   Thu Feb 08 19:40:14 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Tracanelli
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
FreeBSD Brasil LTDA
>Environment:
System: FreeBSD main.bh.freebsdbrasil.com.br 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #9: Tue Nov 28 17:56:32 BRST 2006
>Description:
This software provides an easy and functional way to audit incoming and
outgoing e-mails from a qmail server. It works by means of qmail-queue
wrapping. It has a control file which allows selective auditing of sender or
recipient, as well as whom the messages should be forwarded to. This control
file allows regular expressions, what increases its flexibility of use.

WWW:	http://qmail-auditor.sourceforge.net/

Generated with FreeBSD Port Tools 0.77

Thanks garga@ and jmelo@ for valueble hints.

>How-To-Repeat:
>Fix:

--- qmail-auditor-0.47.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:
#
#	qmail-auditor
#	qmail-auditor/pkg-descr
#	qmail-auditor/Makefile
#	qmail-auditor/distinfo
#	qmail-auditor/files
#	qmail-auditor/files/pkg-message.in
#
echo c - qmail-auditor
mkdir -p qmail-auditor > /dev/null 2>&1
echo x - qmail-auditor/pkg-descr
sed 's/^X//' >qmail-auditor/pkg-descr << 'END-of-qmail-auditor/pkg-descr'
XThis software provides an easy and functional way to audit incoming and
Xoutgoing e-mails from a qmail server. It works by means of qmail-queue
Xwrapping. It has a control file which allows selective auditing of sender or
Xrecipient, as well as whom the messages should be forwarded to. This control
Xfile allows regular expressions, what increases its flexibility of use.
X
XWWW:	http://qmail-auditor.sourceforge.net/
END-of-qmail-auditor/pkg-descr
echo x - qmail-auditor/Makefile
sed 's/^X//' >qmail-auditor/Makefile << 'END-of-qmail-auditor/Makefile'
X# New ports collection makefile for:	qmail-auditor
X# Date created:		2007-02-08
X# Whom:			Patrick Tracanelli <eksffa at freebsdbrasil.com.br>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	qmail-auditor
XPORTVERSION=	0.47
XCATEGORIES=	mail
XMASTER_SITES=	SF http://www6.freebsdbrasil.com.br/~eksffa/l/qmail-auditor/
X
XMAINTAINER=	eksffa at freebsdbrasil.com.br
XCOMMENT=	Selective e-mail auditing for qmail by means of qmail-queue wrapping
X
XWRKSRC=		${WRKDIR}/${PORTNAME:R}
X
XUSE_QMAIL_RUN=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XSUB_FILES=	pkg-message
XSUB_LIST=	QMAIL_PREFIX=${QMAIL_PREFIX}
X
XPLIST_FILES=	bin/qmail-auditor
X
XPORTDOCS=	README
X
XINSTALL_TARGET=	perm
X
X.include <bsd.port.pre.mk>
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/local|@prefix@|g' \
X	${WRKSRC}/src/Makefile.in
X
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-qmail-auditor/Makefile
echo x - qmail-auditor/distinfo
sed 's/^X//' >qmail-auditor/distinfo << 'END-of-qmail-auditor/distinfo'
XMD5 (qmail-auditor-0.47.tar.gz) = 8da4a8408bb26c6d77f58ee5230f8b06
XSHA256 (qmail-auditor-0.47.tar.gz) = 8736c388bfc33277808aeddd6f37e173e9002ac65b314e4490fe99b28b2a9c46
XSIZE (qmail-auditor-0.47.tar.gz) = 220609
END-of-qmail-auditor/distinfo
echo c - qmail-auditor/files
mkdir -p qmail-auditor/files > /dev/null 2>&1
echo x - qmail-auditor/files/pkg-message.in
sed 's/^X//' >qmail-auditor/files/pkg-message.in << 'END-of-qmail-auditor/files/pkg-message.in'
XYou have just installed %%PREFIX%%/bin/qmail-auditor
Xwhich can be enabled by wrapping qmail-queue and naming the original qmail-queue
Xas qmail-queue-real, for example:
X
X mv %%QMAIL_PREFIX%%/bin/qmail-queue %%QMAIL_PREFIX%%/bin/qmail-queue-real-auditor
X ln -s %%PREFIX%%/bin/qmail-auditor %%QMAIL_PREFIX%%/bin/qmail-queue
X
XNow you can configure qmail-auditor, its control file is
X
X	%%QMAIL_PREFIX%%/control/auditor
X
XThis file's format must be in the form:
X
X  <field header>  <regular expression>            <e-mail to forward>
X
XWhere
X  <field header>	= from|to|all
X  <regular expression>	= sender or recipient e-mail address (according
X			  to <field header>), re_format(7) compatible
X  <e-mail to forward>	= whom qmail-auditor will copy audited messages to
X
XYou can have multiple rules (one per line). Working example of control file:
X
Xfrom	*@some.domain.br	auditing at mycompany.com
Xto	user at some.domain.br	auditing at mycompany.com
Xall	sales at domain.br		salesauditing at mycompany.com
X
XThe README file was installed on %%DOCSDIR%%
END-of-qmail-auditor/files/pkg-message.in
exit
--- qmail-auditor-0.47.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list