Hara:

I tried a copy of your environment and the tests I sugested you 
on a fresh install of Cyrus on my devel system this morning

I must correct myself, the /etc/sasldb perms bits I wrote in the 
previous message. The package sets them to 0600 so ls -l must give

 -rw-------    1 cyrus    mail        12530  9  4 13:36 /etc/sasldb

Again, this is how the package sets them, I'm investigating
if it breaks integration with Sendmail or must be changed 
to something more useful (bugs #37272 and #20862 in 
Red Hat's Bugzilla at http://bugzilla.redhat.com/bugzilla 
contains related info as sugested by other users of the 
Cyrus packages).

When I tried imtest I encountered the same error message

 S: A01 NO authentication failure
 Authentication failed. generic failure
 Security strength factor: 128

After fiddling a bit I found that I must pass also the -a switch to
imtest

 [root@imap /root]# imtest -u cyrususer -a cyrususer localhost

to achieve success.

I don't know the reason. I hope it helps you.

[EMAIL PROTECTED] wrote:
> Thank you for your reply, all person who gave me help :)
> 
> I obeied your suggestion, but still only to fail...
> 
> > o Try to create a cyrus system user (uid 76) and a shadow system 
> >   group (gid 76).
> > 
> > o Add user cyrus to group shadow and to group mail (supplementary group)
> 
> [root@imap /root]# id cyrus
> uid=76(cyrus) gid=12(mail) groups=12(mail),76(shadow)
>  
> > o Create the /etc/sasldb file owned by cyrus/mail and 640 perms
> 
> [root@imap /root]# ls -l /etc/sasldb 
> -rw-r-----    1 cyrus    mail        12530  9  4 13:36 /etc/sasldb
> 
> > A) Create the cyrus user to Cyrus (actually SASL); you
> >    can do it using saslpasswd in the same way you used it
> >    to create cyrususer. cyrus is the only user able to create 
> >    mailboxes as indicated by the "admins: cyrus" line in 
> >    your /etc/imapd.conf file. I thin you don't need 
> >    to create a mailbox for this cyrus user.
> 
> [root@imap /root]# saslpasswd cyrus
> Password: *****                         <-- input 'cyrus' 
> Again (for verification): *****         <-- input 'cyrus'
> 
> > B) With the server running, use cyradm to connect to it (see
> >    the man page for switches), login as cyrus using the 
> >    password you choose in step A)
> 
> [root@imap /root]# /usr/cyrus/bin/master &
> 
> > C) create the the mailbox for the cyrususer
> > 
> >      cm user.cyrususer
> > 
> >    and quit cyradm
> 
> [root@imap /root]# cyradm --user cyrus localhost 
> Please enter your password: 
> imap.s1.itd.nes.nec.co.jp> cm user.cyrususer
> imap.s1.itd.nes.nec.co.jp> quit
> 
> The log /var/log/messges says next.
> 
> Sep  4 14:27:36 imap imapd[19810]: login:
imap.s1.itd.nes.nec.co.jp[127.0.0.1] cyrus DIGEST-MD5 User logged in
> 
> so sasldata base seems to work fine. 
> 
> > D) Now you can try your imtest experiments again
> 
> [root@imap /root]# imtest -p imap -u cyrususer localhost
> C: C01 CAPABILITY
> S: * OK imap.s1.itd.nes.nec.co.jp Cyrus IMAP4 v2.0.16 server ready
> S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS ID
NO_ATOMIC_RENAME UNSELECT MULTIAPPEND SORT THREAD=ORDEREDSUBJECT
THREAD=REFERENCES IDLE AUTH=DIGEST-MD5 AUTH=CRAM-MD5 X-NETSCAPE
> S: C01 OK Completed
> C: A01 AUTHENTICATE DIGEST-MD5
> S: +
cmVhbG09ImltYXAuczEuaXRkLm5lcy5uZWMuY28uanAiLG5vbmNlPSJRdnBscnV0WVJSSEdla3ZnZmpFYXFueXBEd0hISlRVellGMGtJZFRweVFZPSIscW9wPSJhdXRoLGF1dGgtaW50LGF1dGgtY29uZiIsY2lwaGVyPSJyYzQtNDAscmM0LTU2LHJjNCxkZXMsM2RlcyIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=
> Please enter your password: 
> C:
dXNlcm5hbWU9InJvb3QiLHJlYWxtPSJpbWFwLnMxLml0ZC5uZXMubmVjLmNvLmpwIixhdXRoemlkPSJjeXJ1c3VzZXIiLG5vbmNlPSJRdnBscnV0WVJSSEdla3ZnZmpFYXFueXBEd0hISlRVellGMGtJZFRweVFZPSIsY25vbmNlPSJqZVJKd1h5REthRjcrRHVYOHozRW5RZDBtTjJ2N0E2QmNqdDE2TDB3QmRrPSIsbmM9MDAwMDAwMDEscW9wPWF1dGgtY29uZixjaXBoZXI9InJjNCIsY2hhcnNldD11dGYtOCxkaWdlc3QtdXJpPSJpbWFwL2ltYXAuczEuaXRkLm5lcy5uZWMuY28uanAiLHJlc3BvbnNlPTFiYjc3NWY1NzAyNDE0OWUxYmU2Nzk3OTE5YjBkYmMz
> S: A01 NO authentication failure
> Authentication failed. generic failure
> Security strength factor: 128
> 
> The log /var/log/messges says next.
> 
> Sep  4 15:03:47 imap imapd[19878]: badlogin:
imap.s1.itd.nes.nec.co.jp[127.0.0.1] DIGEST-MD5 authentication failure
> 
> 
> I could succeed to create mailbox with cyradm 'cm' command and delete
> mailbox with cyradm 'dm' command. 
> 
> I don't know what's wrong... confusing further... I am going on
> investigating this matter with some document, but if you could give me
> more information, I appreciated it.
> 
> --hara

--
Ramiro



____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1

Reply via email to