PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : phprojekt und imap



Huhn Hur Tu
19.10.05, 02:22
Nachdem ich nun schon 10 mal die Nutzerdaten fuer meinen Imap account auf meinem Cyrus glaube ich solangsam dass phprojekt sich mit dem auf der gleichen Maschine befindlichen Cyrus nicht versteht.
Nachdem ich die Zugangsdaten fuer den Mailserv eingegeben haeb und abholen will meldet mit phprojekt:

Fehler bei Zugriff auf Mailkonto meinuser!:
Can not authenticate to IMAP server: user not found
Kmail hat damit kein Problem also kann ich davon ausgehen dass es an Phprojekt liegt.
Irgendwelche Ideen ??

MFG Stefan

drcux
19.10.05, 08:12
was sagt denn /var/log/mail bzw messages?

Huhn Hur Tu
19.10.05, 13:47
Keine Aenderung in /var/log/mail bei Anfrage an Imap Server.
Scheint als wuerde phprojekt die Anfrage nicht durchstellen.


MFg Stefan

drcux
19.10.05, 13:56
merkwürdig, hat phpprojekt nen "debugmodus"?

Huhn Hur Tu
19.10.05, 14:41
Jetzt hab ich was gefunden.
in /var/log/messages

Oct 19 14:37:51 serverlein imap[31595]: unable to open Berkeley db /etc/sasldb2: Permission denied
Oct 19 14:37:51 serverlein imap[31595]: unable to open Berkeley db /etc/sasldb2: Permission denied
Oct 19 14:37:51 serverlein imap[31595]: no secret in database
Oct 19 14:37:51 serverlein imap[31595]: badlogin: serverlein.dahome [192.168.11.1] CRAM-MD5 [SASL(-13): user not found: no secret in database]
Bisher hab ich meinem Cyrus noch keine Verschlusselung beibringen koennen.
Es scheint als wolle phprojekt zwingend mit cram-md5 verschluesseln aber sasl spackt da rum.

MFG Stefan

muell200
19.10.05, 14:56
nur eine vermutung:

dein webserver, hat keinen zugriff auf /etc/sasldb2 :)

unter welchem user läuft der webserver?

drcux
19.10.05, 14:58
/etc/imap.conf

sasl_mech_list plain login

Huhn Hur Tu
19.10.05, 16:10
Diese option fuehrt dazu dass cyrus nicht mehr startet.

/etc/imapd.conf:


configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus root
srvtab: /varlib/imap/srvtab
allowanonymouslogin: no
autocreatequota: 500000
reject8bit: no
quotawarn: 90
timeout: 480
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_mech_list plain login
sasl_pwcheck_method: saslauthd
sasl_password_method: pam
lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
lmtp_downcase_rcpt: yes
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA


MFG Stefan

drcux
19.10.05, 18:02
...
drachost: localhost
sasl_pwcheck_method: saslauthd
sasl_mech_list: plain login
lmtp_overquota_perm_failure: no
...


So sieht es bei mir aus...

Huhn Hur Tu
19.10.05, 19:01
Kein erfolg, leider. Also zerlegen wir erst mal meine Configs.
Wie schon erwaehnt mit plain funktioniert es ganz gut.

/etc/imapd.conf



configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus root
srvtab: /varlib/imap/srvtab
allowanonymouslogin: no
autocreatequota: 500000
reject8bit: no
quotawarn: 90
timeout: 480
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_mech_list plain login
sasl_pwcheck_method: saslauthd
sasl_password_method: pam
lmtpsocket: /var/lib/imap/socket/lmtp
lmtp_overquota_perm_failure: no
lmtp_downcase_rcpt: yes
#
# if you want TLS, you have to generate certificates and keys
#
#tls_cert_file: /usr/ssl/certs/cert.pem
#tls_key_file: /usr/ssl/certs/skey.pem
#tls_ca_file: /usr/ssl/CA/CAcert.pem
#tls_ca_path: /usr/ssl/CA


/etc/cyrus.conf



# standard standalone server implementation

START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
# imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
# pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0

# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0

# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}

EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30

# this is only necessary if using duplicate delivery suppression
delprune cmd="cyr_expire -E 3" at=0400

# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400

# Uncomment the next entry, if you want to automatically remove
# old messages of EVERY user.
# This example calls ipurge every 60 minutes and ipurge will delete
# ALL messages older then 30 days.
# enter 'man 8 ipurge' for more details

# cleanup cmd="ipurge -d 30 -f" period=60
}


dann fand ich eben noch die Datei

/etc/sysconfig/saslauthd



## Path: System/Security/SASL
## Type: list(getpwent,kerberos5,pam,rimap,shadow,ldap)
## Default: pam
## ServiceRestart: saslauthd
#
# Authentication mechanism to use by saslauthd.
# See man 8 saslauthd for available mechanisms.
#
SASLAUTHD_AUTHMECH=pam,plain,login


MFG Stefan

Irgendwelche Fehler.
Eingerichtet hab ich das ganze nach der Anleitung von Linux-Tin.org

drcux
19.10.05, 23:15
also in die /etc/sysconfig/saslauthd gehört plain und login nicht rein, dort steht nur gegen was authentifiziert wird (lokale User/LDAP etc)

Nimm es dort mal raus und in die imap.conf rein, so ist es eigentlich richtig. SuSEconfig nicht vergessen... ;)

Huhn Hur Tu
19.10.05, 23:55
Sry, login und plain hab ich schon entfernt.

MFG Stefan