You understand and described my setup perfectly and I did try the separate conf file approach too. It does not seem to work either. There is one thing you missed in your description of my setup below. I am using an https connection to connect with squirrel mail but that should not make any difference though right??

I have added recordio to the /usr/local/etc/bincimap/imap/run file


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

added the dashes like this to my run file but still get the same error



--/usr/local/bin/checkpassword



/usr/local/bin/recordio



/usr/local/bin/bincimapd





Okay.





Ok here i go will document everything as i go through the troubleshooting steps this 
is all before breakfast, shower, teeth brushing, ect because i need to solve this 
problem and will not give up.

*****/usr/local/etc/bincimap/imap/run

#!/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 \

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 \

/usr/local/bin/recordio

/usr/local/bin/bincimapd

***** a symlink check looks cool

v22.computerking.ca > /var/service #l

total 0

lrwxr-xr-x 1 root wheel 28 Mar 31 04:15 imap -> /usr/local/etc/bincimap/imap

lrwxr-xr-x 1 root wheel 29 Mar 4 23:48 imaps -> /usr/local/etc/bincimap/imaps

***** Two attempts to login and two failures in /var/log/bincimap/current However recordio does not seem to be doing it recordio stuff.

@4000000040c606d40d8f6d8c 20147 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c606d410e5f35c 20147 1 [EMAIL PROTECTED]:] shutting down (client disconnected) - read:31 bytes, wrote:282 bytes.

@4000000040c606e02725b4a4 20151 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c606e02a77e8fc 20151 1 [EMAIL PROTECTED]:] shutting down (client disconnected) - read:31 bytes, wrote:282 bytes.

*****So change the line in my conf file and restart both services imap and imaps and I still get the same error

allow plain auth in non ssl = "yes",

***** /var/log/bincimap/current

@4000000040c609b023c84934 20178 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c609b0272537a4 20178 1 [EMAIL PROTECTED]:] shutting down (client disconnected) - read:31 bytes, wrote:282 bytes.

@4000000040c609bb0c5c0254 20179 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c609bb0faf099c 20179 1 [EMAIL PROTECTED]:] shutting down (client disconnected) - read:31 bytes, wrote:282 bytes.

***** Changed the 127.0.0.1 back to 0 in my imap run file and still the same error

exec tcpserver -c 100 -u 0 -g 0 \

-l $(hostname) -HDRP \

0 143 \

/usr/local/bin/bincimap-up \

***** Removed the – allow-plain from the imap run file so it looks like below and get the stuff below in my log

#!/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

***** /var/log/bincimap/current

@4000000040c60d36221fe894 error initializing Binc IMAP: Command line "/usr/local/bin/checkpassword": No such argument

*****Take out the dashes before --/usr/local/bin/checkpassword and now I get this in my logs whoa that never happened before must be something in the new version. Ok so now I can’t get squirrel mail to work even insecurely I think this is some sort of weird progress though since I have never seen this error before. Nice error coding guess I will put the dashes back in the run file I am at a loss please help

@4000000040c60e0c346287b4 20240 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c60e0c35279cd4 20240 1 [EMAIL PROTECTED]:] [auth module] Missing mandatory -- in arg list, after bincimap-up + arguments, before authenticator. Please check your run scripts and the man pages for more on how to invoke Binc IMAP.

@4000000040c60e0c356a202c 20240 1 [EMAIL PROTECTED]:] <rmvg> authentication failed: server returned 111 (internal error)

@4000000040c60e0c35801d14 20240 2 [EMAIL PROTECTED]:] shutting down - read:31 bytes, wrote:255 bytes.

@4000000040c60e173b12006c 20242 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c60e18002d8264 20242 1 [EMAIL PROTECTED]:] [auth module] Missing mandatory -- in arg list, after bincimap-up + arguments, before authenticator. Please check your run scripts and the man pages for more on how to invoke Binc IMAP.

@4000000040c60e180070ccf4 20242 1 [EMAIL PROTECTED]:] <rmvg> authentication failed: server returned 111 (internal error)

@4000000040c60e180086b654 20242 2 [EMAIL PROTECTED]:] shutting down - read:31 bytes, wrote:255 bytes.

*****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 \

/usr/local/bin/bincimapd

@4000000040c60fe80c389bd4 8564 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c60fe80d10892c 8565 0 [EMAIL PROTECTED]:] <rmvg> authenticated

@4000000040c60fe80d2fd4e4 8565 1 [EMAIL PROTECTED]:] <rmvg> logged off - bodies:0 statements:3

@4000000040c60fe80d56063c 8564 1 [EMAIL PROTECTED]:] shutting down - read:129 bytes, wrote:524 bytes.

@4000000040c60fe83ab53a6c 8566 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c60fe83b81c1cc 8567 0 [EMAIL PROTECTED]:] <rmvg> authenticated

@4000000040c60fe9018722dc 8567 1 [EMAIL PROTECTED]:INBOX] <rmvg> logged off - bodies:0 statements:13

@4000000040c60fe901a09a64 8566 1 [EMAIL PROTECTED]:] shutting down - read:535 bytes, wrote:2806 bytes.

@4000000040c60fe90868bb9c 8568 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

@4000000040c60fe909a8772c 8569 0 [EMAIL PROTECTED]:] <rmvg> authenticated

@4000000040c60fe90ad1d42c 8569 1 [EMAIL PROTECTED]:Trash] <rmvg> logged off - bodies:0 statements:6

@4000000040c60fe90ae44ea4 8568 1 [EMAIL PROTECTED]:] shutting down - read:325 bytes, wrote:1266 bytes.

***** Grasping at straws here

# $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/bincimapd

@4000000040c611ee057ca3e4 error initializing Binc IMAP: Command line "/usr/local/bin/checkpassword": No such argument

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/bincimapd

@4000000040c61f131f3697cc 20365 0 [EMAIL PROTECTED]:] connection from 127.0.0.1

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

@4000000040c61f1320fd3a84 20365 2 [EMAIL PROTECTED]:] shutting down - read:31 bytes, wrote:255 bytes.

I am lost please help



Andreas Aardal Hanssen wrote:

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


added the dashes like this to my run file but still get the same error
--/usr/local/bin/checkpassword
/usr/local/bin/recordio
/usr/local/bin/bincimapd



Okay.



What about recordio it seems to do nothing i guess it is not even
running must be a script somewhere.
What i do need is how to add several hostnames and ips to my imaps
service so i can login both internally and externally.
The dashes after ssl must be equal to dashes before the authenticator???



Yes, the following config file is correct, although it doesn't contain recordio.



***** /usr/local/etc/bincimap/imaps
--logtype=multilog \
--conf=/usr/local/etc/bincimap/bincimap.conf --ssl -- \
/usr/local/bin/checkpassword \
/usr/local/bin/bincimapd



Okay, to sum it up, you have a working service, you're running 1.2.6, and you'd like to allow plain logins when people/squirrelmail are connecting to the localhost interface. I hope I understand you correctly.

You're running a separate service for the 127.0.0.1 server. This has a
separate service directory, and a separate symlink in /service. The run
file in this service directory has --allow-plain as an argument to
bincimap-up. Yet the service does not allow plain text authentication.

I've tested this exact setup here, and it works fine. The only thing I can
think of is that one of the observations above is wrong.

You could try with a separate conf file, specifying its path with the
--conf=<path> argument to bincimap-up, and set the plain auth setting
there (not using the --allow-plain argument).

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."




Reply via email to