NetBSD Problem Report #34765

From www@NetBSD.org  Mon Oct  9 08:20:45 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 2D26363BC60; Mon,  9 Oct 2006 08:20:45 +0000 (UTC)
Message-Id: <20061009082045.2D26363BC60@narn.NetBSD.org>
Date: Mon,  9 Oct 2006 08:20:45 +0000 (UTC)
From: isihara@leaf.sf21npo.gr.jp
Reply-To: isihara@leaf.sf21npo.gr.jp
To: gnats-bugs@NetBSD.org
Subject: Update mail/mailfront-1.01
X-Send-Pr-Version: www-1.0

>Number:         34765
>Category:       pkg
>Synopsis:       Update mail/mailfront-1.01
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    schmonz
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 09 08:25:00 +0000 2006
>Closed-Date:    Wed Apr 08 01:47:22 +0000 2009
>Last-Modified:  Wed Apr 08 01:47:22 +0000 2009
>Originator:     ISIHARA Takanori
>Release:        NetBSD/i386 2.0.2
>Organization:
>Environment:
NetBSD leaf.sf21npo.gr.jp 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
* Update mailfront-1.01

NEWS file:
Changes in version 1.01

- Fixed a bug in the counters plugin that triggered a problem in the
  SMTP protocol when handling the SIZE=# parameter.

- Reversed the order of cvm-validate and qmail-validate in the wrapper
  scripts (and documentation) due to the semantics of the two plugins.

- Added a list of built-in plugins.  The list currently contains the
  three accept* plugins, which are extremely trivial.

Changes in version 1.0

Mailfront has been rewritten to be totally modular.  The core mailfront
program loads the protocol, backend, and all plugin behaviors at run
time from shared objects.

The previous commands, such as smtpfront-qmail, are now shell script
wrappers for the main "mailfront" command, and as such are depricated in
favor of using "mailfront" directly.  The *front-qmail wrappers preload
all the plugins that were previously compiled into the corresponding
programs:

check-fqdn counters mailrules relayclient cvm-validate
qmail-validate add-received patterns accept-sender

NOTE: The *front-reject backends have been dropped in favor of a plugin.
In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
If you used this backend or feature you will need to adjust your
configuration accordingly.

>How-To-Repeat:

>Fix:
diff -uNr mailfront/Makefile mailfront.new/Makefile
--- mailfront/Makefile	2006-08-03 00:12:18.000000000 +0900
+++ mailfront.new/Makefile	2006-10-09 05:36:17.000000000 +0900
@@ -1,8 +1,7 @@
 # $NetBSD: Makefile,v 1.8 2006/08/02 02:42:22 schmonz Exp $
 #

-DISTNAME=		mailfront-0.98.1
-PKGREVISION=		1
+DISTNAME=		mailfront-1.01
 CATEGORIES=		mail
 MASTER_SITES=		${HOMEPAGE}

@@ -10,7 +9,7 @@
 HOMEPAGE=		http://untroubled.org/mailfront/
 COMMENT=		Mail server network protocol front-ends

-DEPENDS+=		cvm-[0-9]*:../../security/cvm
+DEPENDS+=		cvm>=0.81:../../security/cvm
 DEPENDS+=		daemontools-[0-9]*:../../sysutils/daemontools
 DEPENDS_QMAIL=		qmail>=1.03nb8:../../mail/qmail
 DEPENDS+=		${DEPENDS_QMAIL}
diff -uNr mailfront/PLIST mailfront.new/PLIST
--- mailfront/PLIST	2005-07-20 12:30:19.000000000 +0900
+++ mailfront.new/PLIST	2006-10-09 05:55:40.000000000 +0900
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/20 03:30:19 schmonz Exp $
+@comment $NetBSD$
 bin/imapfront-auth
+bin/mailfront
 bin/pop3front-auth
 bin/pop3front-maildir
 bin/qmqpfront-echo
