At this point it appears as though Courier Authdaemond is not trying
to querying the MySQL Database when being used from Postfix/Cyrus
SASL. It works fine with Courier IMAP/POP3.
Is there a way to make sure that SASL & Authdaemond are speaking with
one another?
I can't seem to find anything in the logs and I have all the logging
I know about set to the max.
Thanks again,
-Rich
On Mar 2, 2006, at 12:37 PM, Richard Secor wrote:
As per your suggestion I streamlined my sasl2 smtpd.conf file.
As per someone else's suggestion I rechecked all the permissions
and found that /usr/local/var was 700 and changed it to 755. That
fixed the permission error.
Now that that's fixed I'm now trying to figure out why I can't
authenticate. I don't see anything in the mysql server log that
shows Courier Authdaemond attempting authentication.
Courier IMAP and Courier POP3 both work fine (although without
encryption, etc right now -- working on that after I get a bit more
working here). I see the sql queries in the mysql log.
Is there anything else that you know of that needs to be done for
sasl2 to speak with authdaemond?
Thanks again,
-Rich
Mar 2, 2006, at 12:15 PM, Johnny Lam wrote:
Richard Secor wrote:
# cat /usr/local/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond auxprop
log_level: 3
mech_list: PLAIN LOGIN
authdaemond_path: /usr/local/var/spool/authdaemon/socket
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: localhost
sql_user: sql_user
sql_password: sql_password
sql_database: sql_database
sql_verbose: true
sql_select: sql_select
IIRC, "pwcheck_method" can only be set to a single value. In this
case the proper value is simply "authdaemond". You can rip out
all of the "sql" stuff. For comparison, this is my smtpd.conf file:
# cat /usr/pkg/lib/sasl2/smtpd.conf
pwcheck_method: authdaemond
authdaemond_path: /var/authdaemon/socket
mech_list: plain
I have postfix using courier-authlib's authdaemond for plaintext
password authentication for SMTP AUTH.
# ls -l /usr/local/var/spool |grep authdaemon
drwxr-x--- 2 postfix postfix 512 Mar 1 01:42 authdaemon
# ls -l /usr/local/var/spool/authdaemon/socket
srwxrwxrwx 1 root postfix 0 Mar 1 01:42 /usr/local/var/spool/
authdaemon/socket
What I've tried:
Changing permissions on /usr/local/var/spool/authdaemon. (Even
tried 777.)
Getting "auxprop" with "sql" working in lieu of "authdaemond".
(However this doesn't look like it will work unless I run
"saslauthd" as well, which I understand I don't need to run to
get everything working with "authdaemond".)
Your permissions and ownership look fine for postfix, although if
you're planning on eventually running courier-imap, you'll need to
correct the ownership so that the courier-imap server can write to
the authdaemond socket. I have the postfix and courier users in a
common group that owns the directory and the socket.
Looked for answers on:
This lists archive, google/yahoo/etc, google (dejanews), etc.
However, it seems everything there is on the subject never came
to a conclusion. In fact I can't find anyone who has actually
claimed to get SASL & authdaemond to work together.
This setup can definitely be made to work -- I use it daily. I
think this is likely just an error in the SASL server setup.
Cheers,
-- Johnny Lam <[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-
users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users