cyrus imapd 2.1.3

2002-03-29 Thread Andreas Meyer

ehlo all!

I can´t get the cyrus to run. I compiled with
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s
CPPFLAGS="-I/usr/local/BerkeleyDB.3.1/include" \
LDFLAGS="-L/usr/local/BerkeleyDB.3.1/lib -R/usr/local/BerkeleyDB.3.1/lib" \
./configure 
--with-dblib=berkeley \
--without-krb \
--with-auth=unix \
--with-notify=unix \
--with-sasl=/usr/local \
--with-openssl=/usr/local/ssl

make clean
make depend
make all
make install
mkdir /var/imap
etc.
Then from the tools-directory a 'mkimap' as cyrus, all fine.

But when I start the './master &' as root from /usr/cyrus/bin
the imapd.log says:

master[13061]: process started
master[13061]: process started
master[13062]: about to exec /usr/cyrus/bin/ctl_cyrusdb
master[13062]: about to exec /usr/cyrus/bin/ctl_cyrusdb
ctl_cyrusdb[13062]: recovering cyrus databases
ctl_cyrusdb[13062]: recovering cyrus databases
ctl_cyrusdb[13062]: DBERROR db3: mmap: Invalid argument
ctl_cyrusdb[13062]: DBERROR db3: mmap: Invalid argument
ctl_cyrusdb[13062]: DBERROR: dbenv->open '/var/imap/db' failed: Invalid argument
ctl_cyrusdb[13062]: DBERROR: dbenv->open '/var/imap/db' failed: Invalid argument
ctl_cyrusdb[13062]: DBERROR: init /var/imap/db: cyrusdb error
ctl_cyrusdb[13062]: DBERROR: init /var/imap/db: cyrusdb error
ctl_cyrusdb[13062]: done recovering cyrus databases
ctl_cyrusdb[13062]: done recovering cyrus databases
master[13061]: process 13062 exited, status 1
master[13061]: process 13062 exited, status 1
master[13061]: ready for work
master[13061]: ready for work
master[13063]: about to exec /usr/cyrus/bin/ctl_cyrusdb
master[13063]: about to exec /usr/cyrus/bin/ctl_cyrusdb
ctl_cyrusdb[13063]: checkpointing cyrus databases
ctl_cyrusdb[13063]: checkpointing cyrus databases
ctl_cyrusdb[13063]: DBERROR db3: mmap: Invalid argument
ctl_cyrusdb[13063]: DBERROR db3: mmap: Invalid argument
ctl_cyrusdb[13063]: DBERROR: dbenv->open '/var/imap/db' failed: Invalid argument
ctl_cyrusdb[13063]: DBERROR: dbenv->open '/var/imap/db' failed: Invalid argument
ctl_cyrusdb[13063]: DBERROR: init /var/imap/db: cyrusdb error
ctl_cyrusdb[13063]: DBERROR: init /var/imap/db: cyrusdb error
ctl_cyrusdb[13063]: done checkpointing cyrus databases
ctl_cyrusdb[13063]: done checkpointing cyrus databases
master[13061]: process 13063 exited, status 1
master[13061]: process 13063 exited, status 1   

Now I´m not a programer and don´t know what to do furthermore.
Tried a lot of things, without success.

The service-entries exist, the inetd.conf is ok.

What could I do? Some help?


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: cyrus imapd 2.1.3

2002-03-29 Thread Andreas Meyer

Hello!

Am Fri, 29 Mar 2002 12:57:56 -0500 schrieb Clifford Thurber:

> You don't say what plaform you are running on.

I´m on a SuSE Linux kernel 2.2.16 with postfix 1.1.5

> 
> At 06:41 PM 3/29/2002 +0100, you wrote:
> >ehlo all!
> >
> >I can´t get the cyrus to run. I compiled with
> >env CPPFLAGS=-I/usr/local/include LDFLAGS=-s
> > CPPFLAGS="-I/usr/local/BerkeleyDB.3.1/include" \
> > LDFLAGS="-L/usr/local/BerkeleyDB.3.1/lib 
> > -R/usr/local/BerkeleyDB.3.1/lib" \
> > ./configure
> > --with-dblib=berkeley \
> > --without-krb \
> > --with-auth=unix \
> > --with-notify=unix \
> > --with-sasl=/usr/local \
> > --with-openssl=/usr/local/ssl

