7 messages in net.sourceforge.lists.courier-users[courier-users] Re: [courier-announce...
FromSent OnAttachments
Sam VarshavchikOct 13, 2002 4:47 pm 
Brian CandlerOct 14, 2002 3:56 am 
Brian CandlerOct 14, 2002 7:03 am 
David HumphreyOct 14, 2002 7:41 am 
Brian CandlerOct 14, 2002 8:00 am 
Brian CandlerOct 15, 2002 1:19 am 
David HumphreyOct 15, 2002 6:06 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Re: [courier-announce] Courier 20021013.RC1Actions...
From:Brian Candler (B.Ca@pobox.com)
Date:Oct 14, 2002 7:03:42 am
List:net.sourceforge.lists.courier-users

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);