-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

i recently installed courier+mysqlauth.
but i am stuck on the following:

when i telnet to port 110 i got :

+OK Hello there.
user niko
+OK Password required.
pass test
- -ERR Login failed.

so i enabled mysqllogging to see what happens on this side.
the pop3demon quereis the mysqldb as follows (i can see that in
mysql.log):
SELECT id, crypt, clear, uid, gid, home, maildir, "", name FROM users
WHERE id = "niko "

entering this query by hand returns:
niko abgOeLfPimXQo test 0 0 /tmp/postfix /tmp/postfix   niko 

everting looks ok for me.
so i tried different encryption methods:
mysqls' md5
mysqls' password
mysqls' encrypt
php's crypt
perl's crypt

but whitout any success. :|
i already played around a bit with strace but this
is'nt really readable to me.

the only thing i wan't to use at the moment is pop3 
so i only started the pop3d

I am appending all relevant config files.
I'am really getting nuts on this.
Please help me :)

- --
autmysqlrc:
- --
MYSQL_SERVER            localhost
MYSQL_USERNAME          root
MYSQL_PASSWORD          
MYSQL_SOCKET            /var/lib/mysql/mysql.sock
MYSQL_OPT               0
MYSQL_DATABASE          maildb
MYSQL_USER_TABLE        users
MYSQL_CRYPT_PWFIELD     crypt
MYSQL_CLEAR_PWFIELD     clear
MYSQL_UID_FIELD         uid
MYSQL_GID_FIELD         gid
MYSQL_LOGIN_FIELD       id
MYSQL_HOME_FIELD        home
MYSQL_NAME_FIELD        name
MYSQL_MAILDIR_FIELD     maildir
#MYSQL_QUOTA_FIELD      quota
# MYSQL_WHERE_CLAUSE    server='mailhost.example.com'


- --
authdaemonrc
- --
##VERSION: $Id: authdaemonrc.in,v 1.8 2001/10/07 02:16:22 mrsam Exp $
#
# Copyright 2000-2001 Double Precision, Inc.  See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication
daemon.
#
# Comments in this file are ignored.  Although this file is intended
to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited.  Multiline variable
contents,
# with the \ continuation character, are not allowed.  Everything
must
# fit on one line.  Do not use any additional whitespace for
indentation,
# or anything else.

##NAME: authmodulelist:0
#
# The authentication modules that are linked into authdaemond.  The
# default list is installed.  You may selectively disable modules
simply
# by removing them from the following list.  The available modules
you
# can use are: authcustom authcram authuserdb authldap authmysql
authpam

authmodulelist="authmysql"

##NAME: authmodulelistorig:1
#
# This setting is used by Courier's webadmin module, and should be
left
# alone

authmodulelistorig="authcustom authcram authuserdb authldap authmysql
authpam"

##NAME: daemons:0
#
# The number of daemon processes that are started.  authdaemon is
typically
# installed where authentication modules are relatively expensive:
such
# as authldap, or authmysql, so it's better to have a number of them
running.
# PLEASE NOTE:  Some platforms may experience a problem if there's
more than
# one daemon.  Specifically, SystemV derived platforms that use TLI
with
# socket emulation.  I'm suspicious of TLI's ability to handle
multiple
# processes accepting connections on the same filesystem domain
socket.
#
# You may need to increase daemons if as your system load increases. 
Symptoms
# include sporadic authentication failures.  If you start getting
# authentication failures, increase daemons.  However, the default of
5
# SHOULD be sufficient.  Bumping up daemon count is only a short-term
# solution.  The permanent solution is to add more resources: RAM,
faster
# disks, faster CPUs...

daemons=5

##NAME: version:0
#
# When you have multiple versions of authdaemond.* installed,
authdaemond
# just picks the first one it finds.  Set "version" to override that.
# For example:  version=authdaemond.plain

version="authdaemond.mysql"

