5 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] configuring courier-a...
FromSent OnAttachments
Kurt BiglerApr 8, 2005 8:36 pm 
zrrApr 9, 2005 2:56 am 
Kurt BiglerApr 9, 2005 9:04 am 
Brian CandlerApr 10, 2005 6:22 am 
Kurt BiglerApr 10, 2005 9:34 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] configuring courier-authlib for sqwebmail use on vpopmail systemActions...
From:Brian Candler (B.Ca@pobox.com)
Date:Apr 10, 2005 6:22:56 am
List:net.sourceforge.lists.courier-sqwebmail

On Fri, Apr 08, 2005 at 08:36:58PM -0700, Kurt Bigler wrote:

What configure options do I need for courier-authlib?

--with-authvchkpw

Looking throught the SqWebMail configure options and the available courier-authlib options, I tried:

--without-authuserdb --without-authpam --without-authpwd --without-authshadow --without-authldap

All fine, although there's no need to turn off things you don't need here unless they cause compile-time errors. You can disable them at runtime by removing from setting 'authmodulelist' in authdaemonrc

--with-authvchkpw

That's the one option that you need.

--without-authdaemonrc --without-authdaemonvar

Noooo... don't do those!! Picking random configuration options is likely to have very detrimental effects to your system.

I see now there are probably several more -without's I could have added, but I'm assuming this is not my primary problem.

Well, that depends on what your primary problem looks like.

Then there is the question of how to use authtest. Is the userid supposed to be of the form user@domain?

It's of whatever format your installation of vpopmail supports. Like Sam's message says, we don't know anything about vpopmail here. (Actually I have been on a vpopmail/qmail system recently, and it required logins of form user@domain)

I tried this and also user%domain. No luck. I get this output in the single-arg case with a valid user and domain:

ERR: authdaemon: s_connect() failed: Not a directory Authentication FAILED: Not a directory

Well, that's the login trying to connect to authdaemond through its socket, and finding that the socket directory does not exist. So clearly it doesn't matter what username format you're trying - it's not getting that far.

Prior to adding --without-authdaemonrc and --without-authdaemonvar I was getting

ERR: authdaemon: s_connect() failed: No such file or directory Authentication FAILED: No such file or directory

Does this mean I haven't fully disabled authdaemon?

No, it probably means you forgot to *start* authdaemon, and therefore it didn't create the socket used for communication between the client and authdaemon. It's an essential component.

So in summary:

./configure --with-authvchkpw && make && make install /usr/local/sbin/authdaemond start # or wherever it's installed authtest fo@example.com authtest fo@example.com mypasswd

See also http://www.courier-mta.org/authlib/README.authdebug.html

Once that's going, configure and install sqwebmail.

Brian.