tisdagen den 26 augusti 2003 12.38 skrev Oden Eriksson:
> måndagen den 25 augusti 2003 12.13 skrev Bård Tommy Nilsen:
> > Hello
> >
> > Trying to use courier-imap with vpopmail, but it fails
> >
> >
> > i use courier-imap-2.0.0
> >
> >
> >
> > $ export CFLAGS="-DHAVE_OPEN_SMTP_RELAY"
> > $ ./configure --without-authdaemon --with-authvchkpw
> > $ make
> >
> > then it fails
> >
> > /usr/bin/ld: cannot find -lvpopmail
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0/authlib.
> > *** Error code 1
> >
> > Stop in /usr/home/bardtomm/courier-imap-2.0.0.
> >
> >
> > What could i be doing wrong ??
> >
> >
> > Bård Tommy
>
> Reading the docs?
>
> Well..., you could do it like I do, check attached files.

You should proably use this patch too (attached):

-- 
Regards // Oden Eriksson, Deserve-IT.com
diff -Naur courier-imap-1.6.2/courier-imap.sysvinit.in courier-imap-1.6.2.oden/courier-imap.sysvinit.in
--- courier-imap-1.6.2/courier-imap.sysvinit.in	2002-11-17 09:54:28.000000000 +0100
+++ courier-imap-1.6.2.oden/courier-imap.sysvinit.in	2002-12-31 14:12:24.000000000 +0100
@@ -1,4 +1,4 @@
-# @SHELL@
+#! @SHELL@
 #
 # This is a sample /etc/init.d file for Courier-IMAP
 #
@@ -47,46 +47,6 @@
 		fi
 		;;
 	esac
-
-	POP3DSTART=""
-	POP3DSSLSTART=""
-
-	if test -f @sysconfdir@/pop3d
-	then
-		. @sysconfdir@/pop3d
-	fi
-
-	case x$POP3DSTART in
-	x[yY]*)
-		# Start daemons.
-		@libexecdir@/pop3d.rc start
-		echo -n " pop3"
-		;;
-	esac
-
-	if test -f @sysconfdir@/pop3d-ssl
-	then
-		. @sysconfdir@/pop3d-ssl
-	fi
-
-	case x$POP3DSSLSTART in
-	x[yY]*)
-		if test -x $COURIERTLS
-		then
-
-		# First time we start this, generate a dummy SSL certificate.
-
-			if test ! -f $TLS_CERTFILE
-			then
-				echo -n " generating-SSL-certificate..."
-				@datadir@/mkpop3dcert >/dev/null 2>&1
-			fi
-			@libexecdir@/pop3d-ssl.rc start
-			echo -n " pop3-ssl"
-		fi
-		;;
-	esac
-
 	echo ""
 	;;
 stop)
@@ -100,19 +60,6 @@
 		@libexecdir@/imapd-ssl.rc stop
 		echo -n " imap-ssl"
 	fi
-
-	if test -f @sysconfdir@/pop3d
-	then
-		@libexecdir@/pop3d.rc stop
-		echo -n " pop3"
-
-		if test -x $COURIERTLS
-		then
-			@libexecdir@/pop3d-ssl.rc stop
-			echo -n " pop3-ssl"
-		fi
-	fi
-
 	echo ""
 	;;
 restart)
diff -Naur courier-imap-1.6.2/imapd.rc.in courier-imap-1.6.2.oden/imapd.rc.in
--- courier-imap-1.6.2/imapd.rc.in	2002-12-24 03:31:40.000000000 +0100
+++ courier-imap-1.6.2.oden/imapd.rc.in	2002-12-31 14:10:31.000000000 +0100
@@ -43,8 +43,7 @@
 		IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
 		TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
 		@libexecdir@/couriertcpd -address=$ADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$PIDFILE $TCPDOPTS \
 			$PORT @sbindir@/imaplogin $LIBAUTHMODULES \
diff -Naur courier-imap-1.6.2/imapd-ssl.rc.in courier-imap-1.6.2.oden/imapd-ssl.rc.in
--- courier-imap-1.6.2/imapd-ssl.rc.in	2002-12-24 03:31:40.000000000 +0100
+++ courier-imap-1.6.2.oden/imapd-ssl.rc.in	2002-12-31 14:10:31.000000000 +0100
@@ -42,8 +42,7 @@
 		. @sysconfdir@/imapd-ssl ; \
 		IMAP_TLS=1; export IMAP_TLS; \
 		@libexecdir@/couriertcpd -address=$SSLADDRESS \
-			[EMAIL PROTECTED]@/courierlogger \
-			-stderrloggername=imapd-ssl \
+			-user=vpopmail -group=vchkpw \
 			-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 			-pid=$SSLPIDFILE $TCPDOPTS \
 			$SSLPORT $COURIERTLS -server -tcpd \

Reply via email to