Dovecot sql config

Hallo,

Ich versuche inzwischen seit einigen Tagen das Problem zu lösen.
Ich habe mich auch schon durch sämtliche manuals gewälst, jedoch die Lösung nicht gefunden.

Ich nutze Gentoo, Egroupware 1.4 (Mysql), postfix und dovecot.
Egroupware funktioniert auch, ich kann mich dort einloggen.
Wenn ich aber mit FeLaMiMail auf den IMAP von dovecot verbinden will gibt es jedesmal einen fehler.
Hier die relevanten Configs, sollte was fehlen bitte bescheid geben:

dovecot.conf

Dovecot configuration file

protocols = imap imaps

log_timestamp = .%Y-%m-%d %H:%M:%S .
syslog_facility = mail
mail_privileged_group = mail

disable_plaintext_auth = yes

first_valid_uid = 500
last_valid_uid = 65535

first_valid_gid = 500
last_valid_gid = 65535

#protocol imap {
#listen= localhost:143
#}

#protocol imaps {
#listen= localhost:993
#}

#protocol pop3 {
#listen = 192.168.30.40:995
#pop3_uidl_format = %08Xu%08Xv
#}

protocol lda {
postmaster_address = postmaster@meine.domain
hostname = smtp.meine.domain
auth_socket_path = /var/run/dovecot/auth-master
}

#ssl_listen =

ssl = yes

ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem

#ssl_key_password =

#ssl_ca_file =

ssl_verify_client_cert = no

ssl_parameters_regenerate = 168

ssl_cipher_list = ALL:!LOW

verbose_ssl = no

auth default {
mechanisms = plain

userdb passwd {
args = mail=mbox:/var/mail
}

passdb pam {
#args = dovecot
args = *
}

userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}

socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = mail
group = mail
}
}
}

end dovecot configuration

dovecot-sql.conf

dovecot-sql.conf

driver = mysql

connect = host=localhost dbname=egroupware user=egroupware password=secret

default_pass_scheme = PLAIN-MD5 #MD5-CRYPT

#user_query = SELECT 500 AS uid, 500 AS gid, ./var/vmail/%u. AS home FROM egw_accounts where account_lid = .%u.

#password_query = SELECT account_pwd AS password FROM egw_accounts WHERE account_lid = .%u.
password_query = SELECT account_lid as user, account_pwd as password FROM egw_accounts WHERE account_lid = ‘%u’

end dovecot-sql.conf

Mit den auskomentierten Einstellungen habe ich es auch schon erfolglos versucht.

