On Tue, 08 Jun 2004 19:09:16 -0600, RYAN vAN GINNEKEN <[EMAIL PROTECTED]> wrote:

#!/bin/sh
# $Id: run.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.

exec 2>&1

exec    tcpserver -c 100 -u 0 -g 0              \
    -l $(hostname) -HDRP                        \
    0 143                                       \
    /usr/local/bin/bincimap-up          \
    --logtype=multilog                          \
    --conf=/usr/local/etc/bincimap/bincimap.conf \
    -- /usr/local/bin/checkpassword             \
    /usr/local/bin/recordio                     \
    /usr/local/bin/bincimapd

Is this correct or do i need the dashes after  like this
--conf=/usr/local/etc/bincimap/bincimap.conf --

Anyways i used the file above and still get an error in my browser like this
*ERROR:*
*ERROR : Connection dropped by imap-server.*



This in my binc logs

@4000000040c61f1320fd3a84 20365 2 [EMAIL PROTECTED]:] shutting down -
read:31 bytes, wrote:255 bytes.
@4000000040c65e592628af34 361 0 [EMAIL PROTECTED]:] connection from
127.0.0.1
@4000000040c65e5928a5e434 361 1 [EMAIL PROTECTED]:] <rmvg>
authentication failed: server  returned 111 (internal error)
@4000000040c65e5928c2806c 361 2 [EMAIL PROTECTED]:] shutting down -
read:31 bytes, wrote:251 bytes.

Looks like a problem with checkpassword.

What does the following produce:
echo "<user>\0<pass>\0" | /usr/local/bin/checkpassword 3<&0 echo; echo $?


Henry :-)

Authentication {
    allow plain auth in non ssl = "yes",            /* allow login or
                                                      authenticate
                                                      when not in
                                                      SSL/TLS mode */


Andreas Aardal Hanssen wrote:

On Tue, 8 Jun 2004, RYAN vAN GINNEKEN wrote:

exec 2>&1
exec tcpserver -c 100 -u 0 -g 0 \
-l $(hostname) -HDRP \
127.0.0.1 143 \
/usr/local/bin/bincimap-up \
--logtype=multilog \
--conf=/usr/local/etc/bincimap/bincimap.conf --allow-plain \
--/usr/local/bin/checkpassword \

 ^
  this is mistake #1, as you also noticed. There should be a space
  after the -- argument, or else bincimap-up with interpret the
  checkpassword path as an actual command line option just like
  --help.


/usr/local/bin/recordio

                        ^
                         this is mistake #2, there should be a trailing
                         backslash to denote a line continuation, just
                         like the preceding lines.


/usr/local/bin/bincimapd



*****You know what is funny on my other server across town everything
works fine this is the run file from that server and I get this in the logs
#!/bin/sh
# $Id: run.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.
exec 2>&1
exec tcpserver -c 100 -u 0 -g 0 \
-l $(hostname) -HDRP \
0 143 \
/usr/local/bin/bincimap-up \
--logtype=multilog \
--conf=/usr/local/etc/bincimap/bincimap.conf -- \
/usr/local/bin/checkpassword \



Yes, because here you will notice that you both have the -- argument right, and the trailing backslash.


***** Grasping at straws here
(...)
--/usr/local/bin/checkpassword \

  ^
   again, after -- there must be at least one space. The -- argument
   is similar to that of 'rm', it marks the end of the command line
   arguments and the start of the "unqualified arguments".


@4000000040c61f131f3697cc 20365 0 [EMAIL PROTECTED]:] connection from
127.0.0.1
@4000000040c61f1320e0bd8c 20365 1 [EMAIL PROTECTED]:] <rmvg>
authentication failed: server returned 111 (internal error)


This last time, you seem to have got it right. But could you please try to
do the test with a correct run file (with the -- and backslashes at the
right place).



I am lost please help


It'll work. :-) I know it does.

Andy

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."







-- Henry Baragar Instantiated Software Inc. http://www.instantiated.ca

Reply via email to