@@ -8,5 +9,4 @@
 bin/qmtpfront-qmail
 bin/smtpfront-echo
 bin/smtpfront-qmail
-bin/smtpfront-reject
 share/examples/rc.d/smtpfront
diff -uNr mailfront/distinfo mailfront.new/distinfo
--- mailfront/distinfo	2006-08-03 00:12:18.000000000 +0900
+++ mailfront.new/distinfo	2006-10-09 05:43:42.000000000 +0900
@@ -1,6 +1,5 @@
 $NetBSD: distinfo,v 1.5 2006/08/02 02:42:22 schmonz Exp $

-SHA1 (mailfront-0.98.1.tar.gz) = 1d3e0e7ca4091226c9d154bfe4a08e879debae29
-RMD160 (mailfront-0.98.1.tar.gz) = 2cad77abb898c29db0768cbb2514d2a0e4905f68
-Size (mailfront-0.98.1.tar.gz) = 77812 bytes
-SHA1 (patch-aa) = 6b9b6c7d546cbadffc8dfee557ff2384ba8b1a45
+SHA1 (mailfront-1.01.tar.gz) = a5cc07a9b3ec634fe23578f71974e4f32f782003
+RMD160 (mailfront-1.01.tar.gz) = bb1e5544b9d733214e33f04cb3a8130c85ed08d0
+Size (mailfront-1.01.tar.gz) = 90699 bytes
diff -uNr mailfront/patches/patch-aa mailfront.new/patches/patch-aa
--- mailfront/patches/patch-aa	2006-08-02 11:42:22.000000000 +0900
+++ mailfront.new/patches/patch-aa	1970-01-01 09:00:00.000000000 +0900
@@ -1,13 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2006/08/02 02:42:22 schmonz Exp $
-
---- Makefile.orig	2006-07-18 17:52:22.000000000 -0400
-+++ Makefile
-@@ -59,7 +59,7 @@ load: conf-ld conf-bglibs
- 	( bglibs=`head -n 1 conf-bglibs`; \
- 	  echo '#!/bin/sh';\
- 	  echo 'main="$$1"; shift';\
--	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
-+	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
- 	) >load
- 	chmod 755 load
- 

>Release-Note:

