Re: How to keep flags after move mailboxes to another server
On Thu, 7 Jun 2007, Amy Jin wrote: > Hi There, > > I'm running cyrus 2.2.12 on several servers . Recently, I need to move > mailboxes from one server > to another server because of storage shortage. > > I don't have a front-end Cyrus Aggregator, so I can't use cyradm command > "xfermailbox" to do it. > > I write a script to create mailbox and copy mail date to target server. > To avoid duplicated mailbox_id, > the cyrus.header file will not be copied to the target server. > After reconstruct the new mailbox. I loss all of the flags. The seen > flag is easy to handle, just replace the old > mailbox_id with the new id in user.seen file. But how can I keep the > other flags (e.g. important, work, personal, to do, later), > it seems they are in the cyrus.index file? 'imapsync' is really the tool you want to use for this. It will create an exact copy of a mailbox, including flags. Andy 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
How to keep flags after move mailboxes to another server
Hi There, I'm running cyrus 2.2.12 on several servers . Recently, I need to move mailboxes from one server to another server because of storage shortage. I don't have a front-end Cyrus Aggregator, so I can't use cyradm command "xfermailbox" to do it. I write a script to create mailbox and copy mail date to target server. To avoid duplicated mailbox_id, the cyrus.header file will not be copied to the target server. After reconstruct the new mailbox. I loss all of the flags. The seen flag is easy to handle, just replace the old mailbox_id with the new id in user.seen file. But how can I keep the other flags (e.g. important, work, personal, to do, later), it seems they are in the cyrus.index file? Thanks. -- Amy Jin, Systems Analyst System Services, University of Calgary Information Technologies 2500 University Drive, Calgary, Alberta, Canada T2N 1N4 Phone (403) 220-8997, Fax (403) 282-9361 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: one user folder appears under all accounts
Ah ha! Found another reference to the System I/O error on running sam which was a big hint. File system didn't jive with mailbox definition. I found where the mailbox was on the file system (under another account?) I've made the usr/760401c directory where user/ is, and then sam worked, and I could delete the mailbox. Problem solved. On 6/7/07, D G Teed <[EMAIL PROTECTED]> wrote: I found that these are accounts which were created in error. Usually the accounts are named user.XXX , while in these cases it was a typo - one without the leading user. and the other with usr. Using cyradm I could set the acl on one of them so cyrus could delete, and I deleted it. That is one instance resolved. In the other case, I get back an error: > lam usr.760401c anyone lrs > sam usr.760401c cyrus lrswipcda setaclmailbox: cyrus: lrswipcda: System I/O error The same error is shown from cyrdel, a perl script using IMAP::Admin to delete a mailbox. reconstruct isn't recognized on this server, and renaming to the conventional name fails. Does anyone have a sugegstion on how to get rid of this cruft? --Donald On 6/7/07, D G Teed <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm not super experienced with cyrus options, so I may need a pointer on > what's up. > > We have 2 distinct cyrus servers which exhibit a problem. On each > server, > there is a folder, which is the name of a user's mailbox, which all > accounts have rights to. > > We don't see anything in that folder. In one case that is because the > mailbox no longer > exists on cyrus, and in the other case there is no mail in it (two > different user names > appear on these). > > Deleting and recreating the mailbox didn't impact this issue in the > second case where > the mailbox exists. > > For regular imap clients, this doesn't seem to become an issue, but for > webmail users, > (using Horde/IMP), they can see the folder and people ask why it is > there. > > Are there any suggestions how we can clean this shared folder (or > whatever it is) up? > > Regards, > > --Donald > > 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: one user folder appears under all accounts
I found that these are accounts which were created in error. Usually the accounts are named user.XXX , while in these cases it was a typo - one without the leading user. and the other with usr. Using cyradm I could set the acl on one of them so cyrus could delete, and I deleted it. That is one instance resolved. In the other case, I get back an error: lam usr.760401c anyone lrs sam usr.760401c cyrus lrswipcda setaclmailbox: cyrus: lrswipcda: System I/O error The same error is shown from cyrdel, a perl script using IMAP::Admin to delete a mailbox. reconstruct isn't recognized on this server, and renaming to the conventional name fails. Does anyone have a sugegstion on how to get rid of this cruft? --Donald On 6/7/07, D G Teed <[EMAIL PROTECTED]> wrote: Hi, I'm not super experienced with cyrus options, so I may need a pointer on what's up. We have 2 distinct cyrus servers which exhibit a problem. On each server, there is a folder, which is the name of a user's mailbox, which all accounts have rights to. We don't see anything in that folder. In one case that is because the mailbox no longer exists on cyrus, and in the other case there is no mail in it (two different user names appear on these). Deleting and recreating the mailbox didn't impact this issue in the second case where the mailbox exists. For regular imap clients, this doesn't seem to become an issue, but for webmail users, (using Horde/IMP), they can see the folder and people ask why it is there. Are there any suggestions how we can clean this shared folder (or whatever it is) up? Regards, --Donald 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
one user folder appears under all accounts
Hi, I'm not super experienced with cyrus options, so I may need a pointer on what's up. We have 2 distinct cyrus servers which exhibit a problem. On each server, there is a folder, which is the name of a user's mailbox, which all accounts have rights to. We don't see anything in that folder. In one case that is because the mailbox no longer exists on cyrus, and in the other case there is no mail in it (two different user names appear on these). Deleting and recreating the mailbox didn't impact this issue in the second case where the mailbox exists. For regular imap clients, this doesn't seem to become an issue, but for webmail users, (using Horde/IMP), they can see the folder and people ask why it is there. Are there any suggestions how we can clean this shared folder (or whatever it is) up? Regards, --Donald 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: groups, members, LDAP and ptloader
Hi, list. 1. I'm also using ldap-based groups ACL in cyrus. When I add any user to more them 1 group, cyrus can't autorize them. I can't find any documentation about this behavior. Is it normal? 2. How to configure default ldap_realm for connecting to saslauthd? I have two domains -- 'domain.com' and 'team.domain.com' and want to make second my default (users must connect to server as 'user', not '[EMAIL PROTECTED]'). Is it possible? My imapd.conf: ... auth_mech: pts defaultdomain: domain.com ldap_base: ou=users,o=domain ldap_filter: (uid=%U) ldap_group_base: ou=cyrus,ou=mail,o=domain ldap_group_filter: (cn=%U) ldap_group_scope: one ldap_member_attribute: cn ldap_member_base: ou=cyrus,ou=mail,o=domain ldap_member_filter: (uniqueMember=%D) ldap_member_method: filter ldap_sasl: no ldap_scope: one ldap_start_tls: yes ldap_tls_cacert_file: /etc/ssl/cacert.pem ldap_uri: ldap://ldap.domain.com pts_module: ldap sasl_mech_list: plain login sasl_pwcheck_method: saslauthd servername: mail.domain.com tls_ca_file: /etc/ssl/cacert.pem tls_cert_file: /usr/local/etc/ssl/mail.domain.com.crt tls_key_file: /usr/local/etc/ssl/mail.domain.com.key unixhierarchysep: yes virtdomains: yes saslauthd.conf: ldap_servers: ldap://ldap.domain.com ldap_tls_cacert_file: /etc/ssl/cacert.pem ldap_search_base: ou=%3,o=%2 ldap_default_realm: users.domain.com ldap_filter: uid=%U ldap_start_tls: yes 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