I would be great someboby could help me out.


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: cyrus imapd 2.1.3

2002-03-29 Thread Andreas Meyer

Hello!

Am Fri, 29 Mar 2002 14:08:38 -0500 schrieb Clifford Thurber:

> I had a similar problem on RedHat. It ended up that the distro shipped with 
> a version of BerkeleyDB and the header file in /usr/include/db.h was being 
> used instead of the one installed in /usr/local/BerkeleyDBx.x which is the 
> one you must have installed. Try running:
> 
> ldd /usr/cyrus/bin/master
> 
> to see what library its actually using.

delta:/ # ldd /usr/cyrus/bin/master
libdl.so.2 => /lib/libdl.so.2 (0x40018000)
libdb-3.3.so => /usr/local/BerkeleyDB.3.1/lib/libdb-3.3.so (0x4001c000)
libresolv.so.2 => /lib/libresolv.so.2 (0x4009e000)
libc.so.6 => /lib/libc.so.6 (0x400ad000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

hm, looks like it uses the right one. I have no idea why it doesn´t 
initialze the db.


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: cyrus imapd 2.1.3

2002-03-29 Thread Andreas Meyer

Hello!

Am Fri, 29 Mar 2002 14:41:51 -0500 schrieb Clifford Thurber:

> you might try to run trace strace on the master process and see what calls 
> are being made.

Got an interesting output. I hope it´s ok to post it here, sorry.

execve("./master", ["./master"], [/* 48 vars */]) = 0
open("/etc/ld.so.preload", O_RDONLY)= -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/usr/local/lib/i686/mmx", 0xb174) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
stat("/usr/local/lib/i686", 0xb174) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/mmx", 0xb174)  = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/local/BerkeleyDB.3.1/lib/i686/mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No 
such file or directory)
stat("/usr/local/BerkeleyDB.3.1/lib/i686/mmx", 0xb174) = -1 ENOENT (No such file 
or directory)
open("/usr/local/BerkeleyDB.3.1/lib/i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat("/usr/local/BerkeleyDB.3.1/lib/i686", 0xb174) = -1 ENOENT (No such file or 
directory)
open("/usr/local/BerkeleyDB.3.1/lib/mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
stat("/usr/local/BerkeleyDB.3.1/lib/mmx", 0xb174) = -1 ENOENT (No such file or 
directory)
open("/usr/local/BerkeleyDB.3.1/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file 
or directory)
stat("/usr/local/BerkeleyDB.3.1/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)  = 5
open("/lib/libdl.so.2", O_RDONLY)   = 5
open("/usr/local/lib/libdb-3.3.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/BerkeleyDB.3.1/lib/libdb-3.3.so", O_RDONLY) = 5
open("/usr/local/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/BerkeleyDB.3.1/lib/libresolv.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/lib/libresolv.so.2", O_RDONLY)   = 5
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/BerkeleyDB.3.1/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/lib/libc.so.6", O_RDONLY)= 5
open("/dev/null", O_RDWR)   = 0
open("/dev/null", O_RDWR)   = 1
open("/dev/null", O_RDWR)   = 2
open("/etc/localtime", O_RDONLY)= 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
open("/etc/cyrus.conf", O_RDONLY)   = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=993, ...}) = 0
--- SIGCHLD (Child exited) ---
open("/etc/cyrus.conf", O_RDONLY)   = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=993, ...}) = 0
open("/etc/cyrus.conf", O_RDONLY)   = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=993, ...}) = 0
open("/etc/nsswitch.conf", O_RDONLY)= 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=1342, ...}) = 0
open("/usr/local/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/local/BerkeleyDB.3.1/lib/libnss_files.so.2", O_RDONLY) = -1 ENOENT (No such 
file or directory)
open("/etc/ld.so.cache", O_RDONLY)  = 7
open("/lib/libnss_files.so.2", O_RDONLY) = 7
open("/etc/services", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/etc/services", O_RDONLY) = 10
fstat64(10, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/etc/services", O_RDONLY) = 13
fstat64(13, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/etc/services", O_RDONLY) = 16
fstat64(16, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/etc/services", O_RDONLY) = 19
fstat64(19, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/etc/services", O_RDONLY) = 22
fstat64(22, {st_mode=S_IFREG|0644, st_size=209624, ...}) = 0
open("/usr/local/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No such file or 
directory)
open("/usr/local/BerkeleyDB.3.1/lib/libnss_compat.so.2", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/etc/ld.so.cache", O_RDONLY)  = 25
open("/lib/libnss_compat.so.2", O_RDONLY) = 25
open("/usr/local/lib/libnsl.so.1", O_RDONLY

Re: cyrus imapd 2.1.3

2002-03-30 Thread Andreas Meyer

Hello!

Am 29 Mar 2002 23:14:23 + schrieb simon:

> 
> this is all ok if you notice it is looking for libraries and finding
> them , I cant see one it fails on.

tataa ;)

delta master[18189]: process started
delta master[18189]: process started
delta master[18190]: about to exec /usr/cyrus/bin/ctl_cyrusdb
delta master[18190]: about to exec /usr/cyrus/bin/ctl_cyrusdb
delta ctl_cyrusdb[18190]: recovering cyrus databases
delta ctl_cyrusdb[18190]: recovering cyrus databases
delta ctl_cyrusdb[18190]: done recovering cyrus databases
delta ctl_cyrusdb[18190]: done recovering cyrus databases
delta master[18189]: ready for work
delta master[18189]: ready for work
delta master[18193]: about to exec /usr/cyrus/bin/ctl_cyrusdb
delta master[18193]: about to exec /usr/cyrus/bin/ctl_cyrusdb
delta ctl_cyrusdb[18193]: checkpointing cyrus databases
delta ctl_cyrusdb[18193]: checkpointing cyrus databases
delta ctl_cyrusdb[18193]: archiving database file: /var/imap/mailboxes.db
delta ctl_cyrusdb[18193]: archiving database file: /var/imap/mailboxes.db
delta ctl_cyrusdb[18193]: archiving log file: /var/imap/db/log.01
delta ctl_cyrusdb[18193]: archiving log file: /var/imap/db/log.01
delta ctl_cyrusdb[18193]: archiving log file: /var/imap/db/log.01
delta ctl_cyrusdb[18193]: done checkpointing cyrus databases
delta ctl_cyrusdb[18193]: archiving log file: /var/imap/db/log.01
delta ctl_cyrusdb[18193]: done checkpointing cyrus databases
delta master[18189]: process 18193 exited, status 0
delta master[18189]: process 18193 exited, status 0
delta master[18198]: about to exec /usr/cyrus/bin/imapd
delta master[18198]: about to exec /usr/cyrus/bin/imapd
delta imap[18198]: executed
delta imap[18198]: executed
delta imapd[18198]: accepted connection
delta imapd[18198]: accepted connection  


delta:/usr/cyrus/bin # telnet localhost imap
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK delta Cyrus IMAP4 v2.1.3 server ready
logout
* BAD Invalid tag

I compiled and installed the BerkeleyDB.3.3 new on the server.

The IMAP-book I have talks about version 1.6 and before and
I read I could use 'logout' to end the telnet-session, but
that doesn´t exit the session.

Now that the server runs I can go on understanding the whole
thing....


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: cyrus imapd 2.1.3

2002-03-31 Thread Andreas Meyer

Hello!

Am 30 Mar 2002 12:53:05 + schrieb simon:


> > logout
> > * BAD Invalid tag

> type in 
> 
> 1 login  
> 2 select "INBOX"
> 3 logout
> 
> ( the numbers at the front are important and are required)

Thank you! I need docu about the options I can write to the
imapd.conf for Cyrus IMAP4 v2.1.3

I found that some options don´t work e.g defaultpartition and
umask. When I use them I cannot telnet to cyrus.

configdirectory: /var/imap
#defaultpartition default
partition-default: /var/spool/imap
admins: cyrus
#umask 027 
#srvtab: /var/imap/srvtab
allowanonymouslogin: no
#quotawarn 90
#timeout 30
#autocreatequota 1
#cleartextloginpause 5
sasl_passwd_check: sasldb
#sasl_pwcheck_method: sasldb
sievedir: /usr/sieve 

I cannot find any documentation about the imapd.conf :(


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



[no subject]

2002-04-02 Thread Andreas Meyer

Hello!

Who can tell me waht problem I have?

delta pipe[862]: fatal: pipe_comand: execvp /cyrus/bin/deliver: No such file or 
directory
delta postfix/pipe[861]: 6CD003E16: to=<[EMAIL PROTECTED]>, \
relay=cyrus, delay=1, status=bounced (Command died with status 1: "/cyrus/bin/deliver")

"deliver" is in /usr/cyrus/bin. Has the message above something to
do that there is a wrong pathinformation?


greets
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: your mail

2002-04-02 Thread Andreas Meyer

Hallo!

Am Tue, 2 Apr 2002 10:37:19 -0800 schrieb damm:

> > relay=cyrus, delay=1, status=bounced (Command died with status 1: 
>"/cyrus/bin/deliver")
> > 
> > "deliver" is in /usr/cyrus/bin. Has the message above something to
> > do that there is a wrong pathinformation?
> > 
> > 
> > greets
> Modify your master.cf to change to that /usr/cyrus/bin/deliver or /opt/cyrus or 
>whatever you
> installed it under.

Thank you!

Now I have another problem:

delta deliver[1635]: connect(/var/imap/socket/lmtp) failed: Connection refused

What could cause this one?

regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: your mail

2002-04-03 Thread Andreas Meyer

Hello!

Am Tue, 2 Apr 2002 23:07:11 -0800 schrieb damm:
> On Wed, Apr 03, 2002 at 08:49:01AM +0200, Simon Matter wrote:

> > Hm, I don't understand. I have the following in main.cf:
> > 
> > mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
> > 
> > If Cyrus imapd is stopped, I get the error you mentioned when I try to
> > deliver mail.

> That's fine, but master has to be running in order for lmtpd to work.

it is
 
> So you can pick either lmtp or the deliver command, either works.  
> I imagine equally as well, but if you want try mailbox_transport = cyrus
> 
> then in master.cf change it to use /usr/cyrus/bin/deliver or 
> wherever you keep your cyrus dir at.

I tried 'mailbox_transport = cyrus' as well as 
'mailbox_transport = lmtp:unix:/var/imap/socket/lmtp'
but still have an entry in /var/log/mail:

delta postfix/qmgr[1418]: E55633E5B: skipped, still being delivered 


I have entries like this in imapd.conf:

notifysocket: /var/imap/socket/notify
lmtpsocket: /var/imap/socket/lmtp
idlesocket: /var/imap/socket/idle

The testmessage I sent to the user andreas@ ain´t
delivered.


Another problem is with the user "snips": /var/log/imapd.log
badlogin: gamma.meyer.home[192.168.1.3] plaintext snips SASL(-4): \
no mechanism available: checkpass failed

Here I tried in imapd.conf:

sasl_passwd_check: sasldb
#sasl_pwcheck_method: pwcheck
#sasl_pwcheck_method: saslauthd

The user "snips" has an entry in sasldb2.

delta:/usr # ls -l /etc |grep sasldb2
-rw-r-   1 cyrusmail12288 Apr  3 12:25 sasldb2

delta imapd[2047]: badlogin: gamma.meyer.home[192.168.1.3] plaintext \
snips SASL(-13): authentication failure: checkpass failed  

This stuff is all very confusing to me. I wonder if I forgot
to compile in something in postfix or imap

sigh
 

regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: your mail

2002-04-03 Thread Andreas Meyer

Hello!

Am Wed, 3 Apr 2002 10:09:44 -0800 schrieb damm:

> Ok, do you have saslauthd running?  and in what manner do you have it running? ie 
>saslauthd 
> -a pam? or shadow? or getpwent?

now it runs 
ls -l /var/state/saslauthd
total 1
srwxrwxrwx   1 root root0 Apr  3 22:07 mux
-rw---   1 root root0 Apr  3 22:07 mux.accept
-rw---   1 root root6 Apr  3 22:07 mux.pid  

 
> Man saslauthd and see the other options, sounds like you dont have pwcheck or 
>saslauthd 
> running which could be a problem.

no such manual

[...]

> > sasl_passwd_check: sasldb
> > #sasl_pwcheck_method: pwcheck
> > #sasl_pwcheck_method: saslauthd
> > 
> > The user "snips" has an entry in sasldb2.
> > 
> > delta:/usr # ls -l /etc |grep sasldb2
> > -rw-r-   1 cyrusmail12288 Apr  3 12:25 sasldb2

[...]

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

> as you notice by default lmtplisten is disabled...
> 
> Maybe that's why also?  it's a thought.
> 
> Good luck

Man, you made my day! The lmtpunuix-line was commented. I have
a socket now!

I´ll try to solve the problem with this:
plaintext snips SASL(-13): authentication failure: checkpass fail

It´s still there although saslauthd is running as 'saslauthd -shadow'
The user "snips" exits on the server.

cyradm -user cyrus localhost
Password:
localhost> lm
user.andreas (\HasChildren)   user.miles.Drafts (\HasNoChildren)
user.andreas.Drafts (\HasNoChildren)  user.miles.Sent (\HasNoChildren)
user.andreas.Sent (\HasNoChildren)user.miles.Trash (\HasNoChildren)
user.andreas.Trash (\HasNoChildren)   user.miles.inbox (\HasNoChildren)
user.andreas.inbox (\HasNoChildren)   user.snips (\HasNoChildren)
user.miles (\HasChildren)


regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Inbox and things

2002-04-29 Thread Andreas Meyer

Hi friends!

imtest -m login -a andreas localhost
C: C01 CAPABILITY
S: * OK delta Cyrus IMAP4 v2.1.3 server ready

I´m testing Cyrus with squirrelmail (very nice) at the moment 
and have a question about the INBOX:

Ordner
  Letztes Update: Mon, 17:21
   (Ordnerliste aktualisieren)

- INBOX (1/15)
Drafts (0/0)
Sent (0/12)
Trash (0/0)
inbox (0/0)
  - SuSE-Liste (0/0)
  Archiv (0/0)

Is there a way to rename the top-folder named "INBOX" to 
something else? Do I have to set a filter to let the incoming
mail be delivered to the child "inbox"?

uuups, this were two questions ;)


Have a nice day!
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



Re: Cyrus 2.1.4 :Autentication problems

2002-05-19 Thread Andreas Meyer

Hallo!

Am Fri, 17 May 2002 12:48:21 +0200 schrieb Margarita Sanz:

> I have configure for Cyrus-SASL 2.1.2 with:
>  --disable-anon --enable-krb4=no --enable-plain
> 
> and for Cyrus-imapd 2.1.4 with:
>  --with-auth=unix--without-krb  --with-sasldir=/usr/lib/sasl2
> --with-tcl=/usr/lib/tcl


Is /etc/saslbd2 owned by cyrus.mail?


Regards
-- 

  Andreas Meyer  http://home.wtal.de/MeineHomepage



virtual domains and cyrus 2.1.12

2003-03-10 Thread Andreas Meyer
Hi!

Just subscribed to the list because I wanted to try out cyrus's
virtual domain support.
I compiled and installed version 2.1.12. The tools like mkimap
were not installed automatically.

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK eta Cyrus IMAP4 v2.1.12 server ready
. logout
* BYE LOGOUT received
. OK Completed

According to the install-virtualdomains.html I made a:

eta:/home/sourcen/cyrus-imapd-2.1.12/tools # ./mkimap -d meyer.foo
can't open -d at (eval 1) line 15,  line 82.

eta:/home/sourcen/cyrus-imapd-2.1.12/tools # su cyrus
[EMAIL PROTECTED]:/home/sourcen/cyrus-imapd-2.1.12/tools> ./mkimap -d meyer.foo
can't open -d at (eval 1) line 15,  line 82.

I also read man imapd.conf and cannot find a notice about
virtdomains. My imapd.conf looks like this:
...
sasl_pwcheck_method: auxprop
defaultdomain: meyer.home
virtdomains: meyer.foo compdot.foo 

So my question is, are virtual domains supported, do I have
to wait or will this never happen?

Another thing I noticed:
master[970]: setrlimit: Unable to set file descriptors limit to -1: \
Operation not permitted
master[970]: retrying with 1024 (current max)
master[970]: process started

Is this ok or do I have to worry?

-- 

  Andreas Meyer

Object Class   Common Name   userPassword
posixAccount   andreas   {SSHA}hpyqObx1/BXbKFgXoqCayoGsvIgPYiVc


pam_mysql and cyrus_sasl

2003-03-12 Thread Andreas Meyer
Hello!

I have a running Cyrus 2.1.12, Postfix 2.0.5 and cyrus-sasl.2.1.12.
I set up php-webcyradm with database mail. postfix delivers mail to
cyrus without a problem. I cannot get the mail with squirrelmail or
sylpheed.

eta:/var/log # sasldblistusers2
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: cmusaslsecretOTP
[EMAIL PROTECTED]: cmusaslsecretOTP

eta:/var/log # telnet localhost 143
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK localhost Cyrus IMAP4 v2.1.12 server ready
. login cyrus cyruspass
. OK User logged in
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.

eta:/var/log # telnet localhost 143
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK localhost Cyrus IMAP4 v2.1.12 server ready
. login karl karlpass
. NO Login failed: authentication failure
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.

The according log:

eta saslauthd[983]: pam_sm_authenticate called.
eta saslauthd[983]: dbuser changed.
eta saslauthd[983]: dbpasswd changed.
eta saslauthd[983]: host changed.
eta saslauthd[983]: database changed.
eta saslauthd[983]: table changed.
eta saslauthd[983]: usercolumn changed.
eta saslauthd[983]: passwdcolumn changed.
eta saslauthd[983]: crypt changed.
eta saslauthd[983]: db_connect  called.
eta saslauthd[983]: returning 0 .
eta saslauthd[983]: db_checkpasswd called.
eta saslauthd[983]: pam_mysql: where clause =
eta saslauthd[983]: SELECT password FROM accountuser WHERE username='cyrus'
eta saslauthd[983]: sqlLog called.
eta saslauthd[983]: pam_mysql: error: sqllog set but logtable not set
eta saslauthd[983]: pam_mysql: error: sqllog set but logmsgcolumn not set
eta saslauthd[983]: pam_mysql: error: sqllog set but logusercolumn not set
eta saslauthd[983]: pam_mysql: error: sqllog set but loghostcolumn not set
eta saslauthd[983]: pam_mysql: error: sqllog set but logtimecolumn not set
eta saslauthd[983]: returning 0 .
eta saslauthd[983]: returning 0.
eta saslauthd[982]: pam_sm_authenticate called.
eta saslauthd[982]: dbuser changed.
eta saslauthd[982]: dbpasswd changed.
eta saslauthd[982]: host changed.
eta saslauthd[982]: database changed.
eta saslauthd[982]: table changed.
eta saslauthd[982]: usercolumn changed.
eta saslauthd[982]: passwdcolumn changed.
eta saslauthd[982]: crypt changed.
eta saslauthd[982]: db_connect  called.
eta saslauthd[982]: returning 0 .
eta saslauthd[982]: db_checkpasswd called.
eta saslauthd[982]: pam_mysql: where clause =
eta saslauthd[982]: SELECT password FROM accountuser WHERE username='karl'
eta saslauthd[982]: pam_mysql: select returned more than one result
eta saslauthd[982]: returning 7 after db_checkpasswd.
eta saslauthd[982]: AUTHFAIL: user=karl service=imap realm= [PAM auth error] 

I made so many tests and roundabouts, I do not longer understand what
is going on. The users cyrus and karl exist in sasldb2 and also in the
database mail (MySQL) with clearpassword.


eta:/var/log # saslpasswd2 -c andreas
Password:
Again (for verification):
eta:/var/log # telnet localhost 143
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK localhost Cyrus IMAP4 v2.1.12 server ready
. login cyrus cyruspass
. OK User logged in
. login andreas andreaspass # same as the cyruspass
. BAD Already logged in
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.

Why is andreas already logged in? due to the same passwd like cyrus?

Any help appreciated. Completly clueless.

-- 

  Andreas Meyer

Object Class   Common Name   userPassword
posixAccount   andreas   {SSHA}hpyqObx1/BXbKFgXoqCayoGsvIgPYiVc


Re: pam_mysql and cyrus_sasl

2003-03-12 Thread Andreas Meyer
Hello!

Am Wed, 12 Mar 2003 15:01:36 -0500 schrieb John Alton Tamplin:

> >eta saslauthd[982]: pam_mysql: where clause =
> >eta saslauthd[982]: SELECT password FROM accountuser WHERE username='karl'
> >eta saslauthd[982]: pam_mysql: select returned more than one result
> >eta saslauthd[982]: returning 7 after db_checkpasswd.
> >eta saslauthd[982]: AUTHFAIL: user=karl service=imap realm= [PAM auth error] 
> >
> It looks like you have multiple rows in your accountuser table that have 
> username='karl' (you should probably have a unique index on it anyway), 
> or else accountuser is a view that is matching more than one row.  The 
> error message is telling you exactly what the problem is -- when it 
> looks up the username in your mysql table, it is getting more than one 
> row so it doesn't know what to use to validate the login.

ok, I installed the database newly according to the docs of php-webcyradm
and the problem "pam_mysql: select returned more than one result" is gone.
Seems I was reading an obsolete docu.

But the problem with squirrelmail or another MUA is still there:
eta imapd[2041]: accepted connection
eta imapd[2041]: badlogin: localhost[127.0.0.1] plaintext andreas SASL(-13): \
 authentication failure: checkpass failed
eta master[968]: process 2041 exited, status 0
eta master[2050]: about to exec /usr/cyrus/bin/imapd
eta imap[2050]: executed
eta imapd[2050]: accepted connection
eta imapd[2050]: badlogin: localhost[127.0.0.1] plaintext karl SASL(-13): \
 authentication failure: checkpass failed

sigh, don't know what to do. Postfix delivers without a problem.

Return-Path: <[EMAIL PROTECTED]>
Received: from eta.meyer.home ([unix socket])
by eta.meyer.home (Cyrus v2.1.12) with LMTP; Wed, 12 Mar 2003 23:32:08 +0100
X-Sieve: CMU Sieve 2.2
Received: from lo (localhost [127.0.0.1])
by eta.meyer.home (Postfix 2.0.5 on eta.meyer.home) with ESMTP id 138898825
for <[EMAIL PROTECTED]>; Wed, 12 Mar 2003 23:31:44 +0100 (CET)
Message-Id: <[EMAIL PROTECTED]>
Date: Wed, 12 Mar 2003 23:31:45 +0100 (CET)
From: [EMAIL PROTECTED]
To: undisclosed-recipients:;
 
asdf

Postfix is using the same database in mysql and also is using saslauthd. 
If I only knew how to track this problem down.

# telnet localhost 143
Connected to localhost.
Escape character is '^]'.
* OK eta.meyer.home Cyrus IMAP4 v2.1.12 server ready
. login andreas andreaspass
. NO Login failed: authentication failure

What do I not understand here? Is this kind of authetication
not using saslauthd? I have this entry in imapd.conf:
sasl_pwcheck_method: saslauthd
allowplaintext: yes
sasl_mech_list: PLAIN
servername: localhost


eta:/etc # /usr/local/bin/imtest -m login -a andreas localhost
S: * OK eta.meyer.home Cyrus IMAP4 v2.1.12 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS \
 NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN \
 MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN andreas {8}
S: + go ahead
C: 
S: L01 NO Login failed: authentication failure
Authentication failed. generic failure
Security strength factor: 0

Postfix clearly has tables to look in for delivery.
hm this seems to become a sysyphuswork. Problem seems to be
with pam although I cannot see where.


-- 

  Andreas Meyer

Object Class   Common Name   userPassword
posixAccount   andreas   {SSHA}hpyqObx1/BXbKFgXoqCayoGsvIgPYiVc