No way to get access via IMAP : REALLY NOTHING WORKS!

2003-02-02 Thread Dennis Leist
I really need assistance in installing cyrus imap!
Nothing works by now.

1. cyradm CRAM-MD5
Before using cyus-sasl2.1.11 I only got acces via:

# cyradm --user cyrus --auth CRAM-MD5 localhost

At that time I could set up some mailboxes.

Not even this works by now!
I only get user not found: no secret in database in /v/m/imap.log
Though I have set up cyrus-Passwords !

2.  cyradm LOGIN
I _never_ could get in via PLAIN, LOGIN!

3. I _never_ got access to existing mailboxes via IMAP.

These lines only in /v/m/imap.conf:
badlogin: ... plaintext user1 SASL(-1): generic failure: checkpass failed
badlogin: ... CRAM-MD5 [SASL(-13): user not found: no secret in database]
I repeat PASSWORDS are SET!

4. POP3 access never worked.

Reason unknown.
NO MESSAGES available.
POP3 access set in /etc/cyrus.conf

5. Mailbox transport via TCP socket only!
I need to set mailbox_transport in /etc/postfix/main.cf this way:
mailbox_transport = lmtp:localhost

It _never_ worked by using unix socket:
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
connection refused was the answer in /v/l/mail



I don't get the WHOLE SOFTWARE work more verbosely.
No efficient links by google.
DOCS don't mention troubles!


SASL2.2.11 configure options:
# ./configure --with-openssl=/usr/local/ssl --enable-plain --enable-cram 
--enable-login --enable-digest --enable-otp --enable-anon
cyrus-imap2.1.10 options:
./configure --with-openssl=/usr/local/ssl

Using postfix: and debian 2.2.19pre17.

What else do you need?

/etc/cyrus.conf
snip
SERVICES {
 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

 lmtp  cmd=lmtpd -a listen=localhost:lmtp
 lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp
}
/snip

/etc/imap.conf
snip
partition-news: /var/spool/cyrus/news
newsspool: /var/spool/news
admins: cyrus
imap_admins: cyrus
sasl_pwcheck_method: saslauthd
allowplaintext: yes
allowanonymouslogin: no
popminpoll: 1
umask: 077
/snip




SOLVED was: Re: cyradm: Login failed: generic failure at ... Cyrus/IMAP/Admin.pm

2003-02-01 Thread Dennis Leist
THX for your help!

I think I made it!

Mike O'Rourke schrieb:




Hi,

still having troubles with cyrus!
MAJOR PROBLEM : I cannot set up mailboxes.

Getting access to cyrus gives me:

# cyradm --user cyrus --auth login localhost
IMAP Password:
  Login failed: generic failure at
/usr/lib/perl/5.6.1/Cyrus/IMAP/Admin.pm line 114
cyradm: cannot authenticate to server with login as cyrus



This is exactly the error I get when I try --auth login. Try with 
--auth plain. If that is rejected as an unworthy mech, see if 
cyrus-sasl was compiled with the --enable-plain option. Failing that 
you can try it with --auth CRAM-MD5. 

I need these configure settings :
./configure --with-openssl=/usr/local/ssl --enable-plain --enable-cram 
--enable-login

But i have only access by using:

# cyradm --user cyrus --auth CRAM-MD5 localhost

[...]







FYI: Makefile: SITEPREFIX is wrong! [was: imapd (2.1.11) : Strangedirs while installing : /usr/local/local/]

2003-02-01 Thread Dennis Leist
 Hi,

I solved my problems with /usr/local/local paths while 'make install'.

Dennis Leist wrote:
I tried to compile  install cyrus-sasl-2.1.10 on a debian system 
(Kernel: 2.2.19pre17) from scratch.  Prior to that I installed 
openssl-0.9.7.
After having some problems I made sasl2 run.

My configure options for the IMAP are: --with-openssl=/usr/local/ssl
Even setting the paths for the configure script didn't help.