##NAME: authdaemonvar:0
#
# authdaemonvar is here, but is not used directly by authdaemond. 
It's
# used by various configuration and build scripts, so don't touch it!

authdaemonvar=/usr/local/var/authdaemon




- --
pop3d
- --
##VERSION: $Id: pop3d.dist.in,v 1.5 2002/08/11 20:00:20 mrsam Exp $
#
# pop3d created from pop3d.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
#  Copyright 1998 - 2002 Double Precision, Inc.  See COPYING for
#  distribution information.
#
#  Courier POP3 daemon configuration
#
##NAME: PIDFILE:0
#

PIDFILE=/var/run/pop3d.pid

##NAME: MAXDAEMONS:0
#
#  Maximum number of POP3 servers started
#

MAXDAEMONS=40

##NAME: MAXPERIP:4
#
#  Maximum number of connections to accept from the same IP address

MAXPERIP=4

##NAME: AUTHMODULES:0
#
######################################################################
###
##
## Authentication modules which attempt to validate userid/password
## combinations.  See authpam(8) for more information.  The default
set
## is installed at configuration time.  You may have to edit the
following
## to remove unnecessary authentication modules.  In particular, if
## authpam is included in the list below, you will have to remove
authpwd
## and authshadow, since their functionality is included in the
authpam
## module.
##
######################################################################
###

AUTHMODULES="authdaemon"


##NAME: AUTHMODULES_ORIG:0
#
# This setting is for use with webadmin

AUTHMODULES_ORIG="authdaemon"

##NAME: POP3AUTH:1
#
# To advertise the SASL capability, per RFC 2449, uncomment the
POP3AUTH
# variable:
#
# POP3AUTH="LOGIN"
#
# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to
something
# like this:
#
# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"

POP3AUTH=""

##NAME: POP3AUTH_ORIG:0
#
# For use by webadmin

POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"

##NAME: POP3AUTH_TLS:1
#
# To also advertise SASL PLAIN if SSL is enabled, uncomment the
# POP3AUTH_TLS environment variable:
#
# POP3AUTH_TLS="LOGIN PLAIN"

POP3AUTH_TLS=""

##NAME: POP3AUTH_TLS_ORIG:0
#
# For use by webadmin

POP3AUTH_TLS_ORIG="LOGIN PLAIN"

##NAME: PORT:1
#
# Port to listen on for connections.  The default is port 110.
#
#  Multiple port numbers can be separated by commas.  When multiple
port
#  numbers are used it is possibly to select a specific IP address
for a
#  given port as "ip.port".  For example,
"127.0.0.1.900,192.68.0.1.900"
#  accepts connections on port 900 on IP addresses 127.0.0.1 and
192.68.0.1
#  The ADDRESS setting is a default for ports that do not have a
specified
#  IP address.

PORT=110

##NAME: ADDRESS:0
#
# IP address to listen on.  0 means all IP addresses.

ADDRESS=192.168.200.245

##NAME: TCPDOPTS:0
#
# Other couriertcpd(1) options.  The following defaults should be
fine.
#

TCPDOPTS="-nodnslookup -noidentlookup"

##NAME: POP3DSTART:0
#
# POP3DSTART is not referenced anywhere in the standard Courier
programs
# or scripts.  Rather, this is a convenient flag to be read by your
system
# startup script in /etc/rc.d, like this:
#
#  . ${sysconfdir}/pop3d
#  case x$POP3DSTART in
#  x[yY]*)
#        /usr/local/libexec/pop3d.rc start
#        ;;
#  esac
#
# The default setting is going to be NO, until Courier is shipped by
default
# with enough platforms so that people get annoyed with having to
flip it to
# YES every time.

POP3DSTART=NO

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPYiOhBr5BhWFTCgMEQIjuQCfSWLVfAmlvkJmrTyfUf0WoJi08CQAnjw1
vAs/aeeoYyYD7MWE0lIxm/96
=YeJL
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to