JNoir
19.12.04, 17:32
Hi,
Ich bin im Moment bei der Installation eines Mailservers mit Postfix, Cyrus IMAP mit SASL und MySQL auf Suse 9.0
Ich habe da allerdings so meine Probleme mit SASL.
Beim einloggen mit:
cyadm --user cyrus --server localhost - -auth plain
bekomme ich folgende Fehlermeldung:
LOGIN failed at /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with plain as cyrus
saslauthd und cyrus laufen, das war mein erster Verdacht.
Nach einem kurzen Blick in die /var/log/messages hatte ich den Verdacht das in der imapd.conf für den lokalen Host eventuell der User cyrus deaktiviert ist.
der Vollständigkeit halber noch ein Auszug aus der /var/log/mail:
/var/log/messages:
Dez 19 17:56:05 florenz16 perl: No worthy mechs found
Dec 19 17:56:07 florenz16 imapd[9496]: Login disabled user=cyrus auth=cyrus host=localhost [127.0.0.1]
/var/log/mail:
Dec 19 17:56:02 florenz16 imapd[9496]: imap service init from 127.0.0.1
Dec 19 17:56:05 florenz16 imapd[9496]: AUTHENTICATE PLAIN failure host=localhost [127.0.0.1]
Dec 19 17:56:10 florenz16 imapd[9496]: Command stream end of file, while reading line user=cyrus host=localhost [127.0.0.1]
Leider war es das dann auch nicht :(
Habt ihr eine Idee?
An dieser Stelle noch kurz meine cyrus und meine imapd configs:
/etc/imapd.conf
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
# admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: test.de
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
# unixhierarchysep: yes
/etc/imapd-local.conf
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: localhost
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
# unixhierarchysep: yes
/etc/cyrus.conf
Die echte IP Adresse habe ich für den Post entfernt.
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="<meineIPAdresse>:imap" prefork=0
imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0
imaps cmd="imapd -s" listen="<meineIPAdresse>:imaps" prefork=0
imapslocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="<meineIPAdresse>:sieve" prefork=0
sievelocal cmd="timsieved -C /etc/imapd-local.conf" listen="127.0.0.1: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="ctl_deliver -E 3" period=1440
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440
}
Danke für eure Hilfe.
Ich bin im Moment bei der Installation eines Mailservers mit Postfix, Cyrus IMAP mit SASL und MySQL auf Suse 9.0
Ich habe da allerdings so meine Probleme mit SASL.
Beim einloggen mit:
cyadm --user cyrus --server localhost - -auth plain
bekomme ich folgende Fehlermeldung:
LOGIN failed at /usr/lib/perl5/vendor_perl/5.8.1/i586-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with plain as cyrus
saslauthd und cyrus laufen, das war mein erster Verdacht.
Nach einem kurzen Blick in die /var/log/messages hatte ich den Verdacht das in der imapd.conf für den lokalen Host eventuell der User cyrus deaktiviert ist.
der Vollständigkeit halber noch ein Auszug aus der /var/log/mail:
/var/log/messages:
Dez 19 17:56:05 florenz16 perl: No worthy mechs found
Dec 19 17:56:07 florenz16 imapd[9496]: Login disabled user=cyrus auth=cyrus host=localhost [127.0.0.1]
/var/log/mail:
Dec 19 17:56:02 florenz16 imapd[9496]: imap service init from 127.0.0.1
Dec 19 17:56:05 florenz16 imapd[9496]: AUTHENTICATE PLAIN failure host=localhost [127.0.0.1]
Dec 19 17:56:10 florenz16 imapd[9496]: Command stream end of file, while reading line user=cyrus host=localhost [127.0.0.1]
Leider war es das dann auch nicht :(
Habt ihr eine Idee?
An dieser Stelle noch kurz meine cyrus und meine imapd configs:
/etc/imapd.conf
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
# admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: test.de
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
# unixhierarchysep: yes
/etc/imapd-local.conf
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: localhost
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
# unixhierarchysep: yes
/etc/cyrus.conf
Die echte IP Adresse habe ich für den Post entfernt.
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="<meineIPAdresse>:imap" prefork=0
imaplocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imap" prefork=0
imaps cmd="imapd -s" listen="<meineIPAdresse>:imaps" prefork=0
imapslocal cmd="imapd -C /etc/imapd-local.conf" listen="127.0.0.1:imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="<meineIPAdresse>:sieve" prefork=0
sievelocal cmd="timsieved -C /etc/imapd-local.conf" listen="127.0.0.1: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="ctl_deliver -E 3" period=1440
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440
}
Danke für eure Hilfe.