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. > > > > -- _______________________________ Wolfgang Schaefer Diplom-Ingenieur (FH) Elektronik System- und Netzwerkadministrator Fon +49-(0)7308-818-22 Fax +49-(0)7308-818-65 busse design ulm gmbh Nersinger Str. 18 89275 Elchingen / Ulm, Germany http://www.busse-design-ulm.de _______________________________
server3:/usr/local/src/cyrus-imapd-1.6.24 # head config.status #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. # This directory was configured as follows, # on host server3: # # ./configure --with-cyrus-user=cyrus --with-cyrus-group=mail --with-cyrus-prefix=/usr/cyrus --with-auth=unix --witho ut-notify --without-krb --with-tcl=/usr --enable-netscapehack --enable-sieve # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. server3:/usr/local/src/cyrus-imapd-1.6.24 #
# warning: do you know what you do? # yes: make a copy of this file! # no: never change this file! # imap configuration file # ...have a look at man imapd.conf # after changes do "rcinetd restart" # Wolfgang Schaefer 25.10.2000 # The pathname of the IMAP configuration directory. # This field is required. # configdirectory: <no default> configdirectory: /var/imap # The pathname of the partition name. At least one # field, for the partition named in the defaultparti # tion option, is required. For example, if the value # of the defaultpartion option is default, then the # partition-default field is required. # partition-name: <no default> partition-default: /var/spool/imap # testpartition auf einer anderen platte partition-test: /mnt/data/imap/test # The Access Control List (ACL) placed on a newly-cre # ated (non-user) mailbox that does not have a parent # mailbox. # defaultacl: anyone lrs defaultacl: root all # The list of userids with administrative rights. Sep # arate each userid with a space. Sites using Kerberos # authentication may use separate "admin" instances. # admins: <none> admins: root cyrus # The pathname of srvtab file containing the server's # private key. This option is passed to the SASL # library and overrides its default setting. # srvtab: /etc/srvtab srvtab: /var/imap/srvtab # Permit logins by the user "anonymous" using any pass # word. Also allows use of the SASL ANONYMOUS mecha # nism. allowanonymouslogin: no # allowanonymouslogin: yes # The percent of quota utilization over which the # server generates warnings. # quotawarn: 90 quotawarn: 95 # The length of the IMAP server's inactivity autologout # timer, in minutes. The minimum value is 30, the # default. # timeout: 30 timeout: 10 # The number of days advertised as being the minimum a # message may be left on the POP server before it is # deleted (via the CAPA command, defined in the POP3 # Extension Mechanism, which some clients may support). # "NEVER", the default, may be specified with a nega # tive number. The Cyrus POP3 server never deletes # mail, no matter what the value of this parameter is. # However, if a site implements a less liberal policy, # it needs to change this parameter accordingly. # popexpiretime: 0 popexpiretime: 0 # If nonzero, normal users may create their own IMAP # accounts by creating the mailbox INBOX. The user's # quota is set to the value if it is positive, other # wise the user has unlimited quota. # autocreatequota: 0 autocreatequota: 10000 # 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 # If enabled, deliver will look for Sieve scripts in # user's home directories: ~user/.sieve. sieveusehomedir: false # If sieveusehomedir is false, this directory is # searched for Sieve scripts. sievedir: /usr/sieve # END of imapd.conf
server3:/usr/local/src/cyrus-sasl-1.5.24 # head config.status #! /bin/sh # Generated automatically by configure. # Run this file to recreate the current configuration. # This directory was configured as follows, # on host server3: # # ./configure --with-pwcheck_method=shadow --enable-plain --disable-cram --disable-krb4 --disable-digest # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. server3:/usr/local/src/cyrus-sasl-1.5.24 #