sieveshell problems

2004-01-14 Thread Miham KEREKES
Hi,

I'm writing a web-based sieve administration tool, and for that, I
wanted to use sieveshell to list/install/activate/etc.. sievescripts on
a per user basis.

After some debug I figured out, that sieveshell doesn't support properly
the --exec option. I've straced it, and found out that the --exec option
doesn't modify the behavior of sieveshell, so it's still reads the
commands from stdin, and in addition, in the internal help it doesn't
mention the --exec option, which is listed when doing 
$ sieveshell --help 
or
$ man sieveshell

Do anyone have any idea regarding this situation? What cause this
strange behaviour?
How can I use the --exec option?

Thanks,
Miham.
-- 
*
* Miham KEREKES * Szegedi Tudomnyegyetem Egyetemi Knyvtr *
*[ [EMAIL PROTECTED] ]**
* Aki mindig a stor tetejn van, annak a storaljajhely.. *


Solved: [Re: Converting mbox to cyrus maildir w/ seen state preservation]

2003-12-23 Thread Miham KEREKES
 The perms are not the problem, it is the content of the file.  Double
 check your ssl/tls setup.
Rechecked - error still persist.

 
  I made the certs by following this description:
  http://www.irbs.net/internet/info-cyrus/0207/0265.html
 Instructions here seem pretty reasonable.
Recreated the whole certificate - now works. I don't know, what was the
error, maybe I misunderstood something at first read.
Anyway, thanks a lot for the support! :-)

Miham.

PS: And Merry Christmas to Everyone :-)
-- 
*
*System Administrator / University Library, Szeged / Hungary*
*[ [EMAIL PROTECTED] ]**


Converting mbox to cyrus maildir w/ seen state preservation

2003-12-22 Thread Miham KEREKES
Hi,

I'm about to migrate user mailboxes from unix mbox mailbox format 
to cyrus maildir. Unfortunately, users have lots of separate 
mailfolders in mbox format, which i should convert, too.

I dig into the archive, and found the mailutil utility for doing this:
mailutil append /path/to/mbox 
{new.cyrus.server/user=mbox_cyrus_user/authuser=proxy_user/norsh}INBOX
and I figured out, that it is capable to creating mailboxes, too.

I've migrated the users Inbox already successfully, but with the
difference: that time I knew the users password (I created them with a
script before), so I had no need to use the /authuser=XXX option. 
Since then they've changed their password, so I don't know them. 
(Yes, I forgot about their ~/mail mailboxes :-( )
However, this time I need to use the /authuser=XXX, if I'm not mistaken. 

When I try this:
mailutil create 
{cyrus.server.name.or.ip/user=targetuser/authuser=cyrus_admin_user/norsh}INBOX.subfolder
I got the following errormessage:

Can't do /authuser with this server
Can't do /authuser with this server

I already strace'd and ltrace'd the process in order to know what is the
problem, but all I got to know, that mailutil parsing the output of the 
CAPABILITY command, and decides whether the server is capable of
authuser.

I don't have much time for this conversion, so I had no time to look
into the source, yet.

I have the following capabilities:
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=NTLM
AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED ANNOTATEMORE

Can anyone give me a good point? I mean, which cap missing, how can I
enable, etc.

Thanks in advance,
Miham Kerekes.
-- 
*
*System Administrator / University Library, Szeged / HUNGARY*
*[ [EMAIL PROTECTED] ]**


Re: Converting mbox to cyrus maildir w/ seen state preservation

2003-12-22 Thread Miham KEREKES
Hi,

  I have the following capabilities:
  * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
  NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
  SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=NTLM
  AUTH=DIGEST-MD5 AUTH=CRAM-MD5 LISTEXT LIST-SUBSCRIBED ANNOTATEMORE

 mailutil is picking CRAM-MD5 up which does not support proxy
 authentication.  Stop advertising CRAM-MD5 on the cyrus side.  Add /tls
 which will allow mailutil to use PLAIN.  PLAIN is the only mech
 implemented by c-client which support proxy auth.
After I've sent my previous message, I found a similar advice in
archive. 
However, I can't find anywhere in the config files where I could stop
CRAM-MD5 from being advertised.
I searched in /etc/cyrus.conf and /etc/imapd.conf, without any success.

Any docs or help suggested?

Miham.
-- 
*
*System Administrator / University Library, Szeged / Hungary*
*[ [EMAIL PROTECTED] ]**


Re: Converting mbox to cyrus maildir w/ seen state preservation

2003-12-22 Thread Miham KEREKES
  However, I can't find anywhere in the config files where I could stop
  CRAM-MD5 from being advertised.
  I searched in /etc/cyrus.conf and /etc/imapd.conf, without any success.
  
  Any docs or help suggested?
  
  
   Add
  
   sasl_mech_list: plain login digest-md5 ntlm
  LOGIN and NTLM don't support proxying either.
 For this conversion he just needs
 sasl_mech_list: plain
I've already tried that before I wrote my second letter in this thread.

I tried it with 
sasl_pwcheck_method: auxprop
AND
sasl_pwcheck_method: saslauthd

My auxprop plugin is:
sasl_auxprop_plugin: sasldb

None of the above worked as I expected.
Any idea why?

Miham.
-- 
*
*System Administrator / University Library, Szeged / Hungary*
*[ [EMAIL PROTECTED] ]**


Re: Converting mbox to cyrus maildir w/ seen state preservation

2003-12-22 Thread Miham KEREKES
 I do not know where you store your secrets, I assume sasldb?  If so,
Yes.

 sasl_pwcheck_method: auxprop
 sasl_auxprop_plugin: sasldb
 sasl_mech_list: plain
Ok. Works. Or at least: the error changed :-( 

* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID 
NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES IDLE STARTTLS LISTEXT LIST-SUBSCRIBED ANNOTATEMORE
 OK Completed
0001 STARTTLS
0001 NO Error initializing TLS
Unable to negotiate TLS with this server
0002 LOGOUT
* BYE LOGOUT received
0002 OK Completed
Unable to negotiate TLS with this server

In syslog:
Dec 22 23:29:15 merope cyrus/imapd[31767]: unable to get private key from 
'/etc/ssl/private/cyrus-global.key'
Dec 22 23:29:15 merope cyrus/imapd[31767]: TLS engine: cannot load cert/key data
Dec 22 23:29:15 merope cyrus/imapd[31767]: error initializing TLS

What is mistaken? File is readable, even world-wide for sure!

I made the certs by following this description:
http://www.irbs.net/internet/info-cyrus/0207/0265.html

Miham.
-- 
*
*System Administrator / University Library, Szeged / Hungary*
*[ [EMAIL PROTECTED] ]**


deleting unwanted mailbox

2003-09-29 Thread Miham KEREKES
Hi!

I just wonder, how can I delete a mailbox, which i have created
accidentally a few minutes ago.

I wanted to create a user, but somehow forgot the user. prefix..
If I want to delete that, I got the response: Permission denied.

Ideas?

localhost lm
akos (\HasNoChildren)
[...]
localhost dm akos
deletemailbox: Permission denied
localhost lam akos
cyrus d
anyone lrs

Miham.
-- 
*
* Miham KEREKES * Szegedi Tudomnyegyetem Egyetemi Knyvtr *
*[ [EMAIL PROTECTED] ]**
* Aki mindig a stor tetejn van, annak a storaljajhely.. *