Re: "reconstruct -r" usage
Thanks, but I must have a different version or something, here's what i get when i run that. localhost.localdomain> reconstruct -r -f user.chris usage: reconstruct [-r] mailbox so that second line is telling me that my usage is incorrect. I cannot use the -f or the -m flag, and even though -r doesn't return an error by itself, it apparently has no effect for me. for me, "reconstruct" & "reconstruct -r" do absolutely the same thing, i.e. fix a single mailbox, no submailboxes. after running for 12 months with zero problems, we now experience random mailbox corruption (not neccessarily the main mailbox of each user, but submailboxes or main)and if a user selects one of these mailboxes that isn't quite right, the cpu goes to 100%. We've had the server lock up, and I'm suspecting that this might be part of the cause. (or perhaps it's a symptom? who knows) At least we never lose any messages. the server is running redhat9, postfix-2.0.12 & cyrus-imapd-2.1.13-4. I'll just keep looking. Thanks again. e Quoting Jules Agee <[EMAIL PROTECTED]>: > reconstruct -r -f > > Eli Cantu wrote: > > >Hello all, > > > >If I am trying to reconstruct user.chris.Sent and user.chris.Save, should I > be > >able to simply run: "reconstruct -r user.chris"? > > > >If so, it does not seem to work. I have to manually reconstruct every single > >subdirectory. > > > >If I misunderstood the "-r" option, what is it used for? > > > >thanks, > >Eli > > > > > > > >- > >This mail sent through IMP: http://horde.org/imp/ > > > >--- > >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 > > > > > > > - This mail sent through IMP: http://horde.org/imp/ --- 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: Please help, Perl Module problem.
Joe, Thanks for this, can you tell me which files I need to change. I assume that you mean cyradm and to change the lines that execute the perl command. Thanks, Neil. On Thu, 2004-04-15 at 15:55, Joe Rhett wrote: > Neil, open the files in question and modify the four real lines of the > script so that you have -I/install/location/lib to where the perl modules are. > > This has been an ongoing bug that is indecently easy to fix, but Rob won't > accept any patches on it. He evidently thinks that installing modules into > the sitewide perl installation is the right idea. I believe that it's > plain wrong, and want to use the libraries from the cyrus installation. > It's a two-line patch, but nobody will accept it. > > On Thu, Apr 15, 2004 at 02:54:27PM +0100, Neil Marjoram X 663711 wrote: > > Thanks for that, I have now recompiled SASL and imap in the default > > location, it seems the PREFIX is set in the Perl makefile for imap, and > > thus it loads in the Cyrus tree instead of the Perl tree. My recompile > > used default locations and now all is installed where I think it should > > be. How ever it still does not work. > > > > Executing the cyradm command now produces this error: > > > > Can't load > > '/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Cyrus/IMAP/IMAP.so' for > > module Cyrus::IMAP: ld.so.1: perl: fatal: relocation error: file > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Cyrus/IMAP/IMAP.so: symbol > > db_strerror: referenced symbol not found at > > /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229. > > at > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > line 44 > > Compilation failed in require at > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > line 44. > > BEGIN failed--compilation aborted at > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > line 44. > > Compilation failed in require at > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Shell.pm > > line 60. > > BEGIN failed--compilation aborted at > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Shell.pm > > line 60. > > Compilation failed in require. > > BEGIN failed--compilation aborted. > > > > I am still getting this error in the auth.log when I attempt to test the > > imap server : > > > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imtest[29027]: [ID 702911 > > auth.warning] Could not find a dlname line in .la file: libsasldb.la > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imap[29026]: [ID 702911 > > auth.notice] Bad IPREMOTEPORT value > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imap[29026]: [ID 702911 > > auth.notice] Bad IPLOCALPORT value > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imtest[29027]: [ID 702911 > > auth.notice] Bad IPLOCALPORT value > > Apr 15 14:47:23 lowestoft.adastral.ucl.ac.uk lmtpunix[29031]: [ID 702911 > > auth.warning] Could not find a dlname line in .la file: libsasldb.la > > > > Anybody any clues ? > > > > Thanks > > > > Neil. > > > > On Thu, 2004-04-15 at 14:21, Heinz Ulrich Stille wrote: > > > On Thursday 15 April 2004 12:37, Neil Marjoram X 663711 wrote: > > > > I have found the Cyrus Perl module located in the directory I installed > > > > cyrus in : /opt/cyrus/lib/perl5/site_perl/5.8.0/sun4-solaris/. How do I > > > > get it installed in the Perl tree? > > > > > > Did you install cyrus imap from a precompiled package? It should be installed > > > into the perl tree if you compile it yourself. Alternatively set the perl > > > include path (no idea how) or use an utility like "graft" (see freshmeat) to > > > symbolically link it there, that's what I do. (I did compile everything > > > myself, though, including perl.) > > > > > > No idea about the .la problem. > > > > > > MfG, Ulrich > > > > --- > > 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 --- 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
北京天通特价机票网
Title: New Page 1 北 京 天 通 特 价 机 票 网 本本邮件由商务先锋友情制作 http://bizemail.126.com 业务联系: [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
R: ?????????
Title: New Page 1 NO SPAM, DAMN IT! -Messaggio originale-Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Inviato: venerdì 16 aprile 2004 10.56A: [EMAIL PROTECTED]Oggetto: ? 北 京 天 通 特 价 机 票 网 本本邮件由商务先锋友情制作 http://bizemail.126.com 业务联系: [EMAIL PROTECTED]
Permission denied when post on Shared Folder
Hi, I'm using Cyrus-imap 2.1.16 and postfix 2.0.6 and LDAP I've created a Shared Folders (test) with the following ACL anyone : lrs raphael : p But when [EMAIL PROTECTED] posts a mail to [EMAIL PROTECTED], the following error occurs : Permission Denied. If I change ACL like that : anyone : lrsp, raphael can post. I don't understand why it's not working because raphael is know in LDAP. Thank you, Raphael --- 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: Permission denied when post on Shared Folder
On Fri, 2004-04-16 at 12:23, Raphael Berghmans wrote: > Hi, > > I'm using Cyrus-imap 2.1.16 and postfix 2.0.6 and LDAP > > I've created a Shared Folders (test) with the following ACL > > anyone : lrs > raphael : p > > But when [EMAIL PROTECTED] posts a mail to [EMAIL PROTECTED], the following > error occurs : Permission Denied. If I change ACL like that : anyone : > lrsp, raphael can post By posting you mean sending an email to [EMAIL PROTECTED] right? Also you're using the + notation, right? > . > > I don't understand why it's not working because raphael is know in LDAP. Consider this: most probably you MTA delivers the mail to Cyrus without knowing who raphael is. If you want Cyrus to only let raphael post, them this must happen through an authenticated LMTP session. I'm no expert here, but take a look at Postfixs LMTP.README or something for more info on the subject. Tarjei > Thank you, > > Raphael > > > > > > --- > 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 --- 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
reproducable segfaults when using --with-auth=krb5
Hi, on a NetBSD (1.6.2) i386 system I'm using the following software: cyrus-imapd-2.2.3 cyrus-sasl-2.1.18 heimdal-0.6.1 When compiling Cyrus IMAPd using the krb5 authorisation module (--with-auth=krb5), there are repoducable segfaults with pop3d and lmtpd. The following is logged: Apr 16 11:21:30 bart master[16202]: about to exec /usr/pkg/cyrus/bin/pop3d Apr 16 11:21:30 bart pop3[16202]: executed Apr 16 11:21:30 bart pop3[16202]: accepted connection Apr 16 11:21:33 bart pop3[16202]: login: bart.local[192.168.12.104] jukka plaintext Apr 16 11:21:33 bart master[16160]: process 16202 exited, signaled to death by 11 Apr 16 11:21:33 bart master[16160]: service pop3 pid 16202 in BUSY state: terminated abnormally [...] Apr 16 11:24:29 bart master[16298]: about to exec /usr/pkg/cyrus/bin/lmtpd Apr 16 11:24:29 bart lmtpunix[16298]: executed Apr 16 11:24:29 bart lmtpunix[16298]: accepted connection Apr 16 11:24:29 bart lmtpunix[16298]: lmtp connection preauth'd as postman Apr 16 11:24:29 bart master[16160]: process 16298 exited, signaled to death by 11 Apr 16 11:24:29 bart master[16160]: service lmtpunix pid 16298 in BUSY state: terminated abnormally pop3test gets the following: $ pop3test -m user bart.local [...] Please enter your password: C: USER jukka S: +OK Name is a valid mailbox C: PASS failure: prot layer failure Exactly the same happens when using GSSAPI (pop3test -m gssaspi). My Postfix LMTP client logs this: Apr 16 11:24:29 bart postfix/lmtp[16278]: D7DF65342: to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=/socket/lmtp[/socket/lmtp], delay=29218, status=deferred (lost connection with /socket/lmtp[/socket/lmtp] while sending MAIL FROM) BTW, is it possible to use lmtptest when lmtpd is listening on a unix socket only? However, imapd is working fine, no segfaults so far... A trace of a pop3d process: [...] 15918 pop3dCALL open(0xbfbf85f4,0x2,0) 15918 pop3dNAMI "/var/spool/imap/user/jukka/cyrus.header" 15918 pop3dRET open 9 15918 pop3dCALL __fstat13(0x9,0xbfbf8594) 15918 pop3dRET __fstat13 0 15918 pop3dCALL mmap(0,0x97,0x1,0x1,0x9,0,0,0) 15918 pop3dRET mmap 1231323136/0x49648000 15918 pop3dPSIG SIGSEGV SIG_DFL 15918 pop3dNAMI "pop3d.core" I already tried what's suggested in the FAQ about NetBSD systems (using map_nommap) without success, pop3d still segfaults. Here's the trace: [...] 1418 pop3dCALL open(0xbfbf85fc,0x2,0) 1418 pop3dNAMI "/var/spool/imap/user/jukka/cyrus.header" 1418 pop3dRET open 9 1418 pop3dCALL __fstat13(0x9,0xbfbf859c) 1418 pop3dRET __fstat13 0 1418 pop3dCALL lseek(0x9,0,0,0,0) 1418 pop3dRET lseek 0 1418 pop3dCALL read(0x9,0x8109800,0x97) 1418 pop3dGIO fd 9 read 151 bytes "\M-!\^B\M^K\rCyrus mailbox header "The best thing about this system was that it had lots of goals." --Jim Morris on Andrew 7bced5f6407fb7a8 jukka lrswipcda " 1418 pop3dRET read 151/0x97 1418 pop3dPSIG SIGSEGV SIG_DFL 1418 pop3dNAMI "pop3d.core" Compiling Cyrus IMAPd using the unix auth mod (--with-auth=unix) seems to solve the problems, no segfaults any more, everything works fine. Is this a known bug? Help is appreciated! TIA, Jukka -- bashian roulette: $ ((RANDOM%6)) || rm -rf ~ --- 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: "reconstruct -r" usage
Hi, Sort of a side note - we started having trouble like that. Turned out that our overnight antivirus scan of the mail store would find a virus, and quarantine (move!) the infected file, thus messing up the Cyrus indexing. Now we schedule a system-wide reconstruct after the virus scan, which seems to work. Back to the main topic, our cron entry (Red Hat Linux) is: su - cyrus -c "/usr/lib/cyrus-imapd/reconstruct -r user > /dev/null" and the "-r" does seem to work for us! John At 04:05 AM 4/16/2004, you wrote: after running for 12 months with zero problems, we now experience random mailbox corruption (not neccessarily the main mailbox of each user, but submailboxes or main)and if a user selects one of these mailboxes that isn't quite right, the cpu goes to 100%. We've had the server lock up, and I'm suspecting that this might be part of the cause. (or perhaps it's a symptom? who knows) At least we never lose any messages. Quoting Jules Agee <[EMAIL PROTECTED]>: > reconstruct -r -f > > Eli Cantu wrote: > > >Hello all, > > > >If I am trying to reconstruct user.chris.Sent and user.chris.Save, should I > be > >able to simply run: "reconstruct -r user.chris"? > > > >If so, it does not seem to work. I have to manually reconstruct every single > >subdirectory. > > > >If I misunderstood the "-r" option, what is it used for? > > Regards, John Conant === [EMAIL PROTECTED] "An expert is a [person] who has made all John Conant the mistakes which can be made in a very Aerodyne Research, Inc. narrow field" - Niels Bohr (attrib.) Billerica, MA 01821 (978)663-9500, ext. 292 FAX (978)663-4918 ===
Re: "reconstruct -r" usage
On Fri, 2004-04-16 at 22:58, Craig Ringer wrote: A message in which he failed to actually attach the file he was talking about. It's attached this time, as text/plain so that overzealous mail scanners don't remove it. Craig Ringer #!/bin/bash # # /var/tmp/scan/clamout is a file containg the output from the # initial clamscan run. # # Clamscan output lines for detected viri look like this: # /var/spool/imap/user/bob/subfolder/123.: FOUND W32.Virus # grep FOUND /var/tmp/scan/clamout > /var/tmp/scan/infected # Back up the messages to be deleted cat /var/tmp/scan/infected |\ cut -d ':' -f 1 |\ cpio -o -H crc > /var/spool/clam_quarantine/infected-mail-`date -I`.cpio # Delete the viruses from the spool rm -fv $(cat /var/tmp/scan/infected | cut -d ':' -f 1) # and rebuild altered mailboxes reconstruct $(cat /var/tmp/scan/infected |\ grep '/var/spool/imap/' |\ cut -d '/' -f 5- |\ cut -d ':' -f 1 |\ xargs -n 1 dirname |\ tr '/' '.' |\ sort | uniq)
Re: "reconstruct -r" usage
On Fri, 2004-04-16 at 22:20, John Conant wrote: > Hi, > > Sort of a side note - we started having trouble like that. Turned > out that our overnight antivirus scan of the mail store would find a virus, > and quarantine (move!) the infected file, thus messing up the Cyrus > indexing. Now we schedule a system-wide reconstruct after the virus scan, > which seems to work. I'm also doing nightly mail spool scans, but I've found another method to be quite effective when it comes to reconstructing the mailboxes. Our virus scanner writes a log to stdout, so I simply grep that for the string that indicates a detected virus. I then strip off the filenames and the rest of the log data, sort the output, pipe it through uniq, and use that output to reconstruct each mailbox that's been altered. Note that I do _not_ let the virus scanner quarantine the files; I do that myself. This approach can easily be adapted for a situation where the virus scanner quarantines the files, though. This script will only work out of the box for people using ClamAV and the same mail spool structure as me, but the general idea should work for most. I've attached the script. It's pretty primitive (I prefer Python, but tasks like this are quicker in the shell). Nonetheless, I think this is a cleaner way of doing things than reconstructing all the mailboxes. I'll be moving to using python's imaplib to do all this soon. As for the 'reconstruct -r' issue - I /think/ that only reconstructs mailboxes listed in the mailboxes db. Perhaps you want '-f -r' to look for mailboxes in subdirectories, too? Craig Ringer --- 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: Permission denied when post on Shared Folder
Tarjei Huse wrote: [snip] Consider this: most probably you MTA delivers the mail to Cyrus without knowing who raphael is. If you want Cyrus to only let raphael post, them this must happen through an authenticated LMTP session. I'm no expert here, but take a look at Postfixs LMTP.README or something for more info on the subject. [snip] This was discussed a couple of months ago on both this and the postfix list. Currently postfix does not pass authentication credentials off to the lmtp process, so you'll have to use sendmail or another MTA that does if you want to take advantage of this functionality. Or you could always just write a patch for postfix that passes the credentials. ;-) Cheers, -- Carl P. Corliss System Administrator / Developer http://www.xaraya.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: R: ?????????
On Fri, 16 Apr 2004, Luca Manganelli wrote: > NO SPAM, DAMN IT! What? You don't like spam with your eggs? -- Amos --- 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: Please help, Perl Module problem.
cyradm and really any script you run that fails because of the error you listed. And yes, the lines that execute perl. On Fri, Apr 16, 2004 at 09:29:03AM +0100, Neil Marjoram X 663711 wrote: > Joe, > > Thanks for this, can you tell me which files I need to change. I assume > that you mean cyradm and to change the lines that execute the perl > command. > > Thanks, > > Neil. > On Thu, 2004-04-15 at 15:55, Joe Rhett wrote: > > Neil, open the files in question and modify the four real lines of the > > script so that you have -I/install/location/lib to where the perl modules are. > > > > This has been an ongoing bug that is indecently easy to fix, but Rob won't > > accept any patches on it. He evidently thinks that installing modules into > > the sitewide perl installation is the right idea. I believe that it's > > plain wrong, and want to use the libraries from the cyrus installation. > > It's a two-line patch, but nobody will accept it. > > > > On Thu, Apr 15, 2004 at 02:54:27PM +0100, Neil Marjoram X 663711 wrote: > > > Thanks for that, I have now recompiled SASL and imap in the default > > > location, it seems the PREFIX is set in the Perl makefile for imap, and > > > thus it loads in the Cyrus tree instead of the Perl tree. My recompile > > > used default locations and now all is installed where I think it should > > > be. How ever it still does not work. > > > > > > Executing the cyradm command now produces this error: > > > > > > Can't load > > > '/usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Cyrus/IMAP/IMAP.so' for > > > module Cyrus::IMAP: ld.so.1: perl: fatal: relocation error: file > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/auto/Cyrus/IMAP/IMAP.so: > > > symbol db_strerror: referenced symbol not found at > > > /usr/local/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229. > > > at > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > > line 44 > > > Compilation failed in require at > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > > line 44. > > > BEGIN failed--compilation aborted at > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Admin.pm > > > line 44. > > > Compilation failed in require at > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Shell.pm > > > line 60. > > > BEGIN failed--compilation aborted at > > > /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris/Cyrus/IMAP/Shell.pm > > > line 60. > > > Compilation failed in require. > > > BEGIN failed--compilation aborted. > > > > > > I am still getting this error in the auth.log when I attempt to test the > > > imap server : > > > > > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imtest[29027]: [ID 702911 > > > auth.warning] Could not find a dlname line in .la file: libsasldb.la > > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imap[29026]: [ID 702911 > > > auth.notice] Bad IPREMOTEPORT value > > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imap[29026]: [ID 702911 > > > auth.notice] Bad IPLOCALPORT value > > > Apr 15 14:45:35 lowestoft.adastral.ucl.ac.uk imtest[29027]: [ID 702911 > > > auth.notice] Bad IPLOCALPORT value > > > Apr 15 14:47:23 lowestoft.adastral.ucl.ac.uk lmtpunix[29031]: [ID 702911 > > > auth.warning] Could not find a dlname line in .la file: libsasldb.la > > > > > > Anybody any clues ? > > > > > > Thanks > > > > > > Neil. > > > > > > On Thu, 2004-04-15 at 14:21, Heinz Ulrich Stille wrote: > > > > On Thursday 15 April 2004 12:37, Neil Marjoram X 663711 wrote: > > > > > I have found the Cyrus Perl module located in the directory I installed > > > > > cyrus in : /opt/cyrus/lib/perl5/site_perl/5.8.0/sun4-solaris/. How do I > > > > > get it installed in the Perl tree? > > > > > > > > Did you install cyrus imap from a precompiled package? It should be installed > > > > into the perl tree if you compile it yourself. Alternatively set the perl > > > > include path (no idea how) or use an utility like "graft" (see freshmeat) to > > > > symbolically link it there, that's what I do. (I did compile everything > > > > myself, though, including perl.) > > > > > > > > No idea about the .la problem. > > > > > > > > MfG, Ulrich > > > > > > --- > > > 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 -- Joe Rhett Chief Geek [EMAIL PROTECTED] Isite Services, Inc. --- 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: Skel for imap and sieve?
On Wed, 14 Apr 2004, Denny Schierz wrote: > hi, > > is there a nice way to create automatically a folder structur and sieve > filters for every new account? > > like INBOX. > INBOX.Draft > INBOX.Sent > INBOX.Trash > INBOX.Spam > > and create a sieve filter to move all ***SPAM*** Subjects into INBOX.Spam We use a perl script here to create new mailboxes for users. It seems like it would be trivial to also create some folders for users when the new mailbox is created... As for sieve, we use .sieve files in user's home directories, so it wouldn't be too hard to make a default .sieve file that each new user gets. Obviously, your system may be different. Andy --- 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: cyrus-imapd-2.2.3 startup problems
> Ah, now I see. > > RedHat has taken my cyrus-imapd src rpms and included it in Fedora Core 2 > beta. Unfortunately they 'optimized' it in a way that breaks it on other > older RedHat distributions. My originial package builds fine on every > RedHat distribution from 6.2 to current. You can find it here: > > http://www.invoca.ch/pub/packages/cyrus-imapd/ I retrieved cyrus-imapd-2.2.3-8.src.rpm, built and installed it. I made sure the proper directory structure was ceated in /var/lib/imap/. Once I start cyrus-imapd the imap and pop3 processed don't hang around for long. I am still getting error messages in the log. Before I installed the new rpm the old was removed (rpm -e) and the /var/lib/imap/ and /var/spool/imap/ directories were cleaned out. One more comments, both /var/lib/imap/ and /var/spool/imap/ are mounted via NFS. Apr 16 14:31:12 mailstore master[32632]: about to exec /usr/lib/cyrus-imapd/imapd Apr 16 14:31:12 mailstore master[32633]: about to exec /usr/lib/cyrus-imapd/imapd Apr 16 14:31:12 mailstore master[32634]: about to exec /usr/lib/cyrus-imapd/pop3d Apr 16 14:31:12 mailstore master[32635]: about to exec /usr/lib/cyrus-imapd/pop3d Apr 16 14:31:12 mailstore master[32636]: about to exec /usr/lib/cyrus-imapd/lmtpd Apr 16 14:31:12 mailstore imap[32632]: executed Apr 16 14:31:12 mailstore imaps[32633]: executed Apr 16 14:31:12 mailstore pop3[32634]: executed Apr 16 14:31:12 mailstore pop3s[32635]: executed Apr 16 14:31:12 mailstore lmtpunix[32636]: executed Apr 16 14:31:12 mailstore imap[32632]: IOERROR: lock_shared /var/lib/imap/mailboxes.db: No locks available Apr 16 14:31:12 mailstore imaps[32633]: IOERROR: lock_shared /var/lib/imap/mailboxes.db: No locks available Apr 16 14:31:12 mailstore pop3[32634]: IOERROR: lock_shared /var/lib/imap/mailboxes.db: No locks available Apr 16 14:31:12 mailstore pop3s[32635]: IOERROR: lock_shared /var/lib/imap/mailboxes.db: No locks available Apr 16 14:31:12 mailstore lmtpunix[32636]: IOERROR: lock_shared /var/lib/imap/mailboxes.db: No locks available Apr 16 14:31:12 mailstore imap[32632]: DBERROR: opening /var/lib/imap/mailboxes.db: cyrusdb error Apr 16 14:31:12 mailstore imaps[32633]: DBERROR: opening /var/lib/imap/mailboxes.db: cyrusdb error Apr 16 14:31:12 mailstore pop3[32634]: DBERROR: opening /var/lib/imap/mailboxes.db: cyrusdb error Apr 16 14:31:12 mailstore pop3s[32635]: DBERROR: opening /var/lib/imap/mailboxes.db: cyrusdb error Apr 16 14:31:12 mailstore lmtpunix[32636]: DBERROR: opening /var/lib/imap/mailboxes.db: cyrusdb error Apr 16 14:31:12 mailstore imap[32632]: Fatal error: can't read mailboxes file Apr 16 14:31:12 mailstore imaps[32633]: Fatal error: can't read mailboxes file Apr 16 14:31:12 mailstore pop3[32634]: Fatal error: can't read mailboxes file But the mailboxes file does exist: [EMAIL PROTECTED] rpms]# ls -l /var/lib/imap total 60 drwx--2 cyrusmail 4096 Apr 16 14:23 backup drwx--2 cyrusmail 4096 Apr 16 14:26 db drwx--2 cyrusmail 4096 Apr 16 14:26 db.backup1 drwx--2 cyrusmail 4096 Apr 6 16:21 db.backup2 -rw---1 cyrusmail 8192 Apr 16 14:26 deliver.db drwx--2 cyrusmail 4096 Apr 16 14:23 log -rw---1 cyrusmail0 Apr 6 16:21 mailboxes.db drwx--2 cyrusmail 4096 Apr 16 14:23 msg drwx--2 cyrusmail 4096 Apr 16 14:23 proc drwxr-xr-x2 cyrusmail 4096 Apr 6 16:19 ptclient drwx--2 cyrusmail 4096 Apr 16 14:23 quota drwx--2 cyrusmail 4096 Apr 16 14:26 rpm drwx--2 cyrusmail 4096 Apr 16 14:23 sieve drwxr-x---2 cyrusmail 4096 Apr 16 14:26 socket drwx--2 cyrusmail 4096 Apr 16 14:23 user --- 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
weirdness after reconstructing
I had a problem when my mailboxes.db file got corrupted. So, I recreated all of the accounts and folders in cyradm. Then I ran reconstruct -r as cyrus and reconstructed everything using the existing data for the users. The problem is now that in squirrelmail I am unable to click on INBOX which seems like a small issue but a huge pain. The other thing is that some folders when I enter them in evolution it says "This folder cannot contain messages". But if I try in thunderbird, I am able to go into the folder and subfolders with no problems. Thanks for any help. -- Gerard Ceraso http://devslash.org signature.asc Description: This is a digitally signed message part
Re: weirdness after reconstructing
> I had a problem when my mailboxes.db file got corrupted. So, I recreated > all of the accounts and folders in cyradm. Then I ran reconstruct -r as > cyrus and reconstructed everything using the existing data for the > users. The problem is now that in squirrelmail I am unable to click on > INBOX which seems like a small issue but a huge pain. The other thing is > that some folders when I enter them in evolution it says "This folder > cannot contain messages". But if I try in thunderbird, I am able to go > into the folder and subfolders with no problems. Thanks for any help. > > -- > Gerard Ceraso > http://devslash.org > In addition to this, I noticed that now everything is unread, which I can deal with but if I mark it as read, close the email client and come back its marked as unread again. -- Gerard Ceraso jabber: [EMAIL PROTECTED] http://devslash.org --- 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
repeating DBERROR (skiplist recovery blah blah blah)
I'm pretty new to troubleshooting cyrus errors, I've been spoiled. It ran for 12 months without any problems. Now in the last few weeks, we have random corrupted mail folders. I ran reconstruct on all mail folders (inbox, sent, trash) yesterday, because I saw similar errors the day before. Now today, I see the errors again for johndoe. Are these errors significant? Thanks. Eli Apr 16 04:00:00 server2 tls_prune[19121]: DBERROR db4: 6 lockers Apr 16 08:41:38 server2 lmtpd[20481]: DBERROR db4: 5 lockers Apr 16 08:54:48 server2 lmtpd[20548]: DBERROR db4: 5 lockers Apr 16 09:39:14 server2 lmtpd[20906]: DBERROR db4: 5 lockers Apr 16 09:42:15 server2 lmtpd[20926]: DBERROR db4: 5 lockers Apr 16 10:04:04 server2 lmtpd[21165]: DBERROR db4: 5 lockers Apr 16 10:21:40 server2 imapd[21194]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:40 server2 imapd[21194]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:40 server2 imapd[21194]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:40 server2 imapd[21194]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:40 server2 imapd[21303]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:40 server2 imapd[21303]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:40 server2 imapd[21303]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:40 server2 imapd[21303]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:40 server2 imapd[21303]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:40 server2 imapd[21303]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:50 server2 imapd[21194]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:50 server2 imapd[21194]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error Apr 16 10:21:51 server2 imapd[21303]: DBERROR: skiplist recovery /var/lib/imap/user/j/johndoe.seen: DELETE at 09F8 doesn't exist Apr 16 10:21:51 server2 imapd[21303]: DBERROR: opening /var/lib/imap/user/j/johndoe.seen: cyrusdb error (snip...cut off about half of the same repeating error) - This mail sent through IMP: http://horde.org/imp/ --- 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: cyrus-imapd-2.2.3 startup problems
On Fri, 16 Apr 2004, Adi Linden wrote: > Before I installed the new rpm the old was removed (rpm -e) and the > /var/lib/imap/ and /var/spool/imap/ directories were cleaned out. One more > comments, both /var/lib/imap/ and /var/spool/imap/ are mounted via NFS. > ewww you should not run cyrus over nfs. Better to have local storage. --- 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: weirdness after reconstructing
On Fri, 16 Apr 2004, Gerard Ceraso wrote: > > I had a problem when my mailboxes.db file got corrupted. So, I recreated > > all of the accounts and folders in cyradm. Then I ran reconstruct -r as > > cyrus and reconstructed everything using the existing data for the > > users. The problem is now that in squirrelmail I am unable to click on > > INBOX which seems like a small issue but a huge pain. The other thing is > > that some folders when I enter them in evolution it says "This folder > > cannot contain messages". But if I try in thunderbird, I am able to go > > into the folder and subfolders with no problems. Thanks for any help. > > > > In addition to this, I noticed that now everything is unread, which I can > deal with but if I mark it as read, close the email client and come back > its marked as unread again. > Hi I am curios can you explain your mails being flagged as new more. I am having the same problem, but only with squirrelmail and Outlook express, Outlook and thunderbird are fine. I only notice this happen when I compose a message or reply to a message. --- 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: cyrus-imapd-2.2.3 startup problems
>> Ah, now I see. >> >> RedHat has taken my cyrus-imapd src rpms and included it in Fedora Core >> 2 >> beta. Unfortunately they 'optimized' it in a way that breaks it on other >> older RedHat distributions. My originial package builds fine on every >> RedHat distribution from 6.2 to current. You can find it here: >> >> http://www.invoca.ch/pub/packages/cyrus-imapd/ > > I retrieved cyrus-imapd-2.2.3-8.src.rpm, built and installed it. I made > sure the proper directory structure was ceated in /var/lib/imap/. Once I > start cyrus-imapd the imap and pop3 processed don't hang around for long. > I am still getting error messages in the log. > > Before I installed the new rpm the old was removed (rpm -e) and the > /var/lib/imap/ and /var/spool/imap/ directories were cleaned out. One more What do you mean by cleared out? Is this an empty spool? Since cyrus-imapd 2.2 creates directories in /var/spool/imap on the fly as needed, this structure is no longer part of the rpm package. > comments, both /var/lib/imap/ and /var/spool/imap/ are mounted via NFS. IIRC the docs clearly say that you shouldn't do that. Your mailboxes.db file exists but is empty, which is not okay even if the database is empty. Simon > > Apr 16 14:31:12 mailstore master[32632]: about to exec > /usr/lib/cyrus-imapd/imapd > Apr 16 14:31:12 mailstore master[32633]: about to exec > /usr/lib/cyrus-imapd/imapd > Apr 16 14:31:12 mailstore master[32634]: about to exec > /usr/lib/cyrus-imapd/pop3d > Apr 16 14:31:12 mailstore master[32635]: about to exec > /usr/lib/cyrus-imapd/pop3d > Apr 16 14:31:12 mailstore master[32636]: about to exec > /usr/lib/cyrus-imapd/lmtpd > Apr 16 14:31:12 mailstore imap[32632]: executed > Apr 16 14:31:12 mailstore imaps[32633]: executed > Apr 16 14:31:12 mailstore pop3[32634]: executed > Apr 16 14:31:12 mailstore pop3s[32635]: executed > Apr 16 14:31:12 mailstore lmtpunix[32636]: executed > Apr 16 14:31:12 mailstore imap[32632]: IOERROR: lock_shared > /var/lib/imap/mailboxes.db: No locks available > Apr 16 14:31:12 mailstore imaps[32633]: IOERROR: lock_shared > /var/lib/imap/mailboxes.db: No locks available > Apr 16 14:31:12 mailstore pop3[32634]: IOERROR: lock_shared > /var/lib/imap/mailboxes.db: No locks available > Apr 16 14:31:12 mailstore pop3s[32635]: IOERROR: lock_shared > /var/lib/imap/mailboxes.db: No locks available > Apr 16 14:31:12 mailstore lmtpunix[32636]: IOERROR: lock_shared > /var/lib/imap/mailboxes.db: No locks available > Apr 16 14:31:12 mailstore imap[32632]: DBERROR: opening > /var/lib/imap/mailboxes.db: cyrusdb error > Apr 16 14:31:12 mailstore imaps[32633]: DBERROR: opening > /var/lib/imap/mailboxes.db: cyrusdb error > Apr 16 14:31:12 mailstore pop3[32634]: DBERROR: opening > /var/lib/imap/mailboxes.db: cyrusdb error > Apr 16 14:31:12 mailstore pop3s[32635]: DBERROR: opening > /var/lib/imap/mailboxes.db: cyrusdb error > Apr 16 14:31:12 mailstore lmtpunix[32636]: DBERROR: opening > /var/lib/imap/mailboxes.db: cyrusdb error > Apr 16 14:31:12 mailstore imap[32632]: Fatal error: can't read mailboxes > file > Apr 16 14:31:12 mailstore imaps[32633]: Fatal error: can't read mailboxes > file > Apr 16 14:31:12 mailstore pop3[32634]: Fatal error: can't read mailboxes > file > > But the mailboxes file does exist: > > [EMAIL PROTECTED] rpms]# ls -l /var/lib/imap > total 60 > drwx--2 cyrusmail 4096 Apr 16 14:23 backup > drwx--2 cyrusmail 4096 Apr 16 14:26 db > drwx--2 cyrusmail 4096 Apr 16 14:26 db.backup1 > drwx--2 cyrusmail 4096 Apr 6 16:21 db.backup2 > -rw---1 cyrusmail 8192 Apr 16 14:26 deliver.db > drwx--2 cyrusmail 4096 Apr 16 14:23 log > -rw---1 cyrusmail0 Apr 6 16:21 mailboxes.db > drwx--2 cyrusmail 4096 Apr 16 14:23 msg > drwx--2 cyrusmail 4096 Apr 16 14:23 proc > drwxr-xr-x2 cyrusmail 4096 Apr 6 16:19 ptclient > drwx--2 cyrusmail 4096 Apr 16 14:23 quota > drwx--2 cyrusmail 4096 Apr 16 14:26 rpm > drwx--2 cyrusmail 4096 Apr 16 14:23 sieve > drwxr-x---2 cyrusmail 4096 Apr 16 14:26 socket > drwx--2 cyrusmail 4096 Apr 16 14:23 user > > > --- 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: R: ?????????
[EMAIL PROTECTED] wrote: On Fri, 16 Apr 2004, Luca Manganelli wrote: NO SPAM, DAMN IT! What? You don't like spam with your eggs? Try the spam egg sausage and spam, that's not got much spam in it. -- Jules Agee --- 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: R: ?????????
Jules Agee wrote: [EMAIL PROTECTED] wrote: On Fri, 16 Apr 2004, Luca Manganelli wrote: NO SPAM, DAMN IT! What? You don't like spam with your eggs? Try the spam egg sausage and spam, that's not got much spam in it. I like green eggs with my SPAM --- 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
Suse builds of Cyrus
Has anyone or do you know of someone doing RPM's for Suse? I have seen stuff for Mandrake and RH but nothing for Suse yet. I know they already have it as part of the distro. However, I would like the latest versions. Thanks, MJ Barber --- 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: weirdness after reconstructing
> On Fri, 16 Apr 2004, Gerard Ceraso wrote: > >> > I had a problem when my mailboxes.db file got corrupted. So, I >> recreated >> > all of the accounts and folders in cyradm. Then I ran reconstruct -r >> as >> > cyrus and reconstructed everything using the existing data for the >> > users. The problem is now that in squirrelmail I am unable to click on >> > INBOX which seems like a small issue but a huge pain. The other thing >> is >> > that some folders when I enter them in evolution it says "This folder >> > cannot contain messages". But if I try in thunderbird, I am able to go >> > into the folder and subfolders with no problems. Thanks for any help. >> > >> >> In addition to this, I noticed that now everything is unread, which I >> can >> deal with but if I mark it as read, close the email client and come back >> its marked as unread again. >> > Hi I am curios can you explain your mails being flagged as new more. I am > having the same problem, but only with squirrelmail and Outlook express, > Outlook and thunderbird are fine. I only notice this happen when I > compose a message or reply to a message. > Actually, I think I have solved the issue. What I did was I removed the user.seen and user.sub folders that were in the /var/imap folder. That solved both issues. -- Gerard Ceraso jabber: [EMAIL PROTECTED] http://devslash.org --- 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