I don't know why but I got the following while 'make install':
Installing /usr/local/local/lib/perl/5.6.1/auto/Cyrus/IMAP/IMAP.so
Installing /usr/local/local/man/man1/cyradm.1p
Writing /usr/local/local/lib/perl/5.6.1/auto/Cyrus/IMAP/.packlist
Appending installation info to 
/usr/local/local/lib/perl/5.6.1/perllocal.pod
Installing 
/usr/local/local/lib/perl/5.6.1/auto/Cyrus/SIEVE/managesieve/managesieve.so
Writing 
/usr/local/local/lib/perl/5.6.1/auto/Cyrus/SIEVE/managesieve/.packlist
Appending installation info to 
/usr/local/local/lib/perl/5.6.1/perllocal.pod

While examining  the Makefiles I found out that  SITEPREFIX was defined as:
SITEPREFIX=  $(PREFIX)/local
(with  $(PREFIX)=/usr/local)

I erased the /local suffix in each Makefile and repeated a 'make install'.

Hope You have better luck



Re: 'Generic Error' when trying to use cyradm

2003-02-01 Thread Dennis Leist
Buh Snarf schrieb:


When I try to login with cyradm I get this error.

[root@tatty admin]# cyradm localhost
IMAP Password:
 Login failed: generic failure at 
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm 
line 114
cyradm: cannot authenticate to server with  as admin
[root@tatty admin]#


Also in my Authentication logs I get :

Feb 122:40:24 imapd cannot connect to saslauthd server: No 
such file or directory 

Did You compile imapd with sasl support?
Did You even install sasl?
You need to post some config information.

ccD





postfix: lmtp: connection refused

2003-02-01 Thread Dennis Leist
Hi again,

Delivering mails to all users ends by the following errs.
Feb  2 02:06:06 helium postfix/qmgr[4988]: 4421BE9: 
from=[EMAIL PROTECTED], size=601, nrcpt=1 (queue active)
Feb  2 02:06:06 helium postfix/qmgr[4988]: 47ACFF2: from=, size=1798, 
nrcpt=1 (queue active)
Feb  2 02:06:06 helium postfix/qmgr[4988]: AF9B7F7: 
from=[EMAIL PROTECTED], size=1717, nrcpt=1 (queue active)
Feb  2 02:06:06 helium postfix/lmtp[5424]: connection established
Feb  2 02:06:06 helium postfix/lmtp[5424]: master_notify: status 0
Feb  2 02:06:06 helium postfix/lmtp[5424]: deliver_request_initial: send 
initial status
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr status = 0
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: flags
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: flags
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 3
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: queue_name
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: queue_name
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: active
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: queue_id
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: queue_id
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 4421BE9
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 124
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: size
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: size
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 601
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: nexthop
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: nexthop
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 
unix:/var/lib/cyrus/socket/lmtp
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: sender
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: sender
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 
[EMAIL PROTECTED]
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: errors-to
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: errors-to
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 
[EMAIL PROTECTED]
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: return-receipt
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: 
return-receipt
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: (end)
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: time
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: time
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 1043731771
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 4294967295
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: recipient
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: recipient
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 
[EMAIL PROTECTED]
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp socket: wanted 
attribute: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute name: offset
Feb  2 02:06:06 helium postfix/lmtp[5424]: input attribute value: 0
Feb  2 02:06:06 helium postfix/lmtp[5424]: deliver_request_get: file 
active/4/4/4421BE9
Feb  2 02:06:06 helium postfix/lmtp[5424]: deliver_message: from 
[EMAIL PROTECTED]
Feb  2 02:06:06 helium postfix/lmtp[5424]: lmtp_connect_unix: trying: 
/var/lib/cyrus/socket/lmtp...
Feb  2 02:06:06 helium postfix/lmtp[5424]: connect to subsystem 
private/defer
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr nrequest = 0
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr flags = 0
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr queue_id = 4421BE9
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr recipient = 
[EMAIL PROTECTED]
Feb  2 02:06:06 helium postfix/lmtp[5424]: send attr reason = connect to 
/var/lib/cyrus/socket/lmtp[/var/lib/cyrus/socket/lmtp
]: Connection refused
...

You may need to know: helium == lithium
I have set up a mailbox for user sybock via cyradm (realm: helium, 
helium.epag.net and localhost)

