Hi there,
today I started experimenting with Binc IMAP, using version 1.0.23-2
which I rebuilt from the SRPM on a Red Hat Linux 8.0 machine.
Everything works fine if I use this run script under daemontools:
--- begin ---
#!/bin/sh
# $Id: run-ssl.in,v 1.3 2003/02/16 18:55:18 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.
exec 2>&1
exec tcpserver -c 100 -u 0 -g 0 -v \
-l custom.alpha-team.de -HDRP \
213.61.4.12 993 \
/opt/bincimap/bin/bincimapd \
--logtype=multilog \
--conf=/opt/bincimap/etc/bincimap.conf --ssl=true \
/opt/bincimap/bin/bincimap-auth-checkpassword \
/home/vpopmail/bin/vchkpw \
/opt/bincimap/bin/bincimap-uidpwd
--- end ---
As you can see, I just changed the hostname and switched from
checkpassword to vpopmail authentication.
It uses the PEM file defined in bincimap.conf then. That's just fine,
but I have three IP addresses with three different SSL certificates, so
I thought I should be able to use the "--pem-file" option of bincimapd
to give Binc IMAP the path to the PEM file, while being able to keep a
single bincimap.conf for all three instances of Binc IMAP.
This is my new run file:
--- begin ---
#!/bin/sh
# $Id: run-ssl.in,v 1.3 2003/02/16 18:55:18 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.
exec 2>&1
exec tcpserver -c 100 -u 0 -g 0 -v \
-l custom.alpha-team.de -HDRP \
213.61.4.12 993 \
/opt/bincimap/bin/bincimapd \
--logtype=multilog \
--conf=/opt/bincimap/etc/bincimap.conf --ssl=true \
--pem-file=/usr/share/ssl/certs/custom.alpha-team.de.pem \
/opt/bincimap/bin/bincimap-auth-checkpassword \
/home/vpopmail/bin/vchkpw \
/opt/bincimap/bin/bincimap-uidpwd
--- end ---
Amazingly, it doesn't work - the log file says:
"Error reading command line arguments, parse error at char 103"
Now I wonder: Why char 103?
1) My full process line:
# ps axwww | grep custom.alpha-team.de.pem
27033 ? S 0:00 tcpserver -c 100 -u 0 -g 0 -v -l
custom.alpha-team.de -HDRP 213.61.4.12 993 /opt/bincimap/bin/bincimapd
--logtype=multilog --conf=/opt/bincimap/etc/bincimap.conf --ssl=true
--pem-file=/usr/share/ssl/certs/custom.alpha-team.de.pem
/opt/bincimap/bin/bincimap-auth-checkpassword /home/vpopmail/bin/vchkpw
/opt/bincimap/bin/bincimap-uidpwd
2) Paramaters for bincimapd start at char 132:
# ps axwww | grep custom.alpha-team.de.pem | cut -b 132-
--logtype=multilog --conf=/opt/bincimap/etc/bincimap.conf --ssl=true
--pem-file=/usr/share/ssl/certs/custom.alpha-team.de.pem
/opt/bincimap/bin/bincimap-auth-checkpassword /home/vpopmail/bin/vchkpw
/opt/bincimap/bin/bincimap-uidpwd
3) Now adding 103 to find the source of the problem:
# ps axwww | grep custom.alpha-team.de.pem | cut -b 235-
stom.alpha-team.de.pem /opt/bincimap/bin/bincimap-auth-checkpassword
/home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimap-uidpwd
As you can guess, I'm stuck...
Can somebody please shed some light what I'm doing wrong?
Thanks,
Jonas