On Thu, Oct 24, 2002 at 05:58:08PM -0400, Sam Varshavchik wrote:
> Alexander Gretha writes:
> 
> > i noticed the following on a new install of courier
> > (courier-0.39.3.20021023.RC4). when you install normally, the files
> > etc/pop3d-ssl and etc/imapd-ssl contain
> > 
> > COURIERTLS=${bindir}/couriertls
> > instead of
> > COURIERTLS=/usr/lib/courier/bin/couriertls
> > 
> > (the right version is only in etc/esmtpd-ssl) and the daemons are not
> > started from the sample courier.sysvinit. seems to happen on both suse linux
> > 7.2 and 8.1. is it a bug or a feature ?
> 
> Half-and-half.  bindir is set in pop3d-ssl, but not in imapd-ssl, needs to 
> be fixed.

I don't understand that last statement. I've just done a fresh install of
courier-imap-1.6.0, and both pop3d-ssl and imapd-ssl contain

COURIERTLS=${bindir}/couriertls

but neither sets 'bindir'. The assignment to bindir exists in all of
pop3d.rc, pop3d-ssl.rc, imapd.rc, imapd-ssl.rc:

bindir=${exec_prefix}/bin

This is fine except it breaks POP3 STLS / IMAP STARTTLS, because pop3d.rc /
imapd.rc clears the environment before starting the daemon, which in turn
looks for the COURIERTLS environment variable.

I only use the imap/sqwebmail parts of Courier, so I can't speak for
esmtpd-ssl.

Unless couriertls is considered a more "experimental" part of Courier than
the rest of it, I am not sure why the path to it is put a configuration
variable in the first place.

Why not just put

COURIERTLS=@bindir@/couriertls

at the top of the .rc scripts? Or you could even change

   $SSLPORT $COURIERTLS -server -tcpd \

to

   $SSLPORT @bindir@/couriertls -server -tcpd \

(but that would involve changing the pop3/imap daemons to have a hard-coded
path to couriertls instead of picking it up from the environment)

Regards,

Brian.


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to