No Subject
imap:/var/imap # /usr/cyrus/bin/ctl_mboxlist -u < mailboxes fatal error: can't initialize mboxlist environment imap:/var/imap # /usr/cyrus/bin/ctl_mboxlist -c fatal error: can't initialize mboxlist environment imap:/var/imap # this errors i got ... mboxlist environment, this looks like that the imap file structure are damaged or ? thank you for your patience ;-) best regards Nette Gruesse, Pascal Reinheimer
Re: netscape to cyrus
Did you the Mail::IMAPClient perl module? The append problem you had was probably caused by a bug in the current version of Mail::IMAPClient. Attached is a patch against version 2.1.3 that fixes the problem - the maintainer of the module said he would include it in version 2.1.5. The bug will affect any program that attempts to do an append of any significant size - as soon as the local send buffer fills up Mail::IMAPClient deadlocks with the server. David Gadbois wrote: >I had problems with user-side migration with the version of Cyrus I was >using (the APPEND command would hang in some circumstances), so I hacked >up some Perl to parse the Netscape local mail format and put the mail >(carefully) in a Cyrus store via IMAP. The code is at >http://gadbois.home.texas.net/src/netscape-to-imap.pl. You will >definitely need to modify it to suit your purposes. > >--David Gadbois > -- Jules Agee System Administrator Pacific Coast Feather Co. [EMAIL PROTECTED] x284 Private communication between citizens is necessary to ensure the continued preservation of freedom. For more information, see: http://www.computerprivacy.org/archive/03171998-5.shtml My public encryption key is available here: http://keyserver.pgp.com/pks/lookup?op=get&exact=on&search=0x21662FE4 868a869,872 > my $optimize = 0; > my $maxwrite = 0; > my $waittime = .02; > my @last5writes = (1); 877c881,882 < if ( $temperrs++ > $self->{MaxTempErrors}||10 ) { --- > if (( $self->{MaxTempErrors} ) && > ( $temperrs++ > $self->{MaxTempErrors})) { 882c887 < CORE::select(undef, undef, undef, .25 * $temperrs); --- > $optimize = 1; 887c892,920 < --- > > # Optimization of wait time between syswrite calls > # only runs if syscalls run too fast and fill the buffer causing > # "EAGAIN: Resource Temp. Unavail" errors. The > # premise is that $maxwrite will be approx. the same as the smallest > # buffer between the sending and receiving side. Waiting time between > # syscalls should ideally be exactly as long as it takes the receiving > # side to empty that buffer, minus a little bit to prevent it from > # emptying completely and wasting time in the select call. > if ($optimize) { > $maxwrite = $ret if $maxwrite < $ret; > push( @last5writes, $ret ); > shift( @last5writes ) if $#last5writes > 5; > my $bufferavail = 0; > $bufferavail += $_ for ( @last5writes ); > $bufferavail /= $#last5writes; > # Buffer is staying pretty full, we should increase the wait period > # to reduce transmission overhead/number of packets sent > if ( $bufferavail < .4 * $maxwrite ) { > $waittime *= 1.3; > > # Buffer is nearly or completely empty, we're wasting time in the select > # call that we could be using to send data - reduce the wait period > } elsif ( $bufferavail > .9 * $maxwrite ) { > $waittime *= .5; > } > CORE::select(undef, undef, undef, $waittime); > } >
Re: Is the cyrus website down?
> I'm using "http://asg.web.cmu.edu/cyrus/"; and not getting a response. Is > this the right URL? Yes it is--currently working for me. There's been some problems with internet routing in general with Nimda, so maybe it was just a transient issue...
Re: netscape to cyrus
David Gadbois wrote: > I had problems with user-side migration with the version of Cyrus I was > using (the APPEND command would hang in some circumstances), so I hacked > up some Perl to parse the Netscape local mail format and put the mail > (carefully) in a Cyrus store via IMAP. The code is at > http://gadbois.home.texas.net/src/netscape-to-imap.pl. You will > definitely need to modify it to suit your purposes. > ...And if you manage to create a reasonably generic migration script, please post it to cyrus-utils so that it can be distributed and enhanced: http://sourceforge.net/project/cyrus-utils
Re: notify
Sandra wrote: > I was trying to know why unix-notify is not working in cyrus-imap + > postfix. I have > compiled cyrus to use unix-notity socket, but the message about over > quota is > displayed in /var/log/maillog. >Is simple_notify.pl searching this message in /var/log/messages or > Am i wrong? > How does it work? Do I have to configure some place to change this > search? > unix-notify is a hook that gets called each time a message is delivered (from doc/overview.htm): New Mail Notification The Cyrus IMAP server comes with two optional notification mechanisms, for use with either the Zephyr notification service, or a custom Unix sockets notification daemon. <...> Unix Sockets Daemon If the server software is compiled with the custom Unix sockets notification daemon mechanism, then the server creates a Unix socket connection to /var/imap/socket/notify and passes the following information (separated by newlines): 1. Class 2. Instance 3. User: The username that the email is being delivered to 4. Mailbox: The folder that the email is being delivered to 5. Message: The From, To, and Subject headers of the email. The contrib/notify_unix directory has two examples of Perl daemons that implement simple notification. See the README file located the This does not do over-quota notification. For that you need quotacheck, which (along with lots of other great tools) is available at Cyrus-utils: http://sourceforge.net/project/showfiles.php?group_id=33489
notify
HI, I was trying to know why unix-notify is not working in cyrus-imap + postfix. I have compiled cyrus to use unix-notity socket, but the message about over quota is displayed in /var/log/maillog. Is simple_notify.pl searching this message in /var/log/messages or Am i wrong? How does it work? Do I have to configure some place to change this search? thanks. sandra
Re: What is the best way to backup the email boxes in cyrus imap.
Thus spake James Courtier-Dutton ([EMAIL PROTECTED]): > What is the best way to backup email boxes in cyrus imap? I have a > number IMAP clients connected, and some of them share mail boxes. > Surely, everyone should be disconnected while the backup takes place. Although I'm sure it would be slower, you could backup over the IMAP protocol on the loopback or such and not have to worry about multiple concurrent users. At least I think this would work... -- | Justin R. Miller / [EMAIL PROTECTED] / 0xC9C40C31 | Of all the things I've lost, I miss my pants the most. -- PGP signature
RE: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-)
> > Except now, you will not be able to access other namespaces or publicly > accessable directories. That's the one problem with doing this. The only I just open a separate IMAP session for publicly accessable directories. > other way is to modify the registry entry to allow setting the sent items > folder to INBOX.Sent Items. Can you tell me which registry key that is ? > > Alain >
Re: Changing filesystems, backup strategies
No, unless that's the default... # mount /dev/hda1 on / type ext2 (rw) none on /proc type proc (rw) /dev/hdb1 on /u01 type ext2 (rw) /dev/hda5 on /u03 type ext2 (rw) /dev/hdd1 on /u04 type ext2 (rw) none on /dev/pts type devpts (rw,gid=5,mode=620) Hmm... noatime Do not update inode access times on this file system (e.g, for faster access on the news spool to speed up news servers). Seems interesting... So while running find, for example, this would save overhead? I'm willing to give this a try if that's what it would mean. Thanks for the suggestion, Paul - Original Message - From: "Marco Colombo" <[EMAIL PROTECTED]> To: "Paul Vallee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 12:39 PM Subject: Re: Changing filesystems, backup strategies On Wed, 19 Sep 2001, Paul Vallee wrote: > Hello, > > We are having performance problems with our mailserver, especially when we > try to back it up. I am attempting to set up an incremental backup of the > imap spool, and preferably to include only files since the last incremental > backup. I am a reasonably advanced shell scripter, and I don't need help > with coding that. > > My problem is that basic filesystem commands on this mount point are > intolerably slow, and if I dare to run even find on this filesystem the load > shoots up high enough to affect service. is it mounted with -o noatime ? .TM. -- / / / / / / Marco Colombo ___/ ___ / / Technical Manager / / / ESI s.r.l. _/ _/ _/[EMAIL PROTECTED]
What is the best way to backup the email boxes in cyrus imap.
Hello What is the best way to backup email boxes in cyrus imap? I have a number IMAP clients connected, and some of them share mail boxes. Surely, everyone should be disconnected while the backup takes place. Is it possible to do the following: - Disconnect one user, or alternatively, lock write access to the mailbox. Backup mail box Enable write access from the user again. Then do the same for each user. Unless this locking takes place, I think there is a possibility of corruption in the backup file. The only other way, is to stop the email server entirely during the backup, but I would prefer less drastic measures. Currently, all my users use IMAP, and email is delivered from sendmail via deliver. Please help James -- Nothing in this world is exactly what it appears to be.
Re: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-)
- Original Message - From: "Alain Turbide" <[EMAIL PROTECTED]> To: "James Courtier-Dutton" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 4:32 PM Subject: Re: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-) > Except now, you will not be able to access other namespaces or publicly > accessable directories. That's the one problem with doing this. The only > other way is to modify the registry entry to allow setting the sent items > folder to INBOX.Sent Items. The other other way is to use the alternate namespace. That allows "Sent Items" etc to be on the server while giving access to other namespaces (though there's still a slight problem because OE will only show folders in the Folders window that are subscribed). John > > Alain > > - Original Message - > From: "James Courtier-Dutton" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, September 21, 2001 10:58 AM > Subject: CYRUS IMAP server with Microsoft Outlook Express client. "Sent > Items" and "Drafts" CAN now be stored on the IMAP server. :-) > > > > For everyone's information. > > I could not find this info anywhere on the web, so I post it here in the > > hope someone will add it to the cyrus imap documentation. > > > > This has been tested with Outlook Express Ver 5 and Ver 6. > > > > First of all, create the user folders. > > Example for user jcd, the output from cyradm->lm would be: - > > user.jcd > > user.jcd.Drafts > > user.jcd.Sent Items(This one might need to be created in Outlook > > express, because "cyradm" does not like spaces.) > > > > then... > > In Microsoft Outlook Express, goto: - > > Tools->Accounts > > Select the mail server, then click "Properties" > > Click on the IMAP tab. > > Then fill in the boxes as follows: - > > Folders > > Root folder path: INBOX <- This is the IMPORTANT bit. The rest are > > defaults. > > Tick/Untick: Check for new messages in all folders > > Special Folders > > TICK: Store special folders on IMAP server > > Sent Items path: Sent Items > > Drafts path: Drafts > > > > This should stop Outlook express storing sent items etc. all locally. > > > > I hope this helps. > > I only found this out by looking at sniffer traces. > > > > Cheers > > James > > > > > > > > > > > > -- > > Nothing in this world is exactly what it appears to be. > > > > > >
Re: Changing filesystems, backup strategies
On Wed, 19 Sep 2001, Paul Vallee wrote: > Hello, > > We are having performance problems with our mailserver, especially when we > try to back it up. I am attempting to set up an incremental backup of the > imap spool, and preferably to include only files since the last incremental > backup. I am a reasonably advanced shell scripter, and I don't need help > with coding that. > > My problem is that basic filesystem commands on this mount point are > intolerably slow, and if I dare to run even find on this filesystem the load > shoots up high enough to affect service. is it mounted with -o noatime ? .TM. -- / / / / / / Marco Colombo ___/ ___ / / Technical Manager / / / ESI s.r.l. _/ _/ _/ [EMAIL PROTECTED]
Re: peculiar lmtpd behavior
In our configuration the set of users that can receive mail locally is the contents of the assign file. Messages are passed to deliver via the users' .qmail files. The transformation of the Return-Path happens after qmail has handed off the message to cyrus for final delivery. We believe it's this bit of code from savemsg() in lmtpengine.c: if (!strchr(rpath, '@')) { hostname = config_servername; } fprintf(f, "Return-Path: <%s%s%s>\r\n", rpath, hostname ? "@" : "", hostname ? hostname : "" If anyone can help us understand the reasons for this, we'd greatly appreciate it. thanks Lisa Maira On Fri, Sep 21, 2001 at 09:40:44AM, Pascal Gienger <[EMAIL PROTECTED]> wrote: > > It would be nice if you could tell us your configuration (how did you > couple QMAIL with Cyrus? via /var/users/assign?) and then we can look if we > can help you (sorry for the "we" as I am very new to this mailing list but > very "old" when it goes to Cyrus IMAPD things, I am using this beast from Ver- > sions 1.5 on and now we have 2.0.16 working like a charm).
Re: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-)
Except now, you will not be able to access other namespaces or publicly accessable directories. That's the one problem with doing this. The only other way is to modify the registry entry to allow setting the sent items folder to INBOX.Sent Items. Alain - Original Message - From: "James Courtier-Dutton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 10:58 AM Subject: CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-) > For everyone's information. > I could not find this info anywhere on the web, so I post it here in the > hope someone will add it to the cyrus imap documentation. > > This has been tested with Outlook Express Ver 5 and Ver 6. > > First of all, create the user folders. > Example for user jcd, the output from cyradm->lm would be: - > user.jcd > user.jcd.Drafts > user.jcd.Sent Items(This one might need to be created in Outlook > express, because "cyradm" does not like spaces.) > > then... > In Microsoft Outlook Express, goto: - > Tools->Accounts > Select the mail server, then click "Properties" > Click on the IMAP tab. > Then fill in the boxes as follows: - > Folders > Root folder path: INBOX <- This is the IMPORTANT bit. The rest are > defaults. > Tick/Untick: Check for new messages in all folders > Special Folders > TICK: Store special folders on IMAP server > Sent Items path: Sent Items > Drafts path: Drafts > > This should stop Outlook express storing sent items etc. all locally. > > I hope this helps. > I only found this out by looking at sniffer traces. > > Cheers > James > > > > > > -- > Nothing in this world is exactly what it appears to be. > >
CYRUS IMAP server with Microsoft Outlook Express client. "Sent Items" and "Drafts" CAN now be stored on the IMAP server. :-)
For everyone's information. I could not find this info anywhere on the web, so I post it here in the hope someone will add it to the cyrus imap documentation. This has been tested with Outlook Express Ver 5 and Ver 6. First of all, create the user folders. Example for user jcd, the output from cyradm->lm would be: - user.jcd user.jcd.Drafts user.jcd.Sent Items(This one might need to be created in Outlook express, because "cyradm" does not like spaces.) then... In Microsoft Outlook Express, goto: - Tools->Accounts Select the mail server, then click "Properties" Click on the IMAP tab. Then fill in the boxes as follows: - Folders Root folder path: INBOX <- This is the IMPORTANT bit. The rest are defaults. Tick/Untick: Check for new messages in all folders Special Folders TICK: Store special folders on IMAP server Sent Items path: Sent Items Drafts path: Drafts This should stop Outlook express storing sent items etc. all locally. I hope this helps. I only found this out by looking at sniffer traces. Cheers James -- Nothing in this world is exactly what it appears to be.
Is the cyrus website down?
I'm using "http://asg.web.cmu.edu/cyrus/"; and not getting a response. Is this the right URL? Thank you, Paul
Re: peculiar lmtpd behavior
Tarjei Huse wrote: > > > Cyrus only understands LMTP and IMAP and both of them do not generate > > bounces (Sieve Scripts are a different story, because they are using > > /usr/lib/sendmail when forwarding mail). > Where can I change that to using /usr/sbin/sendmail ? Read imapd.conf(5). 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: netscape to cyrus
Darin Perusich wrote: > > let me rephrase. > > i want to move existing messages that are in $HOME/nsmail without any > user intervention. i used a modified bsd2cyrus to create all the empty > subfolders on the cyrus server. > > i did the drag-n-drop move for myself but there are about 80 or 90 users > that need to have there messages pushed into the server. if it comes > down to it that's what i'll do but but i'd rather not, to time > consuming. I had problems with user-side migration with the version of Cyrus I was using (the APPEND command would hang in some circumstances), so I hacked up some Perl to parse the Netscape local mail format and put the mail (carefully) in a Cyrus store via IMAP. The code is at http://gadbois.home.texas.net/src/netscape-to-imap.pl. You will definitely need to modify it to suit your purposes. --David Gadbois
Re: peculiar lmtpd behavior
> Cyrus only understands LMTP and IMAP and both of them do not generate > bounces (Sieve Scripts are a different story, because they are using > /usr/lib/sendmail when forwarding mail). Where can I change that to using /usr/sbin/sendmail ? :) Tarjei
Re: peculiar lmtpd behavior
>We are experiencing a behavior in lmtpd such that it inserts >an "@" sign and hostname in the Return-Path if the Return-Path >does not contain an "@" sign. So bounces on our system have a >Return-Path with <@hostname> and no username. > >(As an aside, we are running qmail as opposed to sendmail.) > >We are investigating this further and would appreciate >any assistance in understanding this behavior and >identifying a resolution. As a first hint, I think you must search at qmail's configuration because Cyrus cannot produce a bounce, can it? Cyrus only understands LMTP and IMAP and both of them do not generate bounces (Sieve Scripts are a different story, because they are using /usr/lib/sendmail when forwarding mail). It would be nice if you could tell us your configuration (how did you couple QMAIL with Cyrus? via /var/users/assign?) and then we can look if we can help you (sorry for the "we" as I am very new to this mailing list but very "old" when it goes to Cyrus IMAPD things, I am using this beast from Ver- sions 1.5 on and now we have 2.0.16 working like a charm). Pascal Gienger Finesse Networks, Germany --