Can not login to Cyrus server

2006-09-27 Thread Neelu Dhiman








Hi,



I am not able to login to Cyrus server. I had created some
users on Cyrus server, but I am not able to login. I am getting following
output:

[EMAIL PROTECTED] imtest]# telnet adlinux imap

Trying 10.88.45.33...

Connected to adlinux (10.88.45.33).

Escape character is '^]'.

OK adlinux Cyrus IMAP4 v2.2.3-Red Hat 2.2.3-8.1 server ready

a1 login cyrus cyrus

a1 NO Login failed: generic failure

a2 logout

* BYE LOGOUT received

a2 OK Completed

Connection closed by foreign host.



Cyrus-master is listening on imap port. Following is the
result:

[EMAIL PROTECTED] imtest]# netstat -lnp --inet --inet6|grep 143

tcp
0 0
0.0.0.0:143
0.0.0.0:*
LISTEN 10135/cyrus-master



Services are running properly:

[EMAIL PROTECTED] imtest]# /sbin/service saslauthd status

saslauthd (pid 10045 10044 10043 10041 10040) is running...

[EMAIL PROTECTED] imtest]# /sbin/service cyrus-imapd status

cyrus-master (pid 10135) is running...



I am also not able to user cyradm. Getting following error:

[EMAIL PROTECTED] imtest]# cyradm -u cyrus adlinux

IMAP Password:



Login failed: generic failure at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line
118

cyradm: cannot authenticate to server with as cyrus

What can be the problem. Please guide.



Thanks,

Neelu.



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Can not login to Cyrus server

2006-09-27 Thread Simon Matter
 Hi,



 I am not able to login to Cyrus server. I had created some users on Cyrus
 server, but I am not able to login. I am getting following output:

 [EMAIL PROTECTED] imtest]# telnet adlinux imap

 Trying 10.88.45.33...

 Connected to adlinux (10.88.45.33).

 Escape character is '^]'.

 OK adlinux Cyrus IMAP4 v2.2.3-Red Hat 2.2.3-8.1 server ready

 a1 login cyrus cyrus

 a1 NO Login failed: generic failure

 a2 logout

 * BYE LOGOUT received

 a2 OK Completed

 Connection closed by foreign host.



 Cyrus-master is listening on imap port. Following is the result:

 [EMAIL PROTECTED] imtest]# netstat -lnp --inet --inet6|grep 143

 tcp0  0 0.0.0.0:143 0.0.0.0:*   LISTEN
 10135/cyrus-master



 Services are running properly:

 [EMAIL PROTECTED] imtest]# /sbin/service saslauthd status

 saslauthd (pid 10045 10044 10043 10041 10040) is running...

 [EMAIL PROTECTED] imtest]# /sbin/service cyrus-imapd status

 cyrus-master (pid 10135) is running...



 I am also not able to user cyradm. Getting following error:

 [EMAIL PROTECTED] imtest]# cyradm -u cyrus adlinux

 IMAP Password:



 Login failed: generic failure at
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm
 line 118

 cyradm: cannot authenticate to server with  as cyrus

Try with something like
cyradm --user cyrus --auth login localhost

and search the list archives for 'line 118' :)

Simon


 What can be the problem. Please guide.



 Thanks,

 Neelu.


 DISCLAIMER
 ==
 This e-mail may contain privileged and confidential information which is
 the property of Persistent Systems Pvt. Ltd. It is intended only for the
 use of the individual or entity to which it is addressed. If you are not
 the intended recipient, you are not authorized to read, retain, copy,
 print, distribute or use this message. If you have received this
 communication in error, please notify the sender and delete all copies of
 this message. Persistent Systems Pvt. Ltd. does not accept any liability
 for virus infected mails.
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


unsubscribe

2006-09-27 Thread Daniel Stålhammar



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: LMTP problem

2006-09-27 Thread Phil Pennock
On 2006-09-25 at 18:14 +0200, Daniel Stålhammar wrote:
 Trying to send mail local on my machine i get this error.
 [EMAIL PROTECTED] exim]# delivering 1GRsrR-j4-7C
 LOG: MAIN
  == xxx R=localuser T=local_delivery defer (-1): LMTP connection closed 
 after initial connection

TCP Wrappers?  Does /etc/hosts.allow permit the LMTP connection from the
IP address which the packets will come from?

You could use Unix-domain sockets instead.  The lmtp line in cyrus.conf
then takes a path-name pointing to a socket location in the listen=...
parameter and you give Exim (assuming Exim 4) the socket option in the
transport.  So I have:

imap_inject_envto:
  driver = lmtp
  socket = IMAP_LMTP_SOCKETPATH
  envelope_to_add
  user = mail
  group = mail
  rcpt_include_affixes
  headers_remove = lines
  headers_add = Lines: $body_linecount

