Subject: Re: POSTFIX_USE_* options deprecated
To: Juan RP <xtraeme@netbsd.org>
From: Eric Haszlakiewicz <erh@nimenees.com>
List: current-users
Date: 07/27/2004 00:13:05
On Tue, Jul 27, 2004 at 05:44:57AM +0200, Juan RP wrote:
> On Mon, 26 Jul 2004 20:42:43 -0700
> john heasley <heas@shrubbery.net> wrote:
> > Mon, Jul 26, 2004 at 12:11:16PM -0700, Aaron J. Grier:
> > > 
> > > what's the "blessed method" for controlling configuration for the system
> > > postfix?
> > 
> > There are none to speak of ATM.  The base install is plain-jane.  Many (all?
> > I didnt look too closely) of the options require 3rd-party libraries that
> > are not included with the base system.
> 
> What about adding SSL support? it will be useful for some people IMO.
	That needs the sasl2 libraries from pkgsrc.  Assuming you have those
installed, apply this patch, set POSTFIX_SASL (e.g. in mk.conf) and rebuild
postfix.
	I thought about comitting this, but couldn't figure out whether it
was a good idea or if custom installations like this should be handled
by a package.  Anyone else have an opinion?

Index: Makefile.inc
===================================================================
RCS file: /cvsroot/src/gnu/usr.sbin/postfix/Makefile.inc,v
retrieving revision 1.11
diff -u -r1.11 Makefile.inc
--- Makefile.inc	7 Feb 2004 05:10:44 -0000	1.11
+++ Makefile.inc	27 Jul 2004 05:08:17 -0000
@@ -11,6 +11,10 @@
	-I${PFIX_DISTDIR}/src/master -I${PFIX_DISTDIR}/src/util
 # IPv6
 #CPPFLAGS+= -DINET6
+.if defined(POSTFIX_SASL)
+CPPFLAGS+= -DUSE_SASL_AUTH -I/usr/pkg/include/sasl -DHAS_SSL -I/usr/pkg/include
/openssl
+LDADD+= -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lsasl2 -lssl -lcrypto
+.endif

 PFIX_SRCDIR=	${NETBSDSRCDIR}/gnu/usr.sbin/postfix