Hmmm...  Better apply that patch to the imapd-ssl config. build as well.
It has the same problem.  I thought it was a substitution that arose
with the install script that forgot to grab this ${bindir} and replace
it with the configured bindir for the build.

I wonder which is the case?


-Ace

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf 
> Of Brian Candler
> Sent: Monday, October 14, 2002 10:04 AM
> To: Sam Varshavchik
> Cc: [EMAIL PROTECTED]
> Subject: [courier-users] Re: [courier-announce] Courier 20021013.RC1
> 
> 
> On Sun, Oct 13, 2002 at 07:47:05PM -0400, Sam Varshavchik wrote:
> > * POP3 STLS implementation.
> 
> I had some trouble getting this to work. I had
> 
> POP3_STARTTLS=YES
> 
> in my 'pop3d-ssl' file; however, the daemon on port 110 was 
> not accepting
> it:
> 
> --------------------------------------------------------------
> ------------
> capa
> +OK Here's what I can do:
> TOP
> USER
> LOGIN-DELAY 10
> PIPELINING
> UIDL
> IMPLEMENTATION Courier Mail Server
> .
> stls
> -ERR TLS support not available.
> --------------------------------------------------------------
> ------------
> 
> The problem was revealed by some printf's in have_starttls():
> 
> Oct 14 14:39:27 mk-testbox-1 pop3d: POP3_STARTTLS=YES
> Oct 14 14:39:27 mk-testbox-1 pop3d: COURIERTLS=/couriertls
> 
> So, this line in the config file pop3d-ssl isn't working:
> 
> COURIERTLS=${bindir}/couriertls
> 
> Ah... it's because it's run under 'env' which clears out the 
> inherited environment :-( Adding 'bindir=${bindir}' in 
> pop3d.rc fixes it (see below). The same fix is needed for 
> imapd.rc. This didn't affect port 995/port 993, just STLS/STARTTLS.
> 
> There is also a very silly error: CAPA lists "STSL" instead 
> of "STLS" :-)
> 
> Regards,
> 
> Brian.
> 
> --- courier-imap-1.5.3.20021014.RC2/pop3d.rc.in.orig  Wed Aug 
> 28 13:32:19 2002
> +++ courier-imap-1.5.3.20021014.RC2/pop3d.rc.in       Mon Oct 
> 14 14:46:51 2002
> @@ -26,7 +26,7 @@
>               @SETENV@ - ${libexecdir}/authlib/authdaemond start
>       fi
>  
> -     @SETENV@ - @SHELL@ -c " set -a ; . @sysconfdir@/pop3d ; \
> +     @SETENV@ - bindir=${bindir} @SHELL@ -c " set -a ; . 
> @sysconfdir@/pop3d 
> +; \
>                               . @sysconfdir@/pop3d-ssl ; \
>               TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
>               export TLS_PROTOCOL ;
> --- courier-imap-1.5.3.20021014.RC2/imapd.rc.in.orig  Mon Oct 
> 14 14:45:53 2002
> +++ courier-imap-1.5.3.20021014.RC2/imapd.rc.in       Mon Oct 
> 14 14:46:37 2002
> @@ -33,7 +33,7 @@
>       fi
>  
>       ulimit -d $IMAP_ULIMITD
> -     @SETENV@ - @SHELL@ -c " set -a ; . @sysconfdir@/imapd ; \
> +     @SETENV@ - bindir=${bindir} @SHELL@ -c " set -a ; . 
> @sysconfdir@/imapd 
> +; \
>                               . @sysconfdir@/imapd-ssl ; \
>               IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
>               TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
> --- courier-imap-1.5.3.20021014.RC2/imap/pop3dcapa.c.orig     
> Wed Aug 28 13:32:19 2002
> +++ courier-imap-1.5.3.20021014.RC2/imap/pop3dcapa.c  Mon Oct 
> 14 14:52:58 2002
> @@ -57,7 +57,7 @@
>       if (p && *p)
>               printf("SASL %s\r\n", p);
>       if (have_starttls())
> -             printf("STSL\r\n");
> +             printf("STLS\r\n");
>  
>       printf("TOP\r\nUSER\r\nLOGIN-DELAY 
> 10\r\nPIPELINING\r\nUIDL\r\nIMPLEMENTATION Courier Mail 
> Server\r\n.\r\n");
>       fflush(stdout);
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: 
> https://lists.sourceforge.net/lists/listinfo/c> ourier-users
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to