where IMAP_LMTP_SOCKETPATH is defined at the start of the file, and the
Lines stuff lets mutt see the size of the mail in the index; Exim
already has the information available so there's no delay caused by
adding that.

I can't help with LTMP verification though, since I cheat by breaking
open the abstraction of Cyrus letting Exim see which folders exist in
the local filesystem.
-- 
Everything has three factors: politics, money, and the right way to do it.
 In that order.  -- Gary Donahue

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: admin authentication

2006-09-27 Thread Marten Lehmann

Hello,

I found out the problem: It was a permission problem of /etc/sasldb2.

Regards
Marten

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Bounced email although LMTP returns an ok

2006-09-27 Thread Hardi Gunawan
Hi,

It seems I've many problems with Cyrus on SuSE SLES10.

My current problem is that there are many bounces on
the server, but the LMTP returns an ok.  Here's the
log on the server:


Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
RSET
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
250 2.1.5 Ok
Sep 26 20:12:29 mail2 postfix/lmtp[14840]:
deliver_message: reusing (count 4) session with:
/var/lib/imap/socket/lmtp
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
MAIL FROM: SIZE=130532
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
RCPT TO:xx
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
DATA
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
250 2.0.0 ok
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
250 2.1.0 ok
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: 
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]:
250 2.1.5 ok
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: connect to
subsystem private/bounce
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
nrequest = 0
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
flags = 0
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
queue_id = D3EC7A709
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
original_recipient = x
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
recipient = 
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
offset = 18446744073709551615
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
status = 5.0.0
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
action = failed
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: send attr
reason = host
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]
said:
250 2.1.5 ok (in reply to DATA command)
Sep 26 20:12:29 mail2 postfix/lmtp[14840]:
private/bounce socket: wanted attribute: status
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: input
attribute name: status
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: input
attribute value: 0
Sep 26 20:12:29 mail2 postfix/lmtp[14840]:
private/bounce socket: wanted attribute: (list
terminator)
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: input
attribute name: (end)
Sep 26 20:12:29 mail2 postfix/lmtp[14840]: D3EC7A709:
to=,
relay=/var/lib/imap/socket/lmtp[/var/
lib/imap/socket/lmtp], delay=0, status=bounced (host
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]
said: 250 2.1.5 ok (
in reply to DATA command))

I'm not sure the problem is on the postfix or cyrus
side, though.

Regards,

Hardi Gunawan

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


64-bit quotas with 2.2.13

2006-09-27 Thread Kjetil Torgrim Homme
I tried to apply the patch for 2.2.12 to get quotas beyond 2 GiB, but it
doesn't apply very well.  has anyone ported it to 2.2.13?

-- 
thanks,
Kjetil T.



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


only cleartext in sasldb?

2006-09-27 Thread Marten Lehmann

Hello,

it seems that sasldb stores all password in cleartext. Is it possible to 
use md5 or crypt as in /etc/passwd?


Regards
Marten

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: only cleartext in sasldb?

2006-09-27 Thread Sarah Walters
 

 -Original Message-
 it seems that sasldb stores all password in cleartext. Is it 
 possible to 
 use md5 or crypt as in /etc/passwd?

No, it's not. The entire point is to enable using CRAM-MD5 and other
such mechanisms which require access to the plain-text password. The
advantage of this is that you can login without TLS/SSL if you have to.

I'll admit that it can be irritating, but that file should only be
readable by the cyrus user and the password should only be used for
cyrus anyway. So it doesn't matter - if someone can get read access
to that file with permissions set correctly (owner cyrus, permissions 
set to 700), then they can get into cyrus so your system is compromised
anyway. So who cares?

Make sure that NOTHING else can access that file. Obviously you'll
need to be user cyrus or user root to change any passwords in that
file so don't use it for anything other than admin accounts (or write
a GOOD wrapper that is setuid to user cyrus around the sasldb access
programs if you have to give more people access).

Regards,
Sarah Walters

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Two questions

2006-09-27 Thread mailing
Hello everyone!
I have two problems, maybe very simple but I cannot find out a solution.
1)
How can I backup and recover Cyrus mailboxes? I've found something like
this to backup:
su - cyrus -c ctl_mboxlist -d  /var/lib/imap/mboxlist.txt

but how can I recover my mailboxes from mboxlist.txt?

2)
How can I delete messages inside my IMAP mailboxes from Evolution?
I try to cancel them but I cannot completely remove from IMAP mailbox.

Thanks a lot for attention and any help you could give me!

Stefano C.

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: sync_client stalls the rest of cyrus while 'no route to host'

