Re: Possible to authorize as different user?
--On Tuesday, December 02, 2014 16:13:30 -0500 Adam Tauno Williams awill...@whitemice.org wrote: Quoting Steinar Kaarø steinar.ka...@ntnu.no: Is it possible to authorize as a different user when logging into Cyrus using an ordinary mail client? From what I understand this is only Is it possible to authorize as a different user when logging into Cyrus --- Yes, that is just SASL. Do this all the time. using an ordinary mail client --- Almost certainly not. possible in Cyrus when using SASL PLAIN, but are there any clients that support the authorization part of the PLAIN mechanism? None that I am aware of. Probably Mulberry did, as it supported *everything*; but is very moribund if not simply gone [licensing was always bizarre]. Thank you for your response. I'm a Mulberry user, so I'm familiar with the possibilities in that client. My problem is that I'm trying to get Outlook 2013 to handle public folders. This is not working very well, and it seems to be a better solution to create non-login Cyrus users that the ordinary Outlook users can authorize as. In Outlook you then create one account setup for each authorized user. With this solution the sent messages and trash messages are stored in the correct folders on the server without any client tweaking. Exchange IMAP has solved the authorization problem by letting the LOGIN mechanism support this username syntax: authid/authzid. This allows all types of clients to authorize as different users, and something similar would have been nice i Cyrus. A related feature in Cyrus does not seem to work as stated in the man page: imapmagicplus: 0 Only list a restricted set of mailboxes via IMAP by using userid+namespace syntax as the authentication/authorization id. Using userid+ (with an empty namespace) will list only subscribed mailboxes. Providing a namespace after + does not have any effect, and a comment in the source says that this is not implemented. -- Steinar Kaarø Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: restore from cyrdump
Hello Cyrus Friends, On Sun, Dec 07, 2014 at 01:01:52PM +0100, Willy Offermans wrote: Dear Cyrus friends, I want to simulate a possible crash of the company's mail server. At the moment the server works smoothly, but you never know... It is best to be prepared for it and to have possibilities to restore critical data. E-mail info was appointed to be one of the critical data. So I picked one user and cyrdump his data into a file. ``cyrdump -v user.$USER /tmp/$USER.dump'' If I make a quick scan of the file, it looks like a dump of mails of the user. Moreover, there is flag info per mail subfolder. There is info about subfolders and there is info about the mail IDs in each subfolder. Summarized, there is all the info needed to reconstruct the user's mailfolder and mails. I created the mailbox lists su - cyrus -c ctl_mboxlist -d /tmp/mailboxes.txt Now I want to restore the data of user.$USER on a different server. How should I proceed? I might write a script to reconstruct the data from the $USER.dump file, but I guess there is already a tool to do so. However I'm not aware of such tool and moreover I cannot find any info on http://www.cyrusimap.org/ concerning this. Can someone help me out? To my opinion, the restore procedure should be well documented. -- Is there nobody with a good suggestion? -- Met vriendelijke groeten, With kind regards, Mit freundlichen Gruessen, De jrus wah, Wiel * W.K. Offermans Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: restore from cyrdump
On Wed, Dec 10, 2014, at 02:03 AM, Willy Offermans wrote: Hello Cyrus Friends, On Sun, Dec 07, 2014 at 01:01:52PM +0100, Willy Offermans wrote: Dear Cyrus friends, I want to simulate a possible crash of the company's mail server. At the moment the server works smoothly, but you never know... It is best to be prepared for it and to have possibilities to restore critical data. E-mail info was appointed to be one of the critical data. So I picked one user and cyrdump his data into a file. ``cyrdump -v user.$USER /tmp/$USER.dump'' If I make a quick scan of the file, it looks like a dump of mails of the user. Moreover, there is flag info per mail subfolder. There is info about subfolders and there is info about the mail IDs in each subfolder. Summarized, there is all the info needed to reconstruct the user's mailfolder and mails. I created the mailbox lists su - cyrus -c ctl_mboxlist -d /tmp/mailboxes.txt Now I want to restore the data of user.$USER on a different server. How should I proceed? I might write a script to reconstruct the data from the $USER.dump file, but I guess there is already a tool to do so. However I'm not aware of such tool and moreover I cannot find any info on http://www.cyrusimap.org/ concerning this. Can someone help me out? To my opinion, the restore procedure should be well documented. -- Is there nobody with a good suggestion? Not really. Most people seem to be using LVM snapshots. We have a custom backup thing at FastMail. Building a better backup/restore for Cyrus has been on my todo list for a long time, but I keep not getting time to work on it :( Bron. -- Bron Gondwana br...@fastmail.fm Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: restore from cyrdump
Am Mittwoch, den 10.12.2014, 02:36 +1100 schrieb Bron Gondwana: On Wed, Dec 10, 2014, at 02:03 AM, Willy Offermans wrote: Hello Cyrus Friends, On Sun, Dec 07, 2014 at 01:01:52PM +0100, Willy Offermans wrote: Dear Cyrus friends, I want to simulate a possible crash of the company's mail server. At the moment the server works smoothly, but you never know... It is best to be prepared for it and to have possibilities to restore critical data. E-mail info was appointed to be one of the critical data. So I picked one user and cyrdump his data into a file. ``cyrdump -v user.$USER /tmp/$USER.dump'' If I make a quick scan of the file, it looks like a dump of mails of the user. Moreover, there is flag info per mail subfolder. There is info about subfolders and there is info about the mail IDs in each subfolder. Summarized, there is all the info needed to reconstruct the user's mailfolder and mails. I created the mailbox lists su - cyrus -c ctl_mboxlist -d /tmp/mailboxes.txt Now I want to restore the data of user.$USER on a different server. How should I proceed? I might write a script to reconstruct the data from the $USER.dump file, but I guess there is already a tool to do so. However I'm not aware of such tool and moreover I cannot find any info on http://www.cyrusimap.org/ concerning this. Can someone help me out? To my opinion, the restore procedure should be well documented. -- Is there nobody with a good suggestion? Not really. Most people seem to be using LVM snapshots. We have a custom backup thing at FastMail. Building a better backup/restore for Cyrus has been on my todo list for a long time, but I keep not getting time to work on it :( Basically I run a simple master/replica setup and use LVM snaps in combination with rsnapshot for disaster recovery. Those snaps were archived with rdiff-backup later then. Another idea might be imapsync. But depending on how big your cyrus spool it will take its time. It's more a tool for moving mails between imap servers. I think a cyrus-replica setup is a good and stable way to handle a crash. Any backup based methods will lose changes in between the cycles. Ciao Marcus Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: restore from cyrdump
On 12/09/2014 09:03 AM, Willy Offermans wrote: Now I want to restore the data of user.$USER on a different server. How should I proceed? To move a single user to a new server, in the past I've used imapsync to good effect (http://imapsync.lamiral.info/): imapsync --host1 my_old_server --authmech1 LOGIN --user1 pgoetz --password1 x --host2 my_new_server --authmech2 PLAIN --user2 pgg --password2 x In terms of a general backup scheme, since I have no idea how to set up a replication server, I've been toying with using imapsync for general backups to another (otherwise unused) imap server. I think the only way to do this for the entire mail store is to create a cyrus-backup user that has read access to all folders on the primary server and read/write access to the backup mail server. However, I haven't tested this and don't know if this will work properly. Also, as suggested by Marcus Schopen, this is liable to be quite slow, as each user has be to synced individually AFAIK. (I'm pretty sure the last time I used imapsync it was free, but the author appears to now be selling it.) Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
Re: restore from cyrdump
On 12/09/2014 09:36 AM, Bron Gondwana wrote: Is there nobody with a good suggestion? Not really. Most people seem to be using LVM snapshots. OK, I'll bite. Since a couple of times I've had to restore mail using reconstruct after having lost all the metadata, I'm wondering what the point is of either cyrdump or ctl_mboxlist list if you can't restore the mail spool from their outputs? What does cyrdump do, anyway? I would expect it to also backup all the metadata; else it amounts to tar'ing up ~/cyrus/user. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus