Hejsa
Jeg har en nogle problemer med Postfix+Courier-Imap+MySQL
Det første er egentligt simpelt:
Som jeg har det nu, har jeg selv kompileret Postfix, så den kan køre med
MySQL. Jeg vil dog gerne finde en Postfix-rpmpakke, hvor
MySQL-understøttelse allerede er slået til.
Nummer to er mere svært:
Jeg fulgte guiden på
http://high5.net/howto, for at opsætte Postfix og
Courier-imap til MySQL. Postfix leverer fint i de forskellige maildirs, men
jeg kan ikke få imap til at kontakte MySQL-serveren.
Jeg byggede selv rpm-pakken (íkke som root) og installerede følgende pakker:
courier-imap-mysql-2.2.1.20031219-1.1.rpm
courier-imap-2.2.1.20031219-1.1.rpm
Min authmysqlrc indeholder
-----------------------
MYSQL_SERVER localhost
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_PORT 3306
#DEFAULT_DOMAIN mydomain.dk
MYSQL_CRYPT_PWFIELD password
MYSQL_DATABASE postfix
MYSQL_GID_FIELD '89'
MYSQL_HOME_FIELD '/home/postfix'
MYSQL_LOGIN_FIELD username
MYSQL_MAILDIR_FIELD maildir
MYSQL_NAME_FIELD name
MYSQL_OPT 0
MYSQL_PASSWORD postfix
#MYSQL_QUOTA_FIELD quota
MYSQL_UID_FIELD '89'
MYSQL_USERNAME postfix
MYSQL_USER_TABLE mailbox
#MYSQL_WHERE_CLAUSE server='mailhost.example.com'
-----------------------
Jeg prøvede med at udkommentere socket-linien, men det hjælper heller ikke.
Min authdaemonrc indeholder:
-----------------------
##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 authpgsql 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 authpgsql
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.plain"
##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=/var/run/authdaemon.courier-imap
--------------------------
Jeg har sikret mig at authdaemiond.mysql kører
Jeg har prøvet at logge alt til MySQL, og jeg kan se at Postfix slår
adresser korrekt op og leverer posten korret. Men så snart jeg prøver at
logge ind med pop3 får jeg en -ERR Login failed tilbage, og jeg kan se at
den end ikke kontakter MySQL
Nogen, der kan gennemskue, hvad der er galt?
Selvom det kun er til en lille legeboks med Fedora, ville det da være rart,
hvis jeg kunne få det til at fungere.
--
MvH
Gregers Petersen
http://disclaimer.gpweb.dk