2006-09-27 Thread Bron Gondwana
On Sat, Aug 26, 2006 at 10:22:15PM +0200, Paul Dekkers wrote:
 Hi,
 
 I don't know if this is a known issue: as soon as I enable replication
 and the sync_client gets a No route to host from the replica, the rest
 of the cyrus startup seems to stall: no imap, no lmtp... just because a
 replica is unreachable. (In this case because iptables was to
 restrictive on the replica ;-))
 
 Aug 26 22:13:19 haver master[24203]: about to exec
 /usr/lib/cyrus-imapd/idled
 Aug 26 22:13:19 haver master[24205]: about to exec
 /usr/lib/cyrus-imapd/sync_client
 Aug 26 22:13:19 haver sync_client[24205]: connect(192.87.109.20) failed:
 No route to host
 Aug 26 22:14:04 haver last message repeated 2 times
 Aug 26 22:17:04 haver last message repeated 2 times
 Aug 26 22:21:04 haver sync_client[24205]: connect(192.87.109.20) failed:
 No route to host
 
 It takes quite long, not sure if the server will ever respond...

Here's a patch that allows you to avoid this issue by specifying -o
on the command line to sync_client (put it in your cyrus.conf).

Bron.


diff -ur --new-file cyrus-imapd-cvs.orig/imap/sync_client.c 
cyrus-imapd-cvs/imap/sync_client.c
--- cyrus-imapd-cvs.orig/imap/sync_client.c 2006-07-26 20:03:15.0 
-0400
+++ cyrus-imapd-cvs/imap/sync_client.c  2006-09-19 01:16:35.0 -0400
@@ -121,6 +121,7 @@
 
 static int verbose = 0;
 static int verbose_logging = 0;
+static int connect_once= 0;
 
 static int do_meta(char *user);
 
@@ -3165,7 +3166,7 @@
be = backend_connect(be, servername, protocol[PROTOCOL_CSYNC],
 , cb, NULL);
 
-   if (be || wait  1000) break;
+   if (be || connect_once || wait  1000) break;
 
fprintf(stderr,
Can not connect to server '%s', retrying in %d seconds\n,
@@ -3173,6 +3174,12 @@
sleep(wait);
 }
 
+if (!be) {
+   fprintf(stderr, Can not connect to server '%s'\n,
+   servername);
+   _exit(1);
+}
+
 return be;
 }
 
@@ -3279,12 +3286,16 @@
 
 setbuf(stdout, NULL);
 
-while ((opt = getopt(argc, argv, C:vlS:F:f:w:t:d:rums)) != EOF) {
+while ((opt = getopt(argc, argv, C:vlS:F:f:w:t:d:rumso)) != EOF) {
 switch (opt) {
 case 'C': /* alt config file */
 alt_config = optarg;
 break;
 
+case 'o': /* only try to connect once */
+connect_once = 1;
+break;
+
 case 'v': /* verbose */
 verbose++;
 break;
diff -ur --new-file cyrus-imapd-cvs.orig/man/sync_client.8 
cyrus-imapd-cvs/man/sync_client.8
--- cyrus-imapd-cvs.orig/man/sync_client.8  2005-03-31 15:27:53.0 
-0500
+++ cyrus-imapd-cvs/man/sync_client.8   2006-09-19 01:16:07.0 -0400
@@ -109,6 +109,10 @@
 .BI \-l
 Verbose logging mode.
 .TP
+.BI \-o
+Only attempt to connect to the backend server once rather than waiting
+up to 1000 seconds before giving up.
+.TP
 .BI \-C  config-file
 Read configuration options from \fIconfig-file\fR.
 .TP

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

RE: Two questions

2006-09-27 Thread Sarah Walters
 

 -Original Message-
 On Wed, 2006-09-27 at 19:26 -0500, [EMAIL PROTECTED] wrote:
  su - cyrus -c ctl_mboxlist -d  /var/lib/imap/mboxlist.txt
 
  but how can I recover my mailboxes from mboxlist.txt?
 
 cvt_cyrusdb will build a database from the dump.

This will only rebuild the mailbox database. You also need to back up
all the files in the cyrus directories.

Regards,
Sarah Walters

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Two questions

2006-09-27 Thread Wil Cooley
On Wed, 2006-09-27 at 19:26 -0500, [EMAIL PROTECTED] wrote:
 Hello everyone!
 I have two problems, maybe very simple but I cannot find out a solution.
 1)
 How can I backup and recover Cyrus mailboxes? I've found something like
 this to backup:
 su - cyrus -c ctl_mboxlist -d  /var/lib/imap/mboxlist.txt

 but how can I recover my mailboxes from mboxlist.txt?

cvt_cyrusdb will build a database from the dump.

 2)
 How can I delete messages inside my IMAP mailboxes from Evolution?
 I try to cancel them but I cannot completely remove from IMAP mailbox.
 
 Thanks a lot for attention and any help you could give me!

You have to expunge them after deleting them.  CTRL-E or
Folder-Expunge.

Wil
-- 
Wil Cooley [EMAIL PROTECTED]
http://nakedape.cc/wiki/


signature.asc
Description: This is a digitally signed message part

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html