Und hier die log:
Dec 21 11:37:13 egroupware dovecot: Dovecot v1.2.6 starting up (core dumps disabled)
Dec 21 11:37:13 egroupware dovecot: auth-worker(default): mysql: Connected to localhost (egroupware)
Dec 21 11:37:21 egroupware dovecot-auth: pam_unix(imap:auth): check pass; user unknown
Dec 21 11:37:21 egroupware dovecot-auth: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=test rhost=127.0.0.1
Dec 21 11:37:23 egroupware dovecot: auth-worker(default): sql(test,127.0.0.1): User query failed: Table ‘egroupware.users’ doesn’t exist
Dec 21 11:37:23 egroupware dovecot: imap-login: Internal login failure (auth failed, 1 attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 21 11:37:23 egroupware dovecot-auth: pam_unix(imap:auth): check pass; user unknown
Dec 21 11:37:23 egroupware dovecot-auth: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=test rhost=127.0.0.1
Dec 21 11:37:25 egroupware dovecot: auth-worker(default): sql(test,127.0.0.1): User query failed: Table ‘egroupware.users’ doesn’t exist
Dec 21 11:37:25 egroupware dovecot: imap-login: Internal login failure (auth failed, 1 attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Die Domains und passwörter habe ich abgeändert.
Ich wäre für jede Hilfe Dankbar!

Hallo,

Ich habe nun einiges umgestellt, und denke ich bin nun einen Schritt weiter gekommen.
Es sieht nun so aus, also ob der IMAP server und der Postfix funktioniert.
Jedoch ist noch ein fehler in der pipe zwischen dovecot und postfix vorhanden:

Dec 22 12:16:38 egroupware postfix/cleanup[15641]: 09AD430170: message-id=c4dd13ac75db87da3a35a8afa3e63688@egroupware.noras.dyndns.org
Dec 22 12:16:38 egroupware postfix/qmgr[15488]: 09AD430170: from=weikert@noras.dyndns.org, size=1131, nrcpt=1 (queue active)
Dec 22 12:16:38 egroupware postfix/smtpd[15638]: disconnect from egroupware.noras.dyndns.org[192.168.100.17]
Dec 22 12:16:38 egroupware postfix/pipe[15642]: fatal: user= command-line attribute specifies mail system vmail group id 251
Dec 22 12:16:39 egroupware postfix/qmgr[15488]: warning: private/dovecot socket: malformed response
Dec 22 12:16:39 egroupware postfix/qmgr[15488]: warning: transport dovecot failure – see a previous warning/fatal/panic logfile record for the problem description
Dec 22 12:16:39 egroupware postfix/master[15475]: warning: process //usr/lib64/postfix/pipe pid 15642 exit status 1
Dec 22 12:16:39 egroupware postfix/master[15475]: warning: //usr/lib64/postfix/pipe: bad command startup – throttling
Dec 22 12:16:39 egroupware postfix/error[15643]: 09AD430170: to=weikert@noras.dyndns.org, relay=none, delay=1.1, delays=0.07/1/0/0.02, dsn=4.3.0, status=deferred (unknown mail transport error)

Für Hilfe wäre ich sehr dankbar!

Hallo,

wir nutzen auch dovecot mit postfix und mir kommt Dein Problem bekannt vor.
Bei uns wirkt das hier:

Datei "/var/www/egroupware/egw-pear/Net#IMAPProtocol.php"
Zeile 36:
aus
var $supportedAuthMethods=array(‘DIGEST-MD5’, ‘CRAM-MD5’, ‘LOGIN’);

wird
var $supportedAuthMethods=array(‘PLAIN’, ‘DIGEST-MD5’, ‘CRAM-MD5’,
‘LOGIN’);

Zeile 508:
case ‘PLAIN’:
$result = $this->_authPLAIN( $uid , $pwd , $cmdid );
break;

Zeile 696:
/* Authenticates the user using the method "PLAIN .
/

function _authPLAIN($uid, $pwd, $cmdid)
{
$autht = “\0$uid\0$pwd”;

$auth_str = base64_encode( “$autht” );

if (PEAR::isError($error = $this->_putCMD($cmdid, “AUTHENTICATE PLAIN”))) {
return $error;
}

if (PEAR::isError($args = $this->_recvLn() )) {
return $args;
}
$this->_getNextToken( $args , $plus );

if ( PEAR::isError( $error = $this->_send( $auth_str."\r\n" ) ) ) {

 return $error;

}
}

felamimail/inc/class.bofelamimail.inc.php
zeile 883:

$foldersNameSpace[$type][‘prefix’] = ‘’;

Tut mir leid, wenns etwas unübersichtlich ist, aber evtl. hilft es Dir…

LG

Steffen

Hallo,

Ich habe nun einiges umgestellt, und denke ich bin nun einen Schritt weiter
gekommen.
Es sieht nun so aus, also ob der IMAP server und der Postfix funktioniert.
Jedoch ist noch ein fehler in der pipe zwischen dovecot und postfix
vorhanden:

Dec 22 12:16:38 egroupware postfix/cleanup[15641]: 09AD430170:
message-id=c4dd13ac75db87da3a35a8afa3e63688@egroupware.noras.dyndns.org
Dec 22 12:16:38 egroupware postfix/qmgr[15488]: 09AD430170:
from=weikert@noras.dyndns.org, size=1131, nrcpt=1 (queue active)
Dec 22 12:16:38 egroupware postfix/smtpd[15638]: disconnect from
egroupware.noras.dyndns.org[192.168.100.17]
Dec 22 12:16:38 egroupware postfix/pipe[15642]: fatal: user= command-line
attribute specifies mail system vmail group id 251
Dec 22 12:16:39 egroupware postfix/qmgr[15488]: warning: private/dovecot
socket: malformed response
Dec 22 12:16:39 egroupware postfix/qmgr[15488]: warning: transport dovecot
failure – see a previous warning/fatal/panic logfile record for the problem
description
Dec 22 12:16:39 egroupware postfix/master[15475]: warning: process
//usr/lib64/postfix/pipe pid 15642 exit status 1
Dec 22 12:16:39 egroupware postfix/master[15475]: warning:
//usr/lib64/postfix/pipe: bad command startup – throttling
Dec 22 12:16:39 egroupware postfix/error[15643]: 09AD430170:
to=weikert@noras.dyndns.org, relay=none, delay=1.1, delays=0.07/1/0/0.02,
dsn=4.3.0, status=deferred (unknown mail transport error)

Für Hilfe wäre ich sehr dankbar!


This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon’s best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev


egroupware-german mailing list
egroupware-german@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-german