I have an lmtp entry in :
- etc/postfix/main.cf:
mailbox_transport = lmtp:unix:/var/lib/cyrus/socket/lmtp
-/etc/cyrus.conf:
lmtpunix cmd=lmtpd listen=/var/lib/cyrus/socket/lmtp

postfix is not running under chroot!

Can anybody help?

ccD



CYRADM: badlogin: OTP [SASL(-13): user not found: no OTP secret indatabase] BUT sasldblistuser2 proves passwd is set

2003-01-30 Thread Dennis Leist
Dear all,

Please help in this issue:

Trying set up mailboxes via cyradm

# cyradm --user cyrus localhost

always ends in

# cyradm: cannot authenticate to server with  as cyrus

I get  /v/l/imapd.conf:

Jan 30 12:14:00 helium imapd[17700]: accepted connection
Jan 30 12:14:01 helium imapd[17700]: badlogin: localhost[127.0.0.1] OTP 
[SASL(-13): user not found: no OTP secret in database]

But sasldblistuser2 shows:

# sasldblistusers2
cyrus@helium: userPassword
cyrus@helium: cmusaslsecretOTP

What can I do?


I have cyrus-sasl-2.1.10, cyrus-imapd-2.1.11 and openssl-0.9.7.





Re: CYRADM: badlogin: OTP [SASL(-13): user not found: no OTP secret indatabase] BUT sasldblistuser2 proves passwd is set

2003-01-30 Thread Dennis Leist
Ken Murchison schrieb:


Dennis Leist wrote:


Dear all,

Please help in this issue:

Trying set up mailboxes via cyradm

# cyradm --user cyrus localhost



Try:

# cyradm --user cyrus --auth login localhost

This leads to:

IMAP Password:
  Login failed: generic failure at 
/usr/lib/perl/5.6.1/Cyrus/IMAP/Admin.pm line 114
cyradm: cannot authenticate to server with login as cyrus





always ends in

# cyradm: cannot authenticate to server with  as cyrus

I get  /v/l/imapd.conf:

Jan 30 12:14:00 helium imapd[17700]: accepted connection
Jan 30 12:14:01 helium imapd[17700]: badlogin: localhost[127.0.0.1] OTP
[SASL(-13): user not found: no OTP secret in database]

But sasldblistuser2 shows:

# sasldblistusers2
cyrus@helium: userPassword
cyrus@helium: cmusaslsecretOTP



Did you specifically tell saslpasswd2 to use ony 'helium' as the realm,

I added cyrus with:
# saslpasswd2 -c cyrus

and
# saslpasswd2 -u helium.epag.net -c cyrus.

Another account with FQDN:

# saslpasswd2 -c -u helium.epag.net cyrus

didn't help.

or is the hostname on this machine not fully qualified?

The host is fully qualified.


By default, Cyrus appends the fully qualified hostname to the userid
when looking up the secret in sasldb2.  If you have a mismatch in
realms, it won't find the secret.






imapd (2.1.11) : Strange dirs while installing : /usr/local/local/???

2003-01-26 Thread Dennis Leist
I tried to compile  install cyrus-sasl-2.1.10 on a debian system 
(Kernel: 2.2.19pre17) from scratch.  Prior to that I installed 
openssl-0.9.7.
After having some problems I made sasl2 run.

My configure options for the IMAP are: --with-openssl=/usr/local/ssl

I don't know why but I got the following while 'make install':
Installing /usr/local/local/lib/perl/5.6.1/auto/Cyrus/IMAP/IMAP.so
Installing /usr/local/local/man/man1/cyradm.1p
Writing /usr/local/local/lib/perl/5.6.1/auto/Cyrus/IMAP/.packlist
Appending installation info to /usr/local/local/lib/perl/5.6.1/perllocal.pod
Installing 
/usr/local/local/lib/perl/5.6.1/auto/Cyrus/SIEVE/managesieve/managesieve.so
Writing 
/usr/local/local/lib/perl/5.6.1/auto/Cyrus/SIEVE/managesieve/.packlist
Appending installation info to /usr/local/local/lib/perl/5.6.1/perllocal.pod

I already tried to define the concerning paths via configure options but 
that didn't help!

Can anybody help?

THY in advance