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