I forget to send this email to the mailling list, so here you have it.

---------- Forwarded message ----------

Thanks a lot for your answer Wolfgang.

Let me point you in my actual situation:

I have downloaded the latest version of imapd-cyrus: 2.0.15. (tgz format)
I wanted to install the sasl libraries from tgz source, but I prefer to
use the rpm that come with the distribution because I have a lot of
dependences with other packages. These are the sasl-packages that I use:

        cyrus-sasl-devel-1.5.24-17
        cyrus-sasl-1.5.24-17

Well After that I follow the instructions that comes with the tgz tarball:

1. configure --disable-sieve  // if I don't do that, configure fails

2. make depend

3. make all CFLAGS=-O

4. create an user id:cyrus, group: mail

5. add the syslog lines to set up the log files

6. create this /etc/imapd.conf
          configdirectory: /var/imap
          partition-default: /var/spool/imap
          admins: curtj abell
          sasl_pwcheck_method: passwd

7. setup to user cyrus.mail and permisions 750 this directories:

          /var/imap
          /var/spool/imap

8. I change to the user cyrus and run the tools/mkimap file that comes in
the cyrus' tarball. (NOTE: of course this file have root.root attributes
so I copy it to /tmp and change the owner to cyrus.mail).

9. Change attributes of this files:
         cd /var/imap
         chattr +S user quota user/* quota/*
         chattr +S /var/spool/imap /var/spool/imap/*

10. I remove the xinetd files regarding to imapd and pop3

11. Copy a "pre-builded" cyrus.conf file from cyrus' tarball:
        cp master/conf/normal.conf /etc/cyrus.conf

12. Finally I launch the master daemon as root:

        /usr/cyrus/bin/master

And this is what I get from my /var/log/imapd.log:

Jul 10 14:35:22 develop2 master[25508]: process started
Jul 10 14:35:22 develop2 master[25509]: about to exec
/usr/cyrus/bin/ctl_mboxlist
Jul 10 14:35:22 develop2 master[25508]: process 25509 exited, status 75
Jul 10 14:35:22 develop2 master[25510]: about to exec
/usr/cyrus/bin/ctl_deliver
Jul 10 14:35:22 develop2 master[25508]: process 25510 exited, status 75
Jul 10 14:35:22 develop2 master[25508]: ready for work
Jul 10 14:35:22 develop2 master[25511]: about to exec
/usr/cyrus/bin/ctl_mboxlist
Jul 10 14:35:22 develop2 master[25508]: process 25511 exited, status 75
Jul 10 14:35:22 develop2 master[25512]: about to exec
/usr/cyrus/bin/ctl_deliver
Jul 10 14:35:22 develop2 master[25508]: process 25512 exited, status 75

Directories and files form cyrus to up (/usr/cyrus && /usr/cyrus/bin) has
this permisions:
                permisions: drwx------
                user:       cyrus.mail

I say that because, I don't know why but the /usr/cyrus was of the user
root, group root, so the master gave me errors when it was trying
execute some files on the bin directory.

Anyway, please, A little of help.......

thank you again.. I'll be waiting your news.....


On Tue, 10 Jul 2001, Wolfgang Schäfer wrote:

> hi david,
>
> check your ./configure before compile time.
> attached you can find my config.status files!
> importand i think is to config sasl with:
> ./configure  --with-pwcheck_method=shadow --enable-plain \
> --disable-cram --disable-krb4 --disable-digest
> ... or anybody other opinion!
>
> regard´s wolfgang
>
>
> David wrote:
> >
> > I tested also using shadow, but didn't work.
> >
> > Any other idea?
> >
> > On Mon, 9 Jul 2001, Wolfgang Schäfer wrote:
> >
> > > in your imap.conf is a config error!
> > > if you want to use shadow as auth method you should use:
> > >
> > > # The mechanism used by the server to verify  plaintext
> > > # passwords.    Possible   values  also  include  "ker­
> > > # beros_v4", "passwd", and "shadow".
> > > # sasl_pwcheck_method: PAM
> > > sasl_pwcheck_method: shadow
> > >
> > > take al look at  man imapd.conf ... it´s the docu!!!!
> > >
> > > regard wolfgang
> > >
> > >
> > > David wrote:
> > > >
> > > > Hi to everybody:
> > > >
> > > > I'm trying to setup a imap in a linuxbox. I have cyrus software
> > > > listening on ports pop3 and imap.
> > > >
> > > > I use this rpm packages:
> > > >
> > > >         cyrus-sasl-1.5.24-17
> > > >         cyrus-imapd-2.0.9-3
> > > >
> > > > Here you have the contents of /etc/imap.conf
> > > >
> > > > [ develop2 ] ~ # cat /etc/imapd.conf
> > > > configdirectory: /var/imap
> > > > partition-default: /var/spool/imap
> > > > admins: cyrus
> > > > allowanonymouslogin: no
> > > > sasl_pwcheck_method: pam
> > > >
> > > > Here the /etc/cyrus.conf
> > > > ------------------------------------
> > > > START {
> > > >   # do not delete these entries!
> > > >   mboxlist  cmd="ctl_mboxlist -r"
> > > >   deliver   cmd="ctl_deliver -r"
> > > > }
> > > >
> > > > # UNIX sockets start with a slash and are put into /var/imap/socket
> > > > SERVICES {
> > > >   # add or remove based on preferences
> > > >   imap      cmd="/usr/cyrus/bin/imapd" listen="imap" prefork=0
> > > >   imaps     cmd="/usr/cyrus/bin/imapd -s" listen="imaps" prefork=0
> > > >   pop3      cmd="/usr/cyrus/bin/pop3d" listen="pop3" prefork=0
> > > >   pop3s     cmd="/usr/cyrus/bin/pop3d -s" listen="pop3s" prefork=0
> > > >   sieve     cmd="/usr/cyrus/bin/timsieved" listen="sieve" prefork=0
> > > >
> > > > # at least one LMTP listener is required for proper delivery
> > > > # lmtp      cmd="lmtpd" listen="lmtp" prefork=0
> > > >   lmtpunix  cmd="/usr/cyrus/bin/lmtpd" listen="/var/imap/socket/lmtp"
> > > > prefork=0
> > > > }
> > > >
> > > > EVENTS {
> > > >   # this is required
> > > >   checkpoint    cmd="ctl_mboxlist -c" period=30
> > > > }
> > > > ----------------------------
> > > >
> > > > Well, after that, I launch the cyrus daemon:
> > > >
> > > > [ develop2 ] ~ # ps -ax | grep cyrus
> > > > 30464 pts/0    S      0:00 /usr/cyrus/bin/master
> > > >
> > > > Then, I make this test:
> > > > ----------------
> > > > # telnet localhost 110
> > > > Trying 127.0.0.1...
> > > > Connected to develop2.iwith.org.
> > > > Escape character is '^]'.
> > > > +OK HOSTNAME Cyrus POP3 v2.0.9 server ready
> > > > user USER
> > > > +OK Name is a valid mailbox
> > > > pass HISPASSWD
> > > > -ERR Invalid login
> > > > ----------------
> > > >
> > > > Of course, the USER and PASSWD that I write are correct in the system.
> > > >
> > > > By the way If I make the same test against IMAP port this is the
> > > > output from that I receive from the server:
> > > >
> > > > ----------------------------------------
> > > > [ develop2 ] # imtest -m login -a USER localhost
> > > > C: C01 CAPABILITY
> > > > S: * OK HOSTNAME Cyrus IMAP4 v2.0.9 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
> > > > Password:
> > > > C: L01 LOGIN USER {4}
> > > > + go ahead
> > > > C: <omitted>
> > > > L01 NO Login failed: authentication failure
> > > > Authentication failed. generic failure
> > > > Security strength factor: 0
> > > > . logout
> > > > * BYE LOGOUT received
> > > > . OK Completed
> > > > Connection closed.
> > > > --------------------------------
> > > >
> > > > This what I can see in the auth.log when I launch a pop3 session:
> > > >
> > > > Jul  9 08:26:47 develop2 pop(pam_unix)[30142]: authentication failure;
> > > > logname= uid=76 euid=76 tty= ruser= rhost=  user=USER
> > > >
> > > > I have tried also to use "sasl_pwcheck_method: pam" instead passwd but
> > > > the problem persist.
> > > >
> > > > Help please!!! and TIA.
> > >
> > >
>
>


Reply via email to