Re: mboxtocyrus question

2003-05-29 Thread Daniel Qian | ???
Can you give me a link where i can get the script? I am going to do the same thing - 
moving from wu-imap to cyrus.

Thanks,
Daniel
- Original Message - 
From: "Stewart" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 29, 2003 7:44 AM
Subject: mboxtocyrus question


> Hi..
> 
> I'm about ready to move everyone from uw-imap to cyrus. i have a 
> question about the mboxtocyrus script though.  it works fine on the 
> /var/spool/mail/* inboxes, but i don't get how to import the client 
> created folders in their ~ directories such as Drafts and Sent Items 
> (especially since cyrus doesn't seem to support spaces in mailbox 
> names?) if there's a how-to link out there somewhere, i've not found it 
> yet. any pointers?
> 
> thanks..
> 
> ..S.
> 
> 
> 



[no subject]

2003-06-16 Thread Daniel Qian
In the /var/imap/db directory of my email server I noticed several backup 
files:
__db.001  __db.002  __db.003  __db.004  __db.005  log.01 mailbox.dump
I figure I may use these files to restore messages in mailboxes. But I 
couldn't find any documentation as to how these files are created and how I 
could use them to restore mailboxes. Anyone can give me some ideas how they 
work or point me to some resources where I can get to know how?

 
Best Regards,
Daniel Qian




Question about backup files under /var/imap/db

2003-06-16 Thread Daniel Qian
In the /var/imap/db directory of my email server I noticed several backup 
files:
__db.001  __db.002  __db.003  __db.004  __db.005  log.01 mailbox.dump
I figure I may use these files to restore messages in mailboxes. But I 
couldn't find any documentation as to how these files are created and how I 
could use them to restore mailboxes. Anyone can give me some ideas how they 
work or point me to some resources where I can get to know how?

 
Best Regards,
Daniel Qian


-- 
Best Regards,
Daniel Qian




Re: Questions about backup files in /var/imap/db

2003-06-16 Thread Daniel Qian
Ken Murchison <[EMAIL PROTECTED]> said:

> 
> 
> Daniel Qian wrote:
> > In the /var/imap/db directory of my email server I noticed several backup 
> > files:
> > __db.001  __db.002  __db.003  __db.004  __db.005  log.01 
mailbox.dump
> > I figure I may use these files to restore messages in mailboxes. But I 
> > couldn't find any documentation as to how these files are created and how 
I 
> > could use them to restore mailboxes. Anyone can give me some ideas how 
they 
> > work or point me to some resources where I can get to know how?
> 
> These files are for restoring the mboxlist.db, they can not be used to 
> restore messages.  If you deleted a message file and don't have a 
> backup, you're screwed.
> 
> -- 
> 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
> 
> 
>

How could I restore the mboxlist.db from these files? My mboxlist.db file is 
a small file but how come these __db.00X files are much larger?
I tried ctl_mboxlist -u < mailbox.dump but didn't succeed.

-- 
Best Regards,
Daniel Qian




Re: Questions about backup files in /var/imap/db

2003-06-16 Thread Daniel Qian
Ken Murchison <[EMAIL PROTECTED]> said:

> 
> 
> Daniel Qian wrote:
> > Ken Murchison <[EMAIL PROTECTED]> said:
> > 
> > 
> >>
> >>Daniel Qian wrote:
> >>
> >>>In the /var/imap/db directory of my email server I noticed several 
backup 
> >>>files:
> >>>__db.001  __db.002  __db.003  __db.004  __db.005  log.01 
> >>
> > mailbox.dump
> > 
> >>>I figure I may use these files to restore messages in mailboxes. But I 
> >>>couldn't find any documentation as to how these files are created and 
how 
> >>
> > I 
> > 
> >>>could use them to restore mailboxes. Anyone can give me some ideas how 
> >>
> > they 
> > 
> >>>work or point me to some resources where I can get to know how?
> >>
> >>These files are for restoring the mboxlist.db, they can not be used to 
> >>restore messages.  If you deleted a message file and don't have a 
> >>backup, you're screwed.
> >>
> >>-- 
> >>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
> >>
> >>
> >>
> > 
> > 
> > How could I restore the mboxlist.db from these files? My mboxlist.db file 
is 
> > a small file but how come these __db.00X files are much larger?
> > I tried ctl_mboxlist -u < mailbox.dump but didn't succeed.
> 
> 
> These files are generated by checkpointing the Berkeley DB environment, 
> which includes all databases using BDB.  Read the documentation at 
> http://www.sleepycat.com for more details on checkpointing and the log 
> files.
> 
> -- 
> 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
> 
> 
> 

It confused me by putting all databases using BDB under a imap directory. 
Anyway I am more concerned about a proper way to backup all my mailbox 
messages. It seems to me that I can backup the content under these 
directories:
/var/imap ; where my mailboxes.db resides
/var/spool/imap/user ; suppose I only care about the messages already in user 
mailboxes

So even on a newly installed empty system resulted from a system crash I 
would still be able to recover everything in mailboxes simply by copying back 
these backup files to where they are before the crash and run a reconstruct.
Correct me if I am missing anything.

Thanks for reply

-- 
Best Regards,
Daniel Qian




Re: Questions about backup files in /var/imap/db

2003-06-17 Thread Daniel Qian
John Alton Tamplin <[EMAIL PROTECTED]> said:

> Daniel Qian wrote:
> 
> >It confused me by putting all databases using BDB under a imap directory. 
> >
> Read the documentation at sleepycat -- the logs are per BDB 
> environment.  In this case, it protects only the various BDB files used 
> by Cyrus.
> 
> >Anyway I am more concerned about a proper way to backup all my mailbox 
> >messages. It seems to me that I can backup the content under these 
> >directories:
> >/var/imap ; where my mailboxes.db resides
> >/var/spool/imap/user ; suppose I only care about the messages already in 
user 
> >mailboxes
> >
> >So even on a newly installed empty system resulted from a system crash I 
> >would still be able to recover everything in mailboxes simply by copying 
back 
> >these backup files to where they are before the crash and run a 
reconstruct.
> >Correct me if I am missing anything.
> >
> Correct, although you might care about the BDB logs if the mailboxes.db 
> was corrupted due to the crash.  Personally I like dumping the mailbox 
> list to a text file just before the backup as a belt-and-suspenders 
> safety net.
> 
> -- 
> John A. Tamplin   Unix System Administrator
> Emory University, School of Public Health +1 404/727-9931
> 
> 
> 
> 

OK I will add an extra mailbox dump step to the daily backup scheme. But 
there is one point in it that I am not clear about: 
When I first laid my hands on Cyrus I deleted some mailbox folders I didn't 
want because these folder names were non-English ones created automatically 
by MS Outlook Express and I could not dm them in cyradm. So I figured I could 
ctl_mboxlist -d them to a text file and delete them there before I 
ctl_mboxlist -u them back into mailboxes.db. Everything worked fine until the 
next day I found the folders I deleted came back into the mailbox list again. 
I have no idea how they got back and where they were kept after I deleted the 
folders from both the file system and the mailbox list 


-- 
Best Regards,
Daniel Qian




´ð¸´: quota warning problem - Is it a bug of cyrus imap?

2003-07-01 Thread Daniel Qian | ???
I think you are right. I tried setting the quota to 4G the warning is
gone. 
But how can I get by this 4G limit?

Best Regards,
Daniel Qian
 


--
???: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ?? Simon
Brady
: 2003?7?1? 10:35
???: Daniel Qian | ???
??: [EMAIL PROTECTED]
??: Re: quota warning problem - Is it a bug of cyrus imap?


On Tue, 1 Jul 2003, [gb2312] Daniel Qian | ǮʡÄÏ wrote:

> I have installed cyrus imap 2.13 recently and it works very well ecept

> when the mailbox data reaches big volume. On a 10G quota for a mailbox

> the server starts warning the outlook user and closes the connection 
> when the used space is just al little over 15% of the quota.  But for 
> small quota the server works fine- it starts the warning at 90% of the

> quota limit. Is there anyone on this list aware of this problem?

I haven't looked at the code, but this sounds like what you'd see if
quota 
math was being done in 32 bits: 10G mod 4G = 2G, and 90% of 2G is 18% of

the original 10G figure.

--
Simon Brady mailto:[EMAIL PROTECTED]
ITS Technical Services
University of Otago, Dunedin, New Zealand







Is it possible to store user contact/ address book in imap server?

2003-07-14 Thread daniel qian
 I wonder if there is a solution of this for Cyrus Imap like MS Outlook with
 Exchange. Many of my users like to have it because they access their email
 both from office and home but they only want to maintain one copy of their
 contacts.
 
 Best Regards,
 Daniel
 



Re: Is it possible to store user contact/ address book in imap server?

2003-07-15 Thread daniel qian
What I have here is just a cyrus imap server on linux and all users on MS
windows. I am not sure if your solution is appropriate for me. Seems
complicated.

Thanks,
Daniel


- Original Message -
From: "James A. Pattie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 10:07 PM
Subject: Re: Is it possible to store user contact/ address book in imap
server?


> -BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Daniel Qian | 钱省南 wrote:
> |>>daniel qian wrote:
> |>>|  I wonder if there is a solution of this for Cyrus Imap like MS
> |>>Outlook with
> |>>|  Exchange. Many of my users like to have it because they access
> |
> | their
> |
> |>>email
> |>>|  both from office and home but they only want to maintain one copy
> |
> | of
> |
> |>>their
> |>>|  contacts.
> |>>|
> |>>|  Best Regards,
> |>>|  Daniel
> |
> |
> |
> |>Check out the kroupware project at http://kolab.kde.org/
> |
> |
> |>They use cyrus imapd, postfix, openldap and the kde pim packages to
> |>store contacts, notes and calendar entries in the imap server.  The
> |>"items" are just mime emails storing each entry's data in folders they
> |>created.
> |
> |
> |
> | Thanks for the reply. But what I want is simply a email client running
> | on MS windows like Outlook (Express). Melberry seems to be a good choice
> | only it is not free source.
> |
>
>
> My boss is working on trying to get this support into Evolution and then
> he was going to run evolution under windows via cygwin, ssh and the
> rootless mode X windows on windows.  Would this possibly serve your
purpose.
>
> - --
> James A. Pattie
> [EMAIL PROTECTED]
>
> Linux  --  SysAdmin / Programmer
> Xperience, Inc.
> http://www.pcxperience.com/
> http://www.xperienceinc.com/
>
> GPG Key Available at http://www.pcxperience.com/gpgkeys/james.html
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.2 (GNU/Linux)
> Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
>
> iD8DBQE/FAqbtUXjwPIRLVERAhEVAKCzcYxyUiVBv58asTGYMOCOj5b6hwCfd10K
> 0g7hcu37Ji2OUInKeglGlaE=
> =2vP2
> -END PGP SIGNATURE-
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>



cyrusdb error for long idle clients

2003-07-16 Thread daniel qian | ???
My boss likes to leave his outlook on overnight and this problem has 
been happenning to him everyday since the day I migrated to 
postfix+cyrus imap. In fact it will happen to every user if he doesn't 
close outlook when he leaves the office. The  next morning he finds  his 
outlook is not connectted to the server ( Even if I set the timeout 
parameter in imapd.conf to 24 hours). So he closes outlook and  open it 
again trying to reconnect. But nothing is his inbox. He has to retry for 
a few  minutes before he can eventually see his messages in the folders. 
This is the error messages when he trys to reconnect:

Jul 17 09:27:37 mail imapd[12947]: DBERROR: error fetching 
user.daniel.Trash: DB_RUNRECOVERY: Fatal error, run database recovery
Jul 17 09:27:37 mail imapd[12947]: DBERROR: error fetching 
user.daniel.Trash: cyrusdb error

Could anyone please advise what is going on with my cyrus imap server?

Thanks,
Daniel



Re: [Web-cyradm] Someone seen this before ?

2003-07-26 Thread daniel qian

- Original Message -
From: "Rob Siemborski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 10:33 PM
Subject: Re: [Web-cyradm] Someone seen this before ?


> On Wed, 2 Jul 2003 [EMAIL PROTECTED] wrote:
>
> > My logs are full of these messages... I have to restart Sasl/Cyrus/MySQL
> > every second hour to
> > maintain it in business...
>
> You shouldn't use pam_mysql when there's a perfectly good mysql auxprop
> plugin available.
>

perfectly googd mysql auxprop plugin? does it support md5 or login and other
auth mechnism?

Best Regards,
Daniel



quota warning problem - Is it a bug of cyrus imap?

2003-06-30 Thread Daniel Qian | 钱省南
I have installed cyrus imap 2.13 recently and it works very well ecept
when the mailbox data reaches big volume. On a 10G quota for a mailbox
the server starts warning the outlook user and closes the connection
when the used space is just al little over 15% of the quota.  But for
small quota the server works fine- it starts the warning at 90% of the
quota limit. Is there anyone on this list aware of this problem? 

Best Regards,
Daniel Qian
 




Re: Is it possible to store user contact/ address book in imap server?

2003-07-14 Thread Daniel Qian | 钱省南
>>daniel qian wrote:
>>|  I wonder if there is a solution of this for Cyrus Imap like MS
>>Outlook with
>>|  Exchange. Many of my users like to have it because they access
their
>>email
>>|  both from office and home but they only want to maintain one copy
of
>>their
>>|  contacts.
>>|
>>|  Best Regards,
>>|  Daniel


>Check out the kroupware project at http://kolab.kde.org/

>They use cyrus imapd, postfix, openldap and the kde pim packages to
>store contacts, notes and calendar entries in the imap server.  The
>"items" are just mime emails storing each entry's data in folders they
>created.   


Thanks for the reply. But what I want is simply a email client running
on MS windows like Outlook (Express). Melberry seems to be a good choice
only it is not free source.

Best Regards,
Daniel



Re: Is it possible to store user contact/ address book in imap server?

2003-07-15 Thread Daniel Qian | 钱省南
I guess IMSP should fit naturally with Cyrus Imap but how do I do it so
that the user doesn't need to login again once he is in the client
program like Melberry?  I store user authentication credentials in
MySql.  Is it hard to get all these work together?

Best Regards,
Daniel Qian
 

>What  you want is the IMSP server (also a Cyrus project).  It is a
remote 
>preferences and address book server.  With it, users can access their 
>address books from anywhere.  The remote preferences aspect of it
preserves 
>their interface customizations so they get the same look & feel
wherever 
>they login from, and allows sysadmins to do a great deal of 
>preconfiguration.

>You may hear about ACAP.  Forget that, and setup IMSP.

>You'll need a client that supports IMSP.  Few do.  Execmail is one, but

>I've never used it.  The only other one I know of is Mulberry 
>(http://www.cyrusoft.com), but it is an excellent email client.

>Ted

>--On Monday, July 14, 2003 11:06 PM +0800 daniel qian
<[EMAIL PROTECTED]> 
>wrote:

>>  I wonder if there is a solution of this for Cyrus Imap like MS
Outlook
>> with  Exchange. Many of my users like to have it because they access
>> their email  both from office and home but they only want to maintain
one
>> copy of their  contacts.
>>
>>  Best Regards,
>>  Daniel
>>
>>