Re: What File Types does Cyrus use?
Emiliano schrieb am Thu, Nov 22, 2001 at 08:30:54AM +0100: * Devdas Bhagat wrote: * * Hmmm, cyrus is supposed to be a black box solution. This means that * access should only be through the IMAP/POP/KPOP interface and not * directly over the filesystem. * What cyrus does internally should not be the concern of the * administrator/user. * * This is good from both the developer and administrator point of view, * and prevents hardcoded solutions from being put in place. * Even if the internal format changes for some reason, it should not * affect your application, and the IMAP interface provides a standard API. * * I don't think I need to specify why using a standard published API is * good. * * Agreed, but in this line of reasoning I'd love to see an API that * doesn't require logging is (as you'd have to through IMAP/POP/KPOP). For * migration, or ACL reporting, or whatever else you'd want to do as a * priviliged user (like the way cyrdeliver works) without needing each * users' password. [...] Who needs that? You have the admin account which can do almost anything. We administrate a very large userbase (100k users, increasing) via this admin account and IMAP4 utilising the very power of perl and supplied modules Cyurs::IMAP::Admin, Mail::IMAPClient. All administrative run as batch jobs and do not require any human inter- ference unless no errors are reported. I won't say it is fast but you a) did not have to hack anything and b) do not risk messing up internal structures of cyrus. As for the initial question: Isn't the decription given in server-design (distributed with 2.0.x as text and html file) hint enough for layout of the files mentioned here? Regards, - Birger
Re: forward mail already in mailbox
Would bw fine, if you could specify your question a little bit. e.g.The mail you want to forward is already in an IMAP-Mailbox? What dou you want to POP? What is your configuration like? e.g which MTA and which MDA do you use? Mail which is already in a mailbox is delivered. Of course you can specify rules, sorting Mail before Delivery, forwarding a CC to another Mailbox. Joe Ellis wrote: is there anyway i can forward mail that is already in a mailbox? there are a few people that want to forward thier mail to another mailserver. is there a way to do this, or do they have to pop thier account one last time? -- Joe Ellis http://www.lithodyne.net -- Bernd Weber Medienpartner Tel0 22 07/911 377 Kommunikationsgesellschaft mbH Baerbroich 35 Mobil 0177-3627616 51429 Bergisch-Gladbach e-mail:[EMAIL PROTECTED]
sieve connexion
hello I tried to open a connection tomy sieve server : telnet localhost sieveTrying 127.0.0.1...Connected to localhost.Escape character is '^]'."IMPLEMENTATION" "Cyrus timsieved v1.0.0""SIEVE" "fileinto reject envelope vacation imapflags notify subaddress regex"OK I'm afraid because the documentation says that I must have this message : Escape character is '^]'. "CMU Experimental Sieved version 0.99" "SASL={GSSAPI, ANONYMOUS, PLAIN, KERBEROS_V4}" I do not have any SASL tag in my server response. What's the problem ? Any idea ? Where can I found the keyword of the sieve langage ? I only know logout, how can I perform a login to test my server ?
Re: What File Types does Cyrus use?
Birger Toedtmann wrote: * priviliged user (like the way cyrdeliver works) without needing each * users' password. [...] Who needs that? You have the admin account which can do almost anything. We administrate a very large userbase (100k users, increasing) via this admin account and IMAP4 utilising the very power of perl and supplied modules Cyurs::IMAP::Admin, Mail::IMAPClient. All administrative run as batch jobs and do not require any human inter- ference unless no errors are reported. I won't say it is fast but you I didn't know about Cyrus::IMAP::Admin. I'll look into it, but how would it gain access to the server without logging in? Or does it login (using IMAP?) with the admin account? Emile
Re: What File Types does Cyrus use?
Emiliano schrieb am Thu, Nov 22, 2001 at 12:45:53PM +0100: * Birger Toedtmann wrote: * * * priviliged user (like the way cyrdeliver works) without needing each * * users' password. * [...] * * Who needs that? You have the admin account which can do almost anything. * We administrate a very large userbase (100k users, increasing) via this * admin account and IMAP4 utilising the very power of perl and supplied * modules * *Cyurs::IMAP::Admin, Mail::IMAPClient. * * All administrative run as batch jobs and do not require any human inter- * ference unless no errors are reported. I won't say it is fast but you * * I didn't know about Cyrus::IMAP::Admin. I'll look into it, but how would * it gain access to the server without logging in? Or does it login (using * IMAP?) with the admin account? Yes, it does exactly the latter one. Don't you use cyradm? It is just a perl script utilising Cyrus::IMAP::Admin which comes with all cyrus distri- butions. cyradm itself does *NOT* directly write or read files within the cyrus structure but itself logs into the IMAP server with the admin account. So using cyradm or writing your own perl script is nearly the same... - Birger
Re: What File Types does Cyrus use?
Quoting Emiliano [EMAIL PROTECTED]: Devdas Bhagat wrote: Hmmm, cyrus is supposed to be a black box solution. This means that access should only be through the IMAP/POP/KPOP interface and not directly over the filesystem. What cyrus does internally should not be the concern of the administrator/user. This is good from both the developer and administrator point of view, and prevents hardcoded solutions from being put in place. Even if the internal format changes for some reason, it should not affect your application, and the IMAP interface provides a standard API. I don't think I need to specify why using a standard published API is good. Agreed, but in this line of reasoning I'd love to see an API that doesn't require logging is (as you'd have to through IMAP/POP/KPOP). For migration, or ACL reporting, or whatever else you'd want to do as a priviliged user (like the way cyrdeliver works) without needing each users' password. You don't need each user's password, just the admin's. A couple of the SASL mechs (PLAIN, OTP, others?) allow for proxying as another user. That's what the -a and -u options to cyradm and imtest are for. Check out RFC2595 for details on proxying via PLAIN. Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
Re: What File Types does Cyrus use?
Quoting Amos Gouaux [EMAIL PROTECTED]: On Thu, 22 Nov 2001 17:13:19 +1100, Jeremy Howard [EMAIL PROTECTED] (jh) writes: jh I'm sure we all understand the dangers of hacking at internal structures. jh There's also performance benefits associated with this. It's up to solution jh developers to decide whether that trade-off makes sense in their particular jh case, and would be based on benchmarking and analysis of the level of jh maintenance required if internal structures change. While I guess it's always possible, I'd be somewhat surprised if going through the protocol is really that much of a bottle neck. Agreed. Doing stuff in perl or any other scripting language might be slow, I'm guessing that compiled code would be fast enough for most applications. I'd also submit that playing with the cyrus.* files on a running system is just asking for trouble. FWIW, there is no documentation on the cyrus.* files other than the source code. I found this out while writing the SORT/THREAD code. Ken -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
sieve and vacation
Hallo *, we are using cyrus 2.0.12 with sieve. Everything is working fine but vacation doesn't. this is my sievescript: # Mail rules for user test # Created by Websieve version 0.61h require [fileinto,vacation]; vacation :days 1 :addresses [[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]] text: Autogenerated Message: On vacation for the next week . ; and this is the test output: Envelope body of 'to'? [EMAIL PROTECTED] Envelope body of 'from'? [EMAIL PROTECTED] Have I already responded to 'da1da86583969a9d5641322a9083ae69' in 3 days? no echo 'Autogenerated Message: On vacation for the next week ' | mail -s 'Re: (no subject)' '[EMAIL PROTECTED]' for message '/var/spool/imap/user/test/212.' notify msg = 'You have new mail To: [EMAIL PROTECTED] From: Alex Werner [EMAIL PROTECTED] Subject: (no subject) Action(s) taken: Sent vacation reply ' with priority = medium keeping message '/var/spool/imap/user/test/212.' If i send a mail to this user the sieve script have no effect. any ideas?
Re: What File Types does Cyrus use?
Birger Toedtmann wrote: * I didn't know about Cyrus::IMAP::Admin. I'll look into it, but how would * it gain access to the server without logging in? Or does it login (using * IMAP?) with the admin account? Yes, it does exactly the latter one. Don't you use cyradm? It is just a perl script utilising Cyrus::IMAP::Admin which comes with all cyrus distri- butions. Not on Debian, appearantly. It's a compiled executable here. Emile
Re: sieve and vacation
How are you delivering mail from the MTA? With LMTP? With the deliver program? If you're using the deliver program, be sure to use the -r flag and arrange for your MTA to fill in the envelope sender address on the command line. Otherwise, vacation just won't work. (It sends messages to the envelope sender only, and that only gets set properly in cyrus via LMTP or the -r flag). Michael --On Thursday, November 22, 2001 07:17:28 PM +0100 Alex Werner [EMAIL PROTECTED] wrote: Hallo *, we are using cyrus 2.0.12 with sieve. Everything is working fine but vacation doesn't. this is my sievescript: # Mail rules for user test # Created by Websieve version 0.61h require [fileinto,vacation]; vacation :days 1 :addresses [[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]] text: Autogenerated Message: On vacation for the next week . ; and this is the test output: Envelope body of 'to'? [EMAIL PROTECTED] Envelope body of 'from'? [EMAIL PROTECTED] Have I already responded to 'da1da86583969a9d5641322a9083ae69' in 3 days? no echo 'Autogenerated Message: On vacation for the next week ' | mail -s 'Re: (no subject)' '[EMAIL PROTECTED]' for message '/var/spool/imap/user/test/212.' notify msg = 'You have new mail To: [EMAIL PROTECTED] From: Alex Werner [EMAIL PROTECTED] Subject: (no subject) Action(s) taken: Sent vacation reply ' with priority = medium keeping message '/var/spool/imap/user/test/212.' If i send a mail to this user the sieve script have no effect. any ideas?
Re: What File Types does Cyrus use?
Emiliano schrieb am Thu, Nov 22, 2001 at 10:22:25PM +0100: * Birger Toedtmann wrote: * * * I didn't know about Cyrus::IMAP::Admin. I'll look into it, but how would * * it gain access to the server without logging in? Or does it login (using * * IMAP?) with the admin account? * * Yes, it does exactly the latter one. Don't you use cyradm? It is just * a perl script utilising Cyrus::IMAP::Admin which comes with all cyrus distri- * butions. * * Not on Debian, appearantly. It's a compiled executable here. Uh? Are you really sure? Which version of cyrus do you use? Cyrus' installation are not platform dependant and I have only seen the skript versions so far.. Anyway, here is a (very tiny) example how to do some stuff on the server. It simply adds all users supplied by STDIN: #!/usr/bin/perl use Cyrus::IMAP::Admin; my $client = Cyrus::IMAP::Admin-new('localhost'); $client-authenticate(-mechanism, login, -user, admin, -password, adminpw); while () { chop; $client-create(user.$_); } Regards, - Birger
Re: cyrus + procmail
Joe Stump schrieb am Thu, Nov 22, 2001 at 12:43:47PM -0500: * I'm banging my head against the table trying to get Cyrus working nicely * with procmail. Here is my EXTREMELY simple procmailrc ... * * LOGFILE=/tmp/procmaillog * DEFAULT=$1 * * :0c * | /usr/cyrus/bin/deliver $1 * * $1 is passed to procmail from my .qmail file using the -a option for procmail. * The problem is that it TOTALLY ignores the pipe and puts it into the folder $1 * on the directory of my procmailrc. Here is my log: * * From [EMAIL PROTECTED] Thu Nov 22 17:37:59 2001 * Subject: foo * Folder: sales_jerum_com 473 * * $1 == sales_jerum_com * * Any ideas? Mmmh, why do you use $1 and $DEFAULT (aren't they folder names)? You want to deliver to a *user*, not a folder... Anyway, I utilise procmail like this and it works nicely: :0 | /usr/cyrus/bin/deliver -e -a $LOGNAME $LOGNAME System is a RH7x, Cyrus is 2.0.x with Sendmail as MTA. Regards, - Birger