RE: Two questions
Thanks a lot everyone for the answers!!! -Original Message- On Wed, 2006-09-27 at 19:26 -0500, [EMAIL PROTECTED] wrote: su - cyrus -c ctl_mboxlist -d /var/lib/imap/mboxlist.txt but how can I recover my mailboxes from mboxlist.txt? cvt_cyrusdb will build a database from the dump. This will only rebuild the mailbox database. You also need to back up all the files in the cyrus directories. Do you mean I have to backup also /var/lib/imap? Just another question ;-) Working with ACLs I was able to assign rights to Cyrus users on different mailboxes. Now I try to explain with an example. Let's say I have a mailbox user.A and a mailbox user.B and that user A can access (read) user.B. Is it possible to connect Cyrus from Evolution as user A and access, with that connection, also user.B? Thank all of you very much!!! Stefano C. 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
replication, how to see if it 'up to date'
Hi, Does anybody know how to see if the sync replication is up to date? All suggestions are welcome. Rudy -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur Direction ICT, Infrastructure dept. Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 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: replication, how to see if it 'up to date'
On Thu, 28 Sep 2006, Rudy Gevaert wrote: Does anybody know how to see if the sync replication is up to date? All suggestions are welcome. I replicate all users from all masters to replicas about once a month and check the output for any inconsistancies. Something like: cyrus-23[cyrus:cyrus]$ replicate -s cyrus-24 -v -v -u dpc22 USER dpc22 USER_ALL dpc22 ENDUSER where replicate is just a little wrapper around sync_client. We also maintain databases of MD5 checksums for messages and cache entries, generated by make_md5. -- David Carter Email: [EMAIL PROTECTED] University Computing Service,Phone: (01223) 334502 New Museums Site, Pembroke Street, Fax: (01223) 334679 Cambridge UK. CB2 3QH. 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: replication, how to see if it 'up to date'
On Thu, 28 Sep 2006 09:55:53 +0100 (BST), David Carter [EMAIL PROTECTED] said: On Thu, 28 Sep 2006, Rudy Gevaert wrote: Does anybody know how to see if the sync replication is up to date? All suggestions are welcome. I replicate all users from all masters to replicas about once a month and check the output for any inconsistancies. Something like: cyrus-23[cyrus:cyrus]$ replicate -s cyrus-24 -v -v -u dpc22 USER dpc22 USER_ALL dpc22 ENDUSER where replicate is just a little wrapper around sync_client. We also maintain databases of MD5 checksums for messages and cache entries, generated by make_md5. Our monitoring script that runs every 2 minutes does a du -s on the {configdirectory}/sync directory and notifies us if it gets big (where big is obviously a per-instance variable) A less frequently run script searches the ps output for copies of sync_client. It then looks in they sync directory, and for any file called log-{N} it checks if there is a sync_client with PID {N}. If not, it tries to run it with -r -f. Finally, if there was no sync_client at all, it launches a new one with -r. Thirdly we have a tool which makes an imap connection to each of the master and replica (we run an imapd on a different port on the replica purely for this purpose) and does a bunch of checks on each mailbox. It has to run as each user to get SEEN state. This script has multiple levels of test, right up to one that actually randomly picks a few messages and fetches their bodies for comparison. It always checks at least flags and everything you can STATUS for. This tool also has an optional flag which can ssh to the apropriate servers and run reconstruct on the mailboxes as well as sync_client -u on the offending user if it finds inconsistencies. Obviously, there's a possibility that it catches changes where sync_client just hasn't caught up yet, but it retries multiple times with a tunable delay, so generally it will get the same value on one of the retries unless the folder is seeing a lot of traffic. Bron. -- Bron Gondwana [EMAIL PROTECTED] 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
setacl mailbox for virtual domain ids not working
Hi I have a cyrus 2.3.7 server running on linux ( centos) with virtual domains If I have try to setacls to a virtual domain-id it is not working From cyradm this is the error I am getting - cyradm --user=cyrus localhost IMAP Password: localhost sam user/alm1 [EMAIL PROTECTED] all setaclmailbox: [EMAIL PROTECTED]: lrswipkxtea: Invalid identifier --- Do I need to escape the '@' in some special way in the id Thanks Ram 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
Is loginrealms: * supposed to work?
Hi! Quick question: I have seen a setup of loginrealms: * in /etc/imapd.conf mentioned several times, but from what I can see, it does not work. Is there a wildcard to allow logins from any realm? Regards, Torsten 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: Two questions
On Thu, 2006-09-28 at 02:12 -0500, [EMAIL PROTECTED] wrote: Thanks a lot everyone for the answers!!! -Original Message- On Wed, 2006-09-27 at 19:26 -0500, [EMAIL PROTECTED] wrote: su - cyrus -c ctl_mboxlist -d /var/lib/imap/mboxlist.txt but how can I recover my mailboxes from mboxlist.txt? cvt_cyrusdb will build a database from the dump. This will only rebuild the mailbox database. You also need to back up all the files in the cyrus directories. Do you mean I have to backup also /var/lib/imap? Yes and /var/spool/imap, if you're wanting to know about performing a full backup. If so, then visit http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/Backup (Although, there isn't actually information about /restoring/ the backup.) Just another question ;-) Working with ACLs I was able to assign rights to Cyrus users on different mailboxes. Now I try to explain with an example. Let's say I have a mailbox user.A and a mailbox user.B and that user A can access (read) user.B. Is it possible to connect Cyrus from Evolution as user A and access, with that connection, also user.B? Yes, sometimes. Evolution can be odd strange sometimes with shared folders. Cyrus 2.2 used to work with older versions of Evolution, but I can't get it to work with the latest Evo 2.6.3, although it seems to work with Cyrus 2.3. Wil -- Wil Cooley [EMAIL PROTECTED] http://nakedape.cc signature.asc Description: This is a digitally signed message part 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: slow populating a mailbox
On Mon, Sep 25, 2006 at 12:04:20PM +0200, Kjetil Torgrim Homme wrote: On Sun, 2006-09-24 at 23:17 -0700, Ross Boylan wrote: I've been using the UW-IMAP mailutil to copy messages from my regular Unix mailboxes (for mutt) to IMAP. The messages are all going to a single folder for a single user. My impression is that this is rather slow, about 20 minutes for 100MG worth of messages. There is virtually no CPU use while this happens. number of messages is much more important than the size of them. I did a few more runs, and I'm getting about 18 messages/second (e.g., 15,000 messages / 14 minutes; 75MG). Which doesn't sound so terrible. My seen database, for example, is active. we've recently relocated a bunch of mailboxes using imapsync, we got a speed of about 300 KiB/s for our users. users which had mostly large files with attachments went faster, traditional Unix users went slower, perhaps a factor of two either way. The source traditional mailbox and destination IMAP server are on the same machine, using the same hard disk (no, it's not a real server). that's not improving matters, of course. Second, where should I look to diagnose or solve this problem? you could try oprofile to get systemwide performance numbers. oprofile (thanks--I wasn't aware of this tool) shows CPU: P4 / Xeon with 2 hyper-threads, speed 3000.14 MHz (estimated) Counted GLOBAL_POWER_EVENTS events (time during which processor is not stopped) with a unit mask of 0x01 (manda tory) count 10 GLOBAL_POWER_E...| samples| %| -- 2414674 55.8774 no-vmlinux 985527 22.8059 libc-client.so.2002edebian.1 227336 5.2607 libqt-mt.so.3.3.6 204198 4.7253 libc-2.3.6.so 116551 2.6971 imapd 82752 1.9149 libz.so.1.2.3 41630 0.9634 libkhtml.so.4.2.0 31830 0.7366 libasound.so.2.0.0 30574 0.7075 oprofiled I'm not at all sure what that means, but it seems to show that a lot of the time is inside the kernel, and libc-client, which I think is part of the UW mailutils, is #2 on the list. Ross 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: Sieve vacation rule not working..
Well, it's been over a month - I received a few responses to this email but none that actually helped me resolved the problem.Reject works fine. Vacation doesn't. The message is delivered correctly to the recepient, but no auto-response is sent out. I am using SquirrelMail mail to create the sieve script and it seems to be working OK, I looked in /var/spool/imap/sieve/u/user and found the script there, in compiled and source form, and the correct links. but cyrus isn't doing it nor generating any error messages anywhere.Is there anyone out there who might be able to help? please?Thanks - YossieP.s. I am using the synonym milter to create a copy of every email (in/out) in the user mail-archive. Here are the lines I got out of /var/log/mail/info that might help diagnose the problem (I can't find a description of what the duplicate_check and duplicate_mark message format is anywhere):Sep 28 12:04:29 MAILHOST sendmail[22055]: k8SJ4TdQ022055: from=[EMAIL PROTECTED], size=2020, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=SMTP, relay=barracuda.corp.OURHOST.com [192.168.42.2]Sep 28 12:04:29 MAILHOST sendmail[22055]: k8SJ4TdQ022055: Milter add: rcpt: mail-archiveSep 28 12:04:29 MAILHOST sendmail[22055]: k8SJ4TdQ022055: Milter add: header: X-Synonym: Copied by Synonym (http://www.modulo.ro/synonym) to: mail-archiveSep 28 12:04:29 MAILHOST lmtpunix[22050]: accepted connectionSep 28 12:04:29 MAILHOST lmtpunix[22050]: lmtp connection preauth'd as postmanSep 28 12:04:29 MAILHOST cyrus-master[22059]: about to exec /usr/lib/cyrus-imapd/lmtpdSep 28 12:04:29 MAILHOST lmtpunix[22059]: executedSep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_check: [EMAIL PROTECTED] user.mail-archive 0Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: starting txn 2147484345Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: committing txn 2147484345Sep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_mark: [EMAIL PROTECTED] user.mail-archive 1159470269 512909Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: starting txn 2147484346Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: committing txn 2147484346Sep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_mark: [EMAIL PROTECTED] [EMAIL PROTECTED] 1159470269 0Sep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_check: [EMAIL PROTECTED] user.yossie 0Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: starting txn 2147484347Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: committing txn 2147484347Sep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_mark: [EMAIL PROTECTED] user.yossie 1159470269 115525Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: starting txn 2147484348Sep 28 12:04:29 MAILHOST lmtpunix[22050]: mystore: committing txn 2147484348Sep 28 12:04:29 MAILHOST lmtpunix[22050]: duplicate_mark: [EMAIL PROTECTED] [EMAIL PROTECTED] 1159470269 0Sep 28 12:04:29 MAILHOST sendmail[22058]: k8SJ4TdQ022055: to=mail-archive,[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=cyrusv2, pri=122020, relay=localhost, dsn=2.0.0, stat=SentOn Aug 18, 2006, at 3:51 PM, Joseph Silverman wrote:All other sieve stuff works fine.Here is the sendmail.mc that is relevant:(Sendmail 8.13.4/8.13.4)define(`_FFR_MILTER', `true')dnlINPUT_MAIL_FILTER(`Synonym', `S=local:/var/run/synonym/synonym.sock, T=C:10m;S:1s;R:1s;E:5m')dnldefine(`confLOCAL_MAILER',`cyrusv2')dnldefine(`CYRUSV2_MAILER_ARGS',`FILE /var/lib/imap/socket/lmtp')dnlMAILER(cyrusv2)dnlAnd here is the contents (edited) of my /etc/imapd.conf:(Cyrus IMAP4 v2.2.12-Mandriva-RPM-2.2.12-15mdk)configdirectory: /var/lib/imappartition-default: /var/spool/imapadmins: cyrusallowanonymouslogin: noaltnamespace: trueunixhierarchysep: truesievedir: /var/lib/imap/sievesendmail: /usr/sbin/sendmail.sendmailhashimapspool: trueallowplaintext: 1sasl_pwcheck_method: saslauthdsasl_mech_list: PLAIN LOGINCan anyone help me fix this setup? Tell me where to look or at least how to debug it?THANKS - YossieCyrus Home Page: http://asg.web.cmu.edu/cyrusCyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.eduList Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html 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: only cleartext in sasldb?
Marten Lehmann wrote: Hello, it seems that sasldb stores all password in cleartext. Is it possible to use md5 or crypt as in /etc/passwd? Not without breaking non-plaintext mechanisms like CRAM-MD5 and DIGEST-MD5. -- Kenneth Murchison Systems Programmer Project Cyrus Developer/Maintainer Carnegie Mellon University 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
confusing authentication
Hello, I'm using getpwent for admin authentication and salsdb for commoon mailbox users. I noticed a strange behaviour: I'm not using salsauthd. But when I'm just writing sasl_pwcheck_method: getpwent auxprop I always get NO Login failed: user not found (only admin users not found) When I have sasl_pwcheck_method: getpwent auxprop saslauthd and salsauthd isn't running I get NO Login failed: generic failure Why do I have to include salsauthd and even need to have it running, while it is not being used? Regards Marten 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
Sieve only for lmtp?
Is sieve involved with mail delivered directly via IMAP? I think not (the docs say Sieve is a mail filtering language that can filter mail into an appropriate IMAP mailbox as it is delivered via lmtp.), but I want to double-check. I'm using cyrus 2.2. Thanks. -- Ross Boylan wk: (415) 514-8146 185 Berry St #5700 [EMAIL PROTECTED] Dept of Epidemiology and Biostatistics fax: (415) 514-8150 University of California, San Francisco San Francisco, CA 94107-1739 hm: (415) 550-1062 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: confusing authentication
On Fri, 2006-09-29 at 00:02 +0200, Marten Lehmann wrote: Why do I have to include salsauthd and even need to have it running, while it is not being used? Unless you're not actually using shadow passwords or have devised some means of allowing Cyrus to actually read /etc/shadow, you need to use saslauthd. Wil -- Wil Cooley [EMAIL PROTECTED] http://nakedape.cc signature.asc Description: This is a digitally signed message part 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: Sieve only for lmtp?
It most definitely is not since IMAP isn't a mail delivery protocol. LMTP applies the Sieve rules during delivery. --On September 28, 2006 10:10:36 PM + Ross Boylan [EMAIL PROTECTED] wrote: Is sieve involved with mail delivered directly via IMAP? I think not (the docs say Sieve is a mail filtering language that can filter mail into an appropriate IMAP mailbox as it is delivered via lmtp.), but I want to double-check. I'm using cyrus 2.2. Thanks. -- Ross Boylan wk: (415) 514-8146 185 Berry St #5700 [EMAIL PROTECTED] Dept of Epidemiology and Biostatistics fax: (415) 514-8150 University of California, San Francisco San Francisco, CA 94107-1739 hm: (415) 550-1062 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 -- Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds. -- Samuel Butler 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