>Audit-Trail:
From: isihara@leaf.sf21npo.gr.jp
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34765: Update mail/mailfront-1.01
Date: 10 Oct 2006 00:36:15 +0900

 I mistake send-pr halfway new mailfront package.
 I am sorry.


 diff -uNr mailfront/Makefile mailfront.new/Makefile
 --- mailfront/Makefile	2006-08-03 00:12:18.000000000 +0900
 +++ mailfront.new/Makefile	2006-10-09 19:05:39.000000000 +0900
 @@ -1,8 +1,7 @@
  # $NetBSD: Makefile,v 1.8 2006/08/02 02:42:22 schmonz Exp $
  #

 -DISTNAME=		mailfront-0.98.1
 -PKGREVISION=		1
 +DISTNAME=		mailfront-1.01
  CATEGORIES=		mail
  MASTER_SITES=		${HOMEPAGE}

 @@ -10,7 +9,7 @@
  HOMEPAGE=		http://untroubled.org/mailfront/
  COMMENT=		Mail server network protocol front-ends

 -DEPENDS+=		cvm-[0-9]*:../../security/cvm
 +DEPENDS+=		cvm>=0.81:../../security/cvm
  DEPENDS+=		daemontools-[0-9]*:../../sysutils/daemontools
  DEPENDS_QMAIL=		qmail>=1.03nb8:../../mail/qmail
  DEPENDS+=		${DEPENDS_QMAIL}
 @@ -35,6 +34,19 @@
  .  endif
  .endif

 +post-configure:
 +	${ECHO} ${LOCALBASE}/lib/mailfront > ${WRKSRC}/conf-modules
 +
 +post-install:
 +	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailfront
 +	${FIND} ${WRKSRC} -name '*.html' -print |	\
 +	while read f; do				\
 +		${INSTALL_DATA} $$f ${PREFIX}/share/doc/mailfront;	\
 +	done
 +	for f in ANNOUNCEMENT NEWS README; do		\
 +		${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/mailfront;	\
 +	done
 +
  .include "../../devel/bglibs/buildlink3.mk"
  .include "../../security/cvm/buildlink3.mk"
  .include "../../mk/djbware.mk"
 diff -uNr mailfront/PLIST mailfront.new/PLIST
 --- mailfront/PLIST	2005-07-20 12:30:19.000000000 +0900
 +++ mailfront.new/PLIST	2006-10-09 19:09:35.000000000 +0900
 @@ -1,5 +1,6 @@
 -@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/20 03:30:19 schmonz Exp $
 +@comment $NetBSD$
  bin/imapfront-auth
 +bin/mailfront
  bin/pop3front-auth
  bin/pop3front-maildir
  bin/qmqpfront-echo
 @@ -8,5 +9,50 @@
  bin/qmtpfront-qmail
  bin/smtpfront-echo
  bin/smtpfront-qmail
 -bin/smtpfront-reject
 +lib/mailfront/backend-echo.so
 +lib/mailfront/backend-qmail.so
 +lib/mailfront/plugin-add-received.so
 +lib/mailfront/plugin-check-fqdn.so
 +lib/mailfront/plugin-counters.so
 +lib/mailfront/plugin-cvm-validate.so
 +lib/mailfront/plugin-mailrules.so
 +lib/mailfront/plugin-patterns.so
 +lib/mailfront/plugin-qmail-validate.so
 +lib/mailfront/plugin-reject.so
 +lib/mailfront/plugin-relayclient.so
 +lib/mailfront/plugin-require-auth.so
 +lib/mailfront/protocol-qmqp.so
 +lib/mailfront/protocol-qmtp.so
 +lib/mailfront/protocol-smtp.so
 +share/doc/mailfront/ANNOUNCEMENT
 +share/doc/mailfront/NEWS
 +share/doc/mailfront/README
 +share/doc/mailfront/backend-echo.html
 +share/doc/mailfront/backend-qmail.html
 +share/doc/mailfront/imapfront.html
 +share/doc/mailfront/mailfront.html
 +share/doc/mailfront/mailrules.html
 +share/doc/mailfront/mailrulesx.html
 +share/doc/mailfront/msa.html
 +share/doc/mailfront/plugin-accept-recipient.html
 +share/doc/mailfront/plugin-accept-sender.html
 +share/doc/mailfront/plugin-accept.html
 +share/doc/mailfront/plugin-add-received.html
 +share/doc/mailfront/plugin-check-fqdn.html
 +share/doc/mailfront/plugin-counters.html
 +share/doc/mailfront/plugin-cvm-validate.html
 +share/doc/mailfront/plugin-mailrules.html
 +share/doc/mailfront/plugin-patterns.html
 +share/doc/mailfront/plugin-qmail-validate.html
 +share/doc/mailfront/plugin-reject.html
 +share/doc/mailfront/plugin-relayclient.html
 +share/doc/mailfront/plugin-require-auth.html
 +share/doc/mailfront/plugin.html
 +share/doc/mailfront/pop3front.html
 +share/doc/mailfront/protocol-qmqp.html
 +share/doc/mailfront/protocol-qmtp.html
 +share/doc/mailfront/protocol-smtp.html
 +share/doc/mailfront/std-handle.html
  share/examples/rc.d/smtpfront
 +@dirrm share/doc/mailfront
 +@dirrm lib/mailfront
 diff -uNr mailfront/distinfo mailfront.new/distinfo
 --- mailfront/distinfo	2006-08-03 00:12:18.000000000 +0900
 +++ mailfront.new/distinfo	2006-10-09 05:43:42.000000000 +0900
 @@ -1,6 +1,5 @@
  $NetBSD: distinfo,v 1.5 2006/08/02 02:42:22 schmonz Exp $

 -SHA1 (mailfront-0.98.1.tar.gz) = 1d3e0e7ca4091226c9d154bfe4a08e879debae29
 -RMD160 (mailfront-0.98.1.tar.gz) = 2cad77abb898c29db0768cbb2514d2a0e4905f68
 -Size (mailfront-0.98.1.tar.gz) = 77812 bytes
 -SHA1 (patch-aa) = 6b9b6c7d546cbadffc8dfee557ff2384ba8b1a45
 +SHA1 (mailfront-1.01.tar.gz) = a5cc07a9b3ec634fe23578f71974e4f32f782003
 +RMD160 (mailfront-1.01.tar.gz) = bb1e5544b9d733214e33f04cb3a8130c85ed08d0
 +Size (mailfront-1.01.tar.gz) = 90699 bytes
 diff -uNr mailfront/patches/patch-aa mailfront.new/patches/patch-aa
 --- mailfront/patches/patch-aa	2006-08-02 11:42:22.000000000 +0900
 +++ mailfront.new/patches/patch-aa	1970-01-01 09:00:00.000000000 +0900
 @@ -1,13 +0,0 @@
 -$NetBSD: patch-aa,v 1.1 2006/08/02 02:42:22 schmonz Exp $
 -
 ---- Makefile.orig	2006-07-18 17:52:22.000000000 -0400
 -+++ Makefile
 -@@ -59,7 +59,7 @@ load: conf-ld conf-bglibs
 - 	( bglibs=`head -n 1 conf-bglibs`; \
 - 	  echo '#!/bin/sh';\
 - 	  echo 'main="$$1"; shift';\
 --	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
 -+	  echo exec `head -n 1 conf-ld` -L. "-L'$${bglibs}'" "-Wl,-R'$${bglibs}'" '-o "$$main" "$$main.o" $${1+"$$@"}' -lbg-sysdeps; \
 - 	) >load
 - 	chmod 755 load
 - 

Responsible-Changed-From-To: pkg-manager->schmonz
Responsible-Changed-By: obache@netbsd.org
Responsible-Changed-When: Mon, 16 Oct 2006 11:53:47 +0000
Responsible-Changed-Why:
Over to maintainer.


From: Amitai Schlair <schmonz@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: ISIHARA Takanori <isihara@leaf.sf21npo.gr.jp>
Subject: Re: pkg/34765
Date: Thu, 28 Dec 2006 00:37:00 -0500

 Sorry it took me so long to get to this. With your diff applied I get  
 the following at runtime:

 $ mailfront smtp qmail
 mailfront[29875]: Fatal: 4.3.0 Error loading protocol smtp: Shared  
 object "libcvm-sasl.so.1" not found

 It happens in 1.10 also. This is being discussed on the bgware list.

From: isihara@leaf.sf21npo.gr.jp
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34765: Update mail/mailfront-1.01
Date: Thu, 28 Dec 2006 16:27:40 +0900

   My qmail/NetBSD server crash at 2006/11/15.
   I can not boot it server.
   If someone ask you this PR, I can't test qmail and this PR.
   I am Sorry.

   I want you to close PR if there is a problem. 

State-Changed-From-To: open->analyzed
State-Changed-By: schmonz@netbsd.org
State-Changed-When: Fri, 29 Dec 2006 05:52:39 +0000
State-Changed-Why:
The update is blocked because the new version relies on ld.so.conf 
to find shared libraries at runtime. The author has fixed a similar
problem in the past and has been alerted to this one. When a fix
is issued, I'll test and update the package.


From: Amitai Schlair <schmonz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/34765 CVS commit: pkgsrc/mail/mailfront
Date: Wed, 8 Apr 2009 01:44:04 +0000

 Module Name:	pkgsrc
 Committed By:	schmonz
 Date:		Wed Apr  8 01:44:04 UTC 2009

 Modified Files:
 	pkgsrc/mail/mailfront: Makefile PLIST distinfo
 	pkgsrc/mail/mailfront/patches: patch-aa

 Log Message:
 Update to 1.12, addressing PR pkg/34765. From the changelog:

 1.12:
 - Fixed problem with overwriting existing session data items.
 - Fixed several problems with handling of databytes in rules.
 - Fixed crash in plugin cvm-validate when the lookup secret was unset.
 - pop3front-auth now supports a no-argument variant on the AUTH command,
     used by KMail to test for authentication modes, and documented
     in http://www.tools.ietf.org/html/draft-myers-sasl-pop3-05
     Thanks Bernhard Graf for the initial patch
 - pop3front-auth and -maildir now support the CAPA command.
     Thanks Bernhard Graf for the initial patch
 - Made imapfront-auth more compatible with Courier IMAP by adding extra
     bits to the CAPABILITY command.  Thanks Bernhard Graf.
 - plugin-cvm-validate handles modules that provide an "out of scope"
     fact by passing to the next plugin.
 - Fixed handling of addresses without a domain in @file rules.
     Thanks Jorge Valdes

 1.11:
 - Fixed the main mailfront program to clean up temporary files properly.
 - Modified the SMTP protocol module to export the SASL authentication
     information internally.
 - Modified the check-fqdn plugin to append $DEFAULTHOST and
     $DEFAULTDOMAIN to addresses if necessary.
 - Added separate connect and send timeouts and a maximum message size to
     the ClamAV plugin, and fixed a bug with handling port numbers
     when using multiple IPs.
 - Modified the ClamAV plugin to prefer $CLAMAV_* settings over $CLAMD_*
 - Added plugin API documentation.

 1.10:
 - Added a ClamAV virus scanner plugin.  Note: Using this plugin will
     cause mailfront to save messages to temporary files.  See
     mailfront.html for details.
 - Modified the plugin API to add a version code, a flags word, and to
     (optionally) save messages to a temporary file.
 - Fixed a few cases where the UCSPI-TCP protocol was assumed.
 - Fixed pop3front-maildir breakage on dietlibc/uClibc and empty
     maildirs.  Thanks Wayne Marshall.

 1.01:
 - Fixed a bug in the counters plugin that triggered a problem in the
     SMTP protocol when handling the SIZE=# parameter.
 - Reversed the order of cvm-validate and qmail-validate in the wrapper
     scripts (and documentation) due to the semantics of the two plugins.
 - Added a list of built-in plugins.  The list currently contains the
     three accept* plugins, which are extremely trivial.

 1.0:

 Mailfront has been rewritten to be totally modular.  The core mailfront
 program loads the protocol, backend, and all plugin behaviors at run
 time from shared objects.

 The previous commands, such as smtpfront-qmail, are now shell script
 wrappers for the main "mailfront" command, and as such are depricated in
 favor of using "mailfront" directly.  The *front-qmail wrappers preload
 all the plugins that were previously compiled into the corresponding
 programs:

 	check-fqdn counters mailrules relayclient cvm-validate
 	qmail-validate add-received patterns accept-sender

 NOTE: The *front-reject backends have been dropped in favor of a plugin.
 In addition, the $REQUIRE_AUTH feature has been moved to another plugin.
 If you used this backend or feature you will need to adjust your
 configuration accordingly.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/mail/mailfront/Makefile
 cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/mail/mailfront/PLIST
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/mail/mailfront/distinfo
 cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/mailfront/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: analyzed->closed
State-Changed-By: schmonz@NetBSD.org
State-Changed-When: Wed, 08 Apr 2009 01:47:22 +0000
State-Changed-Why:
Updated, with a pkgsrc fix for runtime linking. Thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.