RE: Tutorial on how to backup/restore cyrus
Hello again. Is it really no one on the list can suggest me some backup/restore howto for Cyrus mailboxes? I believe that there are someguys on the list who can help. So please be so nice to answer me. Best Regards, Leon Kolchinsky From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Sunday, September 18, 2005 12:44 PMTo: info-cyrus@lists.andrew.cmu.eduSubject: Tutorial on how to backup/restore cyrus Hello All, Could you please point me to some good tutorial/manual on how to backup and restore Cyrus DB and mailboxes. Best Regards, Leon Kolchinsky Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
RE: Tutorial on how to backup/restore cyrus
--On Monday, September 19, 2005 02:00:14 PM +0300 [EMAIL PROTECTED] wrote: Is it really no one on the list can suggest me some backup/restore howto for Cyrus mailboxes? I believe that there are some guys on the list who can help. So please be so nice to answer me. As a start you could look at: http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/Backup Didi -- - Didi Rieder [EMAIL PROTECTED] PGPKey ID: 3431D0B0 - pgpjCZ3c4MKiU.pgp Description: PGP signature Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Tutorial on how to backup/restore cyrus
Hi Leon, There is (one of many) way(s) how you can perfom a backup: This script is only for the mailboxes (/var/spool/mail/imap in my case) and the files in /var/imap (for example: mailboxes.db) script #/bin/bash #first do an unstable copy (just to reduce the downtime of cyrus later) tmplog=/root/backupdir/tmpimaplog echo start backup of imap... $tmplog 21 echo rsync of /var/imap $tmplog 21 rsync -a --delete /var/imap /raid/mail_backup/tmpstore/varimap/ \ $tmplog 21 echo rsync of /raid/mail/imap $tmplog 21 rsync -a --delete /var/spool/mail/imap \ /raid/mail_backup/tmpstore/varspoolimap/ $tmplog 21 #now we do an rsync to stabilize the backup #shut down cyrus echo stopping cyrus $tmplog 21 /usr/local/bin/cyrus stop $tmplog 21 #sync with rsync to get a 'stable' backup # rsync -a --delete /var/imap /raid/mail_backup/tmpstore/varimap/ $tmplog 21 rsync -a --delete /var/spool/mail/imap \ /raid/mail_backup/tmpstore/varspoolimap/ $tmplog 21 #start cyrus echo starting cyrus... $tmplog 21 /usr/local/bin/cyrus start $tmplog 21 #finally we move the whole temporary backup of the disk onto a tape: #(requires an own script) #do the rest... (like a normal backup, but with the archived paths in imap.list echo starting rest of backup... $tmplog 21 /root/backupdir/backup_imap echo ...done. $tmplog 21 # clean the temporary directory rm -Rf /raid/mail_backup/tmpstore/* /script I hope you can use it... If you have questions just feel free to ask. best regards, Vittorio [EMAIL PROTECTED] wrote: Hello All, Could you please point me to some good tutorial/manual on how to backup and restore Cyrus DB and mailboxes. Best Regards, Leon Kolchinsky Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html -- Muth Vittorio . System Administration Hyperwave RD GmbH . Albrechtgasse 9 . A-8010 Graz t: +43.316.820.918.607 f: +43.316.820.918.99 m: [EMAIL PROTECTED] w: http://www.hyperwave.com Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
RE: Tutorial on how to backup/restore cyrus
Zitat von [EMAIL PROTECTED]: Hello again. Is it really no one on the list can suggest me some backup/restore howto for Cyrus mailboxes? I believe that there are some guys on the list who can help. So please be so nice to answer me. As a starting point have a look at http://acs-wiki.andrew.cmu.edu/twiki/bin/view/Cyrus/Backup Regards Andreas Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Tutorial on how to backup/restore cyrus
Hi Leon, [EMAIL PROTECTED] schrieb: A) So if anyone have some scripts with the snapshot feature who can share them, it would be nice to see them here. B) Also any scripts with the minimal downtime for the cyrus are welcomed. C) Any snapshot techniques (on reiserfs) are also very interesting and I like to here them. in early June, there were several messages on this list with the subject backup without stopping the imap server? I haven't read them all but perhaps you find somethinb usefil in these mails. Klaus Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Need Sanity Check Please
After four grueling weeks, I believe that I may have a stable postfix+cyrus+sasl+webcyr system. Please provide me a sanity check. My configuration is: A firewalled postfix environment with: (1) intranet domain = home.lan (2) three FQDNs = example.com example2.com example3.com If I need to provide more information, let me know. Below is the output from postfinger: postfinger - postfix configuration on Mon Sep 19 10:00:23 CDT 2005 version: 1.29 Warning: postfinger output may show private configuration information, such as ip addresses and/or domain names which you do not want to show to the public. If this is the case it is your responsibility to modify the output to hide this private information. [Remove this warning with the --nowarn option.] --System Parameters-- mail_version = 2.2.2 hostname = kirk.home.lan uname = Linux kirk.home.lan 2.6.12-1.1398_FC4 #1 Fri Jul 15 00:52:32 EDT 2005 i686 i686 i386 GN U/Linux --Packaging information-- looks like this postfix comes from RPM package: postfix-2.2.2-2.mysql.sasl2.fc4 --main.cf non-default parameters-- alias_database = hash:/etc/postfix/maps/aliases alias_maps = hash:/etc/postfix/maps/aliases body_checks = regexp:/etc/postfix/maps/body_checks broken_sasl_auth_clients = yes content_filter = spamfilter: disable_vrfy_command = yes header_checks = regexp:/etc/postfix/maps/header_checks html_directory = /usr/share/doc/postfix-2.2.2-documentation/html mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp mailq_path = /usr/bin/mailq.postfix mail_spool_directory = /var/spool/mail manpage_directory = /usr/share/man mime_header_checks = regexp:/etc/postfix/maps/mime_header_checks mydestination = $myhostname, localhost.$mydomain, localhost, mysql:/etc/postfix/mysql-destinati on.cf, hash:/etc/postfix/maps/hosted_domains mydomain = example.com myhostname = mail.example.com mynetworks = 127.0.0.0/8, hash:/etc/postfix/maps/network_table myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix readme_directory = /usr/share/doc/postfix-2.2.2-documentation/readme sender_canonical_maps = mysql:/etc/postfix/mysql-canonical.cf sendmail_path = /usr/sbin/sendmail.postfix smtpd_client_restrictions = permit_mynetworks smtpd_helo_required = yes smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_dest ination, reject_invalid_hostname, check_client_access hash:/etc/postfix/maps/access_client, che ck_client_access hash:/etc/postfix/maps/exceptions_clients, check_helo_access hash:/etc/postfix /maps/access_helo, check_helo_access hash:/etc/postfix/maps/verify_helo, check_sender_access ha sh:/etc/postfix/maps/access_sender, check_sender_access hash:/etc/postfix/maps/verify_sender, c heck_sender_access hash:/etc/postfix/maps/verify_domain, check_recipient_access hash:/etc/postf ix/maps/access_recipient, reject_unauth_pipelining, reject_non_fqdn_sender, reject_unknown_send er_domain, reject_unverified_sender, reject_multi_recipient_bounce, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unlisted_recipient, check_sender_access hash:/etc/postf ix/maps/no_verify_sender, reject_unverified_sender, check_recipient_access hash:/etc/postfix/ma ps/no_verify_recipient, reject_unverified_recipient, permit smtpd_restriction_classes = verify_domain_client, verify_domain_helo, verify_domain_s ender, verify_exceptions_recipients, verify_sender smtpd_sasl_auth_enable = yes smtpd_tls_auth_only = yes smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_cert_file = /etc/postfix/ssl/mail.example.key-cert.pem smtpd_tls_key_file = /etc/postfix/ssl/mail.example.key-cert.pem smtpd_tls_loglevel = 2 smtpd_tls_received_header = yes smtpd_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/maps/sasl_password smtp_sasl_security_options = noanonymous smtp_tls_note_starttls_offer = yes smtp_use_tls = yes soft_bounce = yes strict_rfc821_envelopes = yes transport_maps = hash:/etc/postfix/maps/transport virtual_alias_domains = hash:/etc/postfix/maps/hosted_domains virtual_alias_maps = hash:/etc/postfix/maps/virtual, mysql:/etc/postfix/mysql-virtual.cf --master.cf-- smtp inet n - n - 20 smtpd -o smtpd_proxy_filter=127.0.0.1:10025 -o smtpd_client_connection_count_limit=10 smtpsinet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes pickupfifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgrunix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounceunix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verifyunix - - n
RE: Tutorial on how to backup/restore cyrus
I currently use kolab which uses cyrus/postfix/ldap. They have a pretty good overview on their wiki in maintence section. Http://wiki.kolab.org I'd start there... And post specific questions to the list. -kevin -Original Message- From: [EMAIL PROTECTED] Subj: RE: Tutorial on how to backup/restore cyrus Date: Mon 2005 Sep 19 4:00 am Size: 1K To: [EMAIL PROTECTED], info-cyrus@lists.andrew.cmu.edu Hello again. Is it really no one on the list can suggest me some backup/restore howto for Cyrus mailboxes? I believe that there are someguys on the list who can help. So please be so nice to answer me. Best Regards, Leon Kolchinsky From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sund --- message truncated --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Where is imapd.conf option to direct postfix to /var/spool/imapd/user/mailbox?
On Mon, 2005-09-19 at 11:53 -0500, Flash Love wrote: Thanks. Under which conditions is mail_transport=cyrus correct? Sorry, I think I took your subject line too literally; are you using the 'cyrus' service from master.cf or LMTP for mailbox delivery, or are you using maildrop, local or other direct-delivery service service? The '/b/' directory is part of the mailbox hashing, which is normal if configured as such with Cyrus. The problem your pop3 client is having is (probably) not related to that. Wil -- Wil Cooley [EMAIL PROTECTED] Naked Ape Consulting, Ltd. http://nakedape.cc signature.asc Description: This is a digitally signed message part Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: HOWTO: Mailbox Restore
On Fri, 2005-09-16 at 10:25 +0200, Dawid van Wyngaard wrote: Got it figured out. All my NNN. files lost the . at the end of the file for some or other reason. Simply rename the existing NNN to NNN. and then doing a reconstruct it works. That's bizarre. Which filesystem is this, ext3? Wil -- Wil Cooley [EMAIL PROTECTED] Naked Ape Consulting, Ltd. http://nakedape.cc signature.asc Description: This is a digitally signed message part Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: HOWTO: Mailbox Restore
Wil Cooley wrote: On Fri, 2005-09-16 at 10:25 +0200, Dawid van Wyngaard wrote: Got it figured out. All my NNN. files lost the . at the end of the file for some or other reason. Simply rename the existing NNN to NNN. and then doing a reconstruct it works. That's bizarre. Which filesystem is this, ext3? The software doing the backup and restore may have stripped off the periods. -- Phil Brutsche [EMAIL PROTECTED] Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html