On Fri, Apr 12, 2002 at 01:27:19PM -0300, Eduardo Gargiulo wrote:
> Hi all.
> 
> I have compiled courier-imap-1.4.3 and configured to use autvmailmgr.
> Now, i'm trying to run courier-imap from tcpserver (uscpi-tcp) without
> success. The imapd process starts (i can see it with netstat and ps)
> but my client (Netscape Messenger) shows 'Login Failed' when i try to
> connect.
> 
> The script i'm using is
> 
> ------------------------- 8< ---------------------------------------
> #!/bin/sh
> 
> ADDRESS=127.0.0.1
> IMAPDPORT=143
> MAXIMAPD=15
> IMAPDUID=`id -u imapd`
> NOFILESGID=`id -g imapd`
> 
> exec  /usr/local/bin/tcpserver -v -H -P -R -l 0                          \
>   -c "$MAXIMAPD" -u "$IMAPDUID" -g "$NOFILESGID" "$ADDRESS" "$IMAPDPORT"             
>    \
>   /usr/lib/courier-imap/sbin/imaplogin 
>/usr/lib/courier-imap/libexec/authlib/authvmailmgr \
>         /usr/lib/courier-imap/bin/imapd Maildir

I struggled to get courier-imap to work with tcpserver yesterday and
finially got it working.  Here's a quick breakdown (only one of which is
related to tcpserver):

1) I didn't have the user database setup correctly with passwords.
   Examining the perl code for pw2userdb I should of passed it a
   --shadow=/etc/master.passwd switch to handle FreeBSD's shadow file.

2) Test out to see if authenication is working by running
     authlib/authtest <username>
   initially to see if it can locate the user and then
     authlib/authtest <username> <passwd>
   to see if it authenicates. If it doesn't then stop there.  In your
   case you'll have to do something different with authvmailmgr, I can't
   see what's obvious from running authtest.  maybe pass that along with
   the -s switch?

3) I didn't suck in all the config files at the start of my imap script.
   You might want to put this at the top of yours:
     prefix=/usr/local
     . ${prefix}/etc/imapd-ssl
     . ${prefix}/etc/imapd
   That's a little easier to maintain than having then in your script
   like above. Plus why bind to 127.0.0.1? Is anyone but the local
   machine going to be able to access it then?  You probably want that
   to be either "0" or the local IP address.

4) when you run the above script you should see some output on the
   screen. When mine wasn't authenicating correctly it would give a
   timeout warning from authdaemond. Are you getting anything?

Chris

_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to