Importing/moving an older cyrus message tree into a new system, without IMAP
I have an older system that crashed - cyrus version is a couple years or so old. I have 1000's of messages in the spool that I need to preserve. My question is about whether there's a way to import that huge tree of messages into a new cyrus installation without imap-to-imap connectivity? Thank you. Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
Duplicate
I've run into a strange problem that I originally thought was my IMAP client (Thuderbird) which turns out to be something with my cyrus setup. I deleted the account and re-configured it to be sure. I have a duplicate Drafts folder that appears in ~/Drafts and ~/Mail/Drafts (or should that be ~INBOX/Drafts). One is empty, the other (INBOX/Drafts) has my actual content. I can no longer store drafts to the folder because of this. I've a feeling I need to rebuild something. Recursively rebuilding the mailboxes did not help. I renamed the original INBOX/Drafts folder and the errant folder Drafts still exists and I get Permission denied when I try to save. I'm unable to drag-and-drop items to it. It's very puzzling, and I'm sure I've overlooked something (probably very simple). Could someone help me with a few pointers, etc. The version of my server is appended below. Thanks name : Cyrus IMAPD version: v2.3.16-Invoca-RPM-2.3.16-1 2009/12/21 13:09:10 vendor : Project Cyrus support-url: http://cyrusimap.web.cmu.edu os : Linux os-version : 2.6.18-164.15.1.el5 environment: Built w/Cyrus SASL 2.1.22 Running w/Cyrus SASL 2.1.22 Built w/Sleepycat Software: Berkeley DB 4.3.29: (September 19, 2009) Running w/Sleepycat Software: Berkeley DB 4.3.29: (September 19, 2009) Built w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Running w/OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 Built w/zlib 1.2.3 Running w/zlib 1.2.3 CMU Sieve 2.3 TCP Wrappers mmap = shared lock = fcntl nonblock = fcntl idle = idled 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: Cyrus on Amazon EC2 and EBS?
On 2/11/10 11:55 AM, Adam Tauno Williams wrote: On Thu, 2010-02-11 at 10:35 -0500, Zachariah Mully wrote: Howdy all- Is anyone out there running Cyrus on an Amazon EC2 instance with EBS? During these brutal storms we've had in the DC area, we've been discussing how to improve the resiliency of our operations and getting our mail systems out of our CO and into a datacenter is high on the list. I'm looking for any feedback on using Cyrus with Amazon or any other 'cloud' service (I'm also looking at Rackspace's cloudserver offering as we're already a customer). Any gotchas, performance, reliability issues, etc? About 120 users, 300+GB mailstore. I run Cyrus on a Linode VM. I've been *very* happy with them. And it is just a 'normal' virtual server and not any odd-ball cloud thing. I wonder how people deal with the disk I/O deficiency under virtual systems such as VMWare. We decided not to virtualize any processes that were disk I/O intensive. 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: Cyrus IMAPd 2.3.16 Released
On 1/13/10 2:11 AM, Simon Matter wrote: [ ... ] My own real problem as RPM maintainer is that I'd like to stay with logging to mail facility and not touching syslog config. [ ... ] Chiming in here, specifically on this issue. I manually tweak the *.spec file to suit my local site requirements for each release, then rebuild. Would it be possible to introduce a couple configuration file directives that will allow us to tune these to our needs there? Thanks, Simon, for all the work you continue to do in putting these RPMs together -- it is greatly appreciated! Regards, Forrest 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: VMware for Cyrus?
Sebastian Hagedorn wrote: --On 9. November 2009 14:10:54 +0100 Simon Matter simon.mat...@invoca.ch wrote: While virtualization has advantages it has also disadvantages. One thing is that it introduces an additional layer of complexity into the game. It's my impression that in many areas virtualization gets introduced not because of technical reasons but because of political pressure. In our case I wouldn't necessarily call it political pressure ... it's more like organizational pressure. We have fewer personnel resources than we used to, and have to run more systems with them! For a high power, mission critical system like a mail cluster I'd stick with real iron as long as possible. That may sound old fashioned but is what I would do after everything I've seen. You will need the irons anyway, with or without virtualization. Did I miss something? Maybe. Ideally you save irons by putting more than one VM on each. For the mail cluster that may or may not be an option. I think it might, because as I mentioned the current boxes are 5+ years old. So I'd think with brand new hardware we would get away with less than 100% on each box. The main advantage that ESX would offer is in employing VMotion, VMMware HA and such. It adds a layer of complexity, but also a layer of security and convenience. I wanted to add a note here on this. We've been deploying ESXi where I work -- in some cases with success, such as development systems. We've noticed significant problems when it comes to disk I/O. Of course, our systems are RAID5 and that almost certainly contributes to it; though, I think you're going to see a performance hit either way. Anyone else care to comment on that issue? Best, Forrest 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
SYSLOG facility in *.conf ?
Would it be feasible to enable configuring the syslog facility used by cyrus in the imapd.conf file? 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: SYSLOG facility in *.conf ?
On 9/5/09 8:07 PM, Bron Gondwana wrote: On Sat, Sep 05, 2009 at 10:28:59AM -0400, Forrest Aldrich wrote: Would it be feasible to enable configuring the syslog facility used by cyrus in the imapd.conf file? You can configure it at compile time. That said, I suspect we'd accept a patch if you wanted to write it. Just nobody can be particularly bothered writing it right now! We've got other fish to fry :) Bron. Yes, I know about the compile time switch :-) I just think it would offer more flexibility if we could modify the syslog facility in the configuration file - it's a lot of work to recompile the lot, just for something simple like that. That said, I know there are alternate syslog servers (rsyslog) that can filter based on regex for which a syslog_prefix is provided for in the present imapd.conf. I'm not much of a programmer, but I suspect a patch wouldn't be too difficult -- but I may be wrong! :-) I'll look. Thanks, and have fun frying those fish ;-) Forrest 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
Archiving Cyrus Mail (slightly OT)
I've got several thousand emails from the early 90's that I have, packed into a Cyrus Mail system, which I backup regularly. I had thought it might be nifty to utilize one of the Email archiving solutions out there (Zoe, DevonThink, DBMail, etc) to allow me to do better searches, etc. But then I thought how Cyrus is in a simple directory format, and there must be some clever way to set up a rich indexing service that can read the Cyrus message format and utilize the existing store, separate from squatter. I'd be interested in any suggestions about how others may be doing this. I can see where this type of service would be useful on a larger scale, too. Thanks. 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: web administration
Nikos Gatsis wrote: Hello list. Can somebody recommend me a web interface for cyrus? An interface where I can manage cyrus accounts? Thanks Nikos There was once a neat project named Cyrusmaster (University of Athens) which added LDAP capability. But it's old, and probably not being maintained anymore. (current Cyrus has ptloader support, though I'm not sure of the scope of LDAP use, never used it) I'm curious what newer web interfaces are available. 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
SASL/sieve authentication issue
I'm having a problem with authentication. I can get/read/send mail fine through Cyrus, Sendmail. But when I try to authenticate to sieve, it's failing. This started happening after updating Cyrus on FreeBSD-7.0, where I currently have: cyrus-imapd-2.3.11 cyrus-sasl-2.1.22 cyrus-sasl-saslauthd-2.1.22 I have SASL using the sasldb, that all seems to work. But I can't authenticate via imtest at all. And the results below might be a clue as to what's wrong, and I hope someone can point it out - it's probably obvious and I'm just overlooking it. I'm using Smartsieve to manage my scripts, and this is where I first noticed the problem. I've tried every mech that is enabled with imtest, and no luck. That I can get my mail via IMAP (over SSL) and not get imtest to work is strange. Thanks in advance # sivtest -m plain -u forrie -a forrie WARNING: no hostname supplied, assuming localhost [EMAIL PROTECTED] /usr/home/forrie/spam]# sivtest -m plain -u forrie -a forrie localhost S: IMPLEMENTATION Cyrus timsieved v2.3.11 S: SASL DIGEST-MD5 CRAM-MD5 S: SIEVE comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy S: STARTTLS S: OK Please enter your password: C: AUTHENTICATE PLAIN {32+} Zm9blahblahblhadjfdklfblahblah= S: NO Authentication Error Authentication failed. generic failure Security strength factor: 0 # sivtest -t -m plain -u forrie -a forrie localhost S: IMPLEMENTATION Cyrus timsieved v2.3.11 S: SASL DIGEST-MD5 CRAM-MD5 S: SIEVE comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy S: STARTTLS S: OK C: STARTTLS S: OK Begin TLS negotiation now verify error:num=18:self signed certificate TLS connection established: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) S: IMPLEMENTATION Cyrus timsieved v2.3.11 S: SASL LOGIN PLAIN DIGEST-MD5 CRAM-MD5 S: SIEVE comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy S: OK Please enter your password: C: AUTHENTICATE PLAIN {32+} Zblahblhdklfdslfksfblahblah= S: OK Authenticated. Security strength factor: 256 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
(no subject)
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
unknown flag notjunk
I experienced this error with APPEND unknown flag notjunk. Searching the net, I see several references to it; however, as mysteriously as it appeared, it disappeared. At the time, I was trying to copy it to another (Linux) cyrus instance into a Trash folder. I don't know if that made any difference. I was able to copy it to a FreeBSD cyrus instance Inbox, no trouble. Suddenly, I was able to copy it to the Inbox on the Linux system. Nothing meaningful in the logs. Has anyone seen this before? I'm a little concerned about it happening again to end-users (this is a new system). Thanks. 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
OT: Cyrus IMAP Interacting with Thunderbird 2.0
This is slightly off-topic; however, I've been referred here because the behavior we're seeing is unexplainable (as of yet). I have Cyrus 2.3.8 on FreeBSD_6.1, and on a couple of Linux systems (Fedora Core 6). When I update to Thunderbird 2.0, the delete button and menu function is disabled for the account that is on FreeBSD. When I remain with or downgrade to Thunderbird 1.5, it is fine. I posted a message to the Thunderbird forums and I'll continue to pursue it, perhaps by debugging, etc. However, I wanted to ask here to see if anyone might have a clue about why this happens. It's not due to anything theme-orientated, or plugins. (yes, I've done fresh installs in other locations, and get the same result). The client machines are Windows (XP and Vista). It's been suggested that there may be something different about Cyrus in the IMAP command sequence - but that seems very vague. I don't see why it shouldn't just work. I can try recompiling the FreeBSD port and see if that resolves it. I'm sure my libraries are up-to-date, and certainly if there were problems I would have seen it by now with other functions. Thank you. 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
Cyrus+LMTP and LAN
I set up my Cyrus system a long time ago to use LMTP, where the MTA and Cyrus live on the same machine. I'm faced with a situation where I would like to have a central MTA on a private LAN service email, however it lacks the disk space to accomodate the inbound (anticipated) messaging. Therefore, I would like to place Cyrus on a server that has disk space. I'm reading through RFC 2033, and while I get lost in the details, my query is about whether I can do LMTP from an MTA on the same LAN to another system where Cyrus-Imapd lives (the RFC recommends NOT to do this over a WAN, for understandable reasons). Or even if this is advisable... where I should them build a separate MTA on the Cyrus machine and service mail there (that machine is a NAS and also storing a lot of syslog data on a large RAID-5 array, I'd rather not put the primary MTA on it, too). Pointers would be appreciated... thanks in advance. 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
Use of NFS via TCP
I know it's recommended not to use Cyrus over NFS. But what about NFSv3 or 4 via TCP, instead of UDP? On a small network, I would imagine this would work alright. I wonder if the documentation (caution) is referring to UDP. Thanks. 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
DB Lockers
What does this mean (from Cyrus IMAP 2.3): imap[88386]: DBERROR db3: 4 lockers 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: Good book on Cyrus?
This has been discussed before. Short answer, there are no good books. Managing IMAP is minimally useful - in a basic sense. However, I contacted O'Reilly about a possible Nutshell book, and as I recall the response was there were no plans for anything. And so, we have this large scalable product that doesn't have a good book - it's complex enough that it deserves one. I suspect the bottom line here is funding. Nobody wants to pay for it. Perhaps some other publishers might be more open to something of this nature. I certainly would appreciate it. Forrest James Brown wrote: Does anyone know of any good book on Cyrus and Cyrus-sasl? The only one I can find is Managing IMAP by Dianna Mullet Kevin Mullet, which seems very old. Thanks, James. 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
Squatter question
I just configured squatter on my cyrus-imapd-2.3.7 installation. I configured it as an EVENT in cyrus.conf and ran it manually on the command-line (as cyrus user). If I run the command: ./squatter -v -s -r user (I'm not sure user is needed here, the manpage wasn't clear about how to do this for the entire setup) It processes my mailboxes fine... But when I run it again, it seems to reprocess some that were already done - older folders that have no new content and thus should have been skipped. I'm puzzled by that... Thanks. 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: Mailstore filesystem
For the record... what about file systems for the mail spool on non-linux systems, such as FreeBSD, et al. I've read a number of documents that addressed (classic) Usenet-based activity (applicable to cyrus) - most agree that FreeBSD UFS+SoftUpdates performs very well. Thanks. 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
Emergency recovery...
Had a disk crash today (thunderstorm related).In so doing, I neglected to copy over /var/imap which has the *.db files. I can start up Cyrus Imapd fine, but the logs complain about checkpointing...not being able to do database operations, DB_NOTFOUND and archive /var/imap/db: cyrusdb error, etc.I can connect to the IMAPD server, but it hangs and times out.I ran mkimap, which created the structure, but still get the errors upon starting IMAPD. I did copy over /var/spool/imap and it seems alright.What can I do to fix this?(please reply to me here)Thanks. 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
Follow-up
I'm unable to authenticate with the server, using the original configuration. I recompiled cyrus, sasl2, saslauthd (FreeBSD) and installed them, but I re-used the original /usr partition on another drive, which contains the configurations, sasldb, et al. It should just work. But it's complaining.The saslauthd is running with -a pam and the mechanisms are set in Sendmail.conf and smtpd.conf for pwcheck auxprop as was originally there and working. I'm puzzled. 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
Reconstruct -r
Hours after my crash, I am figuring a few things out. One of the problems has to do with permissions on sasl2.db.Right now, I have run reconstruct -r and it caught all but one subdirectory in my restored archive. This other directory has cyrus.index files, etc. and is quite large - however, after repeated attempts, and verifying the permissions are correct, it fails to pick it up.From reading the manpage, I do not see that you can specify a specific folder to restore. Or am I mistaken. How might I resolve this.Thanks. 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
More robust INDEXing
Slightly OT: however, there are a few programs out there that offer a richer indexing method (a la Google for your email). I wonder if there's a place for that somewhere in the Cyrus structure. There's obvious utility in a richer search-and-find method. I'm probably not alone with my hoard of emails, spanning many years (and many memories), amounting to thousands (or more!) of individual messages. I have these all slightly organized in my Cyrus IMAP spool, which I back up regularly. I find, however, that basic searches don't always work well, or are too slow. Though, I admit I'm not 100% certain on how that process works - for example, I use Thunderbird presently as my email client, and I'm aware that Cyrus maintains its own *.index files in each directory in the spool. It would be wonderful to have a richer indexing method. That would likely include some integration into clients (beyond the scope of this discussion). Other programs I've run into include Zoƫ http://zoe.nu/, which is highly specialized (ie: you must use its infrastructure), there are some on freshmeat.net. I wonder what others thoughts/experiences are on this area. Or if there are some other clever methods of enriching this process that I've overlooked. Thanks. 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 SML ACAP Server
Are there any browswers that actually support using this yet? Firefox does not - I posted a question a while back on the Firefox forums, suggesting this functionality would be very good to have. _F 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
Tracking down errors: sql_select option missing
I'm using cyrus-imapd-2.2.12_1 (compiled via FreeBSD ports) on FreeBSD-6.0-BETA4. I'm trying to track down a non-fatal error that keeps popping up (on every transaction) in my syslog: Sep 15 22:33:01 forrie lmtpunix[68054]: sql_select option missing Sep 15 22:33:01 forrie lmtpunix[68054]: _sasl_plugin_load failed on sasl_auxprop_plug_in it for plugin: sql My cyrus.conf has: lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 Though I can't see where this is related, my /usr/local/lib/sasl2/Sendmail.conf has: pwcheck_method: auxprop sasl_mech_list: cram-md5 digest-md5 auxprop_plugin: sasldb allowanonymouslogin: 0 I can't find mention of SQL anywhere... it's possible I've just been looking too hard. Anyone know how I can fix that? The other non-fatal error I'm seeing is this: Sep 15 22:00:26 forrie master[54305]: process 67400 exited, status 0 Sep 15 22:01:26 forrie master[54305]: process 67309 exited, status 0 Sep 15 22:03:25 forrie master[54305]: process 67578 exited, status 0 Sep 15 22:07:57 forrie master[54305]: process 67600 exited, status 0 Sep 15 22:08:58 forrie master[54305]: process 67607 exited, status 0 Sep 15 22:09:55 forrie master[54305]: process 54448 exited, status 0 Sep 15 22:14:28 forrie master[54305]: process 67715 exited, status 0 Sep 15 22:15:00 forrie master[54305]: process 54328 exited, status 0 Sep 15 22:15:28 forrie master[54305]: process 67718 exited, status 0 This seems to be harmless, like the "no user in db" problem. But I'm still curious why it would be doing this. There are a lot of spurious log events that I'd like to shift to another place rather than /var/log/messages. Thanks. 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
Messages don't show up in imap view...
I just finished copying a few thousand (grin) messages to various folders on my new Cyrus installation (2.2). One of the folders, email from 2002, is not showing up with any mail via the imap client (Thunderbird, in my case), yet I see the messages in the physical directory mailstore. I don't believe Thunderbird is the issue here, as other items are working. I tried restarting the master process, and stopping then restarting, no luck. What could he wrong here? I'm guessing so many messages were transferring that perhaps something got mangled - perhaps I need to rebuild the indices, or... Thanks. 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
Detection of duplicates
Per my last post, I've been copying over (via imap-to-imap) various folder contents from times past. In a few instances, I've noticed duplication of messages - probably when the transfer became too congested or the client exited improperly. In either case, is there a means by which to prune duplicates from the Cyrus IMAP spool - safely? _F 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
Additional mailstore for archives?
Typically you have one mailstore defined, as I understand. However, I have a situation where I have archives of thousands of messages, going back years ago, that I wish to keep. I'd rather not keep all of these on my primary mailstore (no need, and it eats up space). Is it possible with cyrus imapd 2.x to have an additional store linked in somehow such that I can place those archives elsewhere (say an external drive), and yet have them visible to my view (via imap)? Does that make any sense... Thanks. 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
Master process exited, status 0
I just brought up a new system (FreeBSD_6) with Cyrus IMAP 2.2.12. The system has been on for a while prior to today, and things seem to be working fine; however, I'm noticing the below in the logs: Aug 22 03:41:12 forrie master[18392]: process 86622 exited, status 0 Aug 22 03:41:13 forrie master[18392]: process 86623 exited, status 0 Aug 22 03:41:14 forrie master[18392]: process 86624 exited, status 0 Aug 22 03:41:14 forrie master[18392]: process 86625 exited, status 0 I'm not sure what this implies, but it doesn't appear to be normal. Thanks. 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
IMAPD logging
I would like cyrus imapd to log elsewhere other than /var/log/messages. I'm looking through the manpage, and I see the option for syslog-prefix. Is it possible to change the facility without changing the src? Thanks. 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: Getting Sieve to Run from cyrus.conf
No it is not, but would that prevent it from running. Port 2000 is allocated to callback (tcp|udp) in /etc/services. Ken Murchison wrote: Forrest Aldrich wrote: I installed the lastest cyrus, compiled from the FreeBSD port. I'm having a problem with timsieved not running as it's configured: sieve cmd=timsieved listen=sieve prefork=0 From the docs I read, this is correct. If I telnet to my local machine (by IP, not 127.0.0.1) there's no response. I've restarted the cyrus master process, no luck. Is sieve defined in /etc/services? --- 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: Getting Sieve to Run from cyrus.conf
Okay, I commented out "callback" in /etc/services and used Sieve. I can connect with "sieveshell", but this appears to be a problem still: # sieveshell myserver.domain.com connecting to myserver.domain.com Please enter your password: Please enter your password: perl in free(): error: junk pointer, too high to make sense Abort trap (core dumped) I have saslauthd running in "- pam" mode. I'm able to connect and interact via imapd. Ken Murchison wrote: Forrest Aldrich wrote: I installed the lastest cyrus, compiled from the FreeBSD port. I'm having a problem with timsieved not running as it's configured: sieve cmd="timsieved" listen="sieve" prefork=0 >From the docs I read, this is correct. If I telnet to my local machine (by IP, not 127.0.0.1) there's no response. I've restarted the cyrus master process, no luck. Is "sieve" defined in /etc/services?
Re: Deleting Other Users shares...
I did this, and there's no effect - the share still shows up in my Other Users listing. [EMAIL PROTECTED] wrote: On Sun, May 15, 2005 at 03:51:11PM -0400, Forrest Aldrich wrote: I had a shared folder with another user (for backups and restore of message) which I no longer need. So, I removed the ACL that allowed access. This does not remove the "Other Users" and the shared folder from my view (though the server says it no longer exists), and I cannot delete those folders. I'm curious about whether I removed it properly (for one) and why this is pervasive - how to get rid of it, as surely this isn't correct behavior. I'm using Thunderbird as the client. the right solution would be to 'unsubscribe' that folder from your list of folders. In TB you can click right on the Account name in the left tab and choose 'Subscribe', then from the list of subscribed folders uncheck it. hth, mitu --- 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
Deleting Other Users shares...
I had a shared folder with another user (for backups and restore of message) which I no longer need. So, I removed the ACL that allowed access. This does not remove the Other Users and the shared folder from my view (though the server says it no longer exists), and I cannot delete those folders. I'm curious about whether I removed it properly (for one) and why this is pervasive - how to get rid of it, as surely this isn't correct behavior. I'm using Thunderbird as the client. Thanks. --- 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: Sieve
Hi Derrick, Does there exist an outline of requirements for a technical writer - ie: what needs to be accomplished etc. It's unfortunate you've not been able to keep a technical writer long enough - I understand that frustration (from previous jobs I've had). Where would such documentation be best appreciated and utilized - from a business perspective and from the end-user and sysadmin perspectives. If it were published in PDF or in a Wiki, it would be easy to get to, etc.On the other hand, if there were sufficient resources (and interest) to place this into a publication - perhaps there might (might meaning I'm not sure of the process) be some financial return to the organization. Either way, it would be really nice to have this at some point - a mailing list would be a good ajunct. Re: the examples on the cyrusoft page and about end-users being able to figure it out. I see your point, however I respectfully disagree. By and large there are far more examples and documentation of procmail out there than there are for Sieve. Procmail exists in books, online manuals and texts, etc. This is the point I was getting at (substance). There's a lot of promise with Sieve, but I wonder with the apparent lack of documentation, etc., if it will remain only utilized by those who are able to discern the code to get it working, etc. As for procmail, I've read some examples of getting this working with Cyrus - but it seems to require a login account, which I believe defeats our purpose of Cyrus and a closed system. ? Thanks, Forrest Derrick J Brashear wrote: On Sat, 23 Apr 2005, Forrest Aldrich wrote: The Sieve web page states: At present, there is no mailing list or newsgroup for end users of Sieve. I'm curious, how is it expected Sieve will be more widely adopted with 1) limited documentation (ie: not end-user friendly) and 2) no formal resources to discuss the protocol/language. It was like that when I found it, so I won't take the blame for the current situation. The thing that kills us is we've never been able to keep a technical writer long enough to get good documentation for anything. It's been on my sucks list since at least 2000, and it's an issue for internal software and not just Cyrus. A mailing list can be gotten trivially though but that's not really all it takes. I've spent a significant amount of time perusing the net for resources - I found Websieve, great - but that doesn't help me educate end users on how to use this. This probably sounds more accusatory than I mean it to, but if your users figured out how to use procmail I'd be shocked if they couldn't use sieve; In the pre-sieve days I used procmail on my own system, and sealed system was not a problem (that's what distributed filesystems are for); It would certainly be possible if not necessarily simplest to continue using procmail. --- 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
Sieve
The Sieve web page states: At present, there is no mailing list or newsgroup for end users of Sieve. I'm curious, how is it expected Sieve will be more widely adopted with 1) limited documentation (ie: not end-user friendly) and 2) no formal resources to discuss the protocol/language. I'm faced with converting a system to Cyrus that, for a long time, has been running procmail successfully. How can I make a positive argument for Cyrus and Sieve based upon the above problems? I know there are ways to use procmail with Cyrus IMAPD, but doesn't appear easy - and there appear to be caveats. Cyrus IMAPD is intended to run on a closed system, to (desirable), so the two items (Cyrus IMAPD and Procmail) don't really mix well, in my opinion. As a sysadmin, it would be invaluable for me to have more reference material, friendly documentation, examples... Unfortunately, on a related note, the people O'Reily do not have any future plans for an updated Managing IMAP book, which I think would be an appropriate place for this perhaps. I've spent a significant amount of time perusing the net for resources - I found Websieve, great - but that doesn't help me educate end users on how to use this. Thoughts?
Other Users view won't disappear after ACL removed....
I had to grant myself ALL on a user's mailbox tree to perform some maintenance (restore backups of her folders). After I removed the ACL and since then, Other Users view continues to show up in my IMAP view (currently using Thunderbird). I'm curious why this happens... and if it's a bug. I'm using Thunderbird 1.0.2 (aviary build), and Cyrus IMAP-2.2.x. _F --- 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
Maximum Cyrus Account Name Length?
In addition to my other post re: Maximum SASL2 password length, I'd like to know what the maximum login-id (or account name) length of a Cyrus IMAPD account is. Thank you. --- 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
Maximum SASL2 Password Length?
I'm trying to determine what the max length is for SASL2 passwords Looking through /usr/local/include/sasl/sasl.h, I see references to: typedef int sasl_server_userdb_checkpass_t(sasl_conn_t *conn, void *context, const char *user, const char *pass, unsigned passlen, struct propctx *propctx); /* Plain text password structure. * len is the length of the password, data is the text. */ typedef struct sasl_secret { unsigned long len; unsigned char data[1]; /* variable sized */ } sasl_secret_t; Can someone clarify? I need this for a database service (ie: to know what field limits to use). Thanks. --- 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: Copy mbox to Cyrus, user account
Here's what I ended up doing (for those that run into this situation): 1 - Gave myself full rights to the user's mailbox 2 - Created a folder Archive on her mailbox (Cyrus) 3 - Took the mbox files locally (on my home system) where I'm still using mbox-formatted IMAP folders 4 - Once the Shared Folders were acknowledged in the IMAP view, I created more folders under Archive 5 - Open the local holders, highlight, drag-and-drop to the new system. Took some time, but it worked. Thanks to everyone that took the time to reply/help. _F --- 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: Sieve and Cyrus Docs
Derrick J Brashear wrote: [ ... ] Something I will point out, procmail is more fully-featured than sieve, mostly by design. procmail can do anything you could do if you were logged into the machine and had a shell. sieve has limited powers. So, it may not be possible to convert every procmail script to sieve. I am by no means expert and it seems that your attitude might not engender many others to volunteer their time to help you understand this stuff. Actually, he was attributing the attitude to others, right? ;-) No comment. ;-) We have had some internal discussions about finding a tech writer. We seem to go through tech writers quickly, perhaps unlike developers they are less likely to tolerate subscale wages for a more relaxed environment, or perhaps as a tech writer their environment is not in fact more relaxed. I don't know, I haven't been involved in exit interviews for any of those we lost. We're looking again, though I don't know that we've advertised a position. Thank you this is good to know. As with other projects, occasionally a succinct HOWTO or similar document often is very helpful. Might it be wise to start pooling this information at the Cyrus Wiki as a start? I'm surprised at the apparent lack of coverage of Cyrus in the sysadmin books out there. The best I could find is the slightly-dated nutshell Managing IMAP book. Thanks _F --- 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
Copy mbox to Cyrus, user account
I have a situation where a user needs her old email copied from an mbox into her new Cyrus account. Easy enough; however, she's a remote user and her auth is via SASL. So, it would potentially require me to either 1) get her password, or 2) reset the password on Cyrus so I could use imapcopy (or some other tool). There must be an easier way to do this that I've not seen... ? Thanks. --- 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: Sieve and Cyrus Docs
Nothing like following-up to your own posts. The consensus of the private emails I've received is that some people opt not to utilize Sieve, based upon the lack of documentation. I find that surprising, but I've not found much to speak of yet - anyone? Or do we just use procmail as the mailer ;-) _F --- 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
Sieve and Cyrus Docs
Hi there, I'm still searching - however, are there any quick HOWTOs on correctly setting up Sieve with Cyrus IMAP. I have the IMAP server compiled (with Sieve support) - and now I'd like to begin the task of converting my procmail scripts (which are simple, thankfully) to Sieve and testing it out. Is see the programs installsieve and sieveshell in /usr/local/bin. I checked the Cyrus Wiki (not much there) - BTW who or what keeps posting those really annoying Chinese character links that point to a688.net. Thanks, Forrest --- 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
Compacting mailboxes...
We recently deployed Cyrus IMAPD on an internal corporate server. We plan on using it for a larger installation (once I get comfortable with all the technical quirks ;-)) In any case, an issue was brought up whereby if a user doesn't Compact their mailbox (done via most common MUA's like Thunderbird) the deleted messages can linger - for however long. I've personally seen this before. I'm concerned about disk space consumption of these messages in-limbo. Is there some mechanism that can force a compact of the mailbox to remove these deleted messages - or is there another method to manage this scenario? Thanks! --- 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: how to pipe mail to external program?
Tuna Sundae wrote: On Thu, 24 Feb 2005 19:45:33 -0700, Craig White [EMAIL PROTECTED] wrote: On Thu, 2005-02-24 at 21:03 -0500, Tuna Sundae wrote: Hi, when I used to use sendmail, I used aliasname: |/path/to/app in /etc/aliases to pipe mail to a program. Now, I used postfix with cyrus' deliver as the delivery mechanism. How do I have cyrus pipe certain aliases to applications?: you asked the question the other day - I think that you use the /usr/sbin/sendmail binary supplied by your postfix installation, much the same as you would if you were using sendmail but I think in a way, that begs your question...wouldn't you use postfix aliasmaps much like you used aliases in sendmail? Are you sure that this is a cyrus question? That's the thing... I can't get postfix to check the alias map before giving the mail to cyrus' deliver. So I was hoping there was a cyrus way to do this. Is anyone using postfix/cyrus and having it first look at /etc/aliases before delivering to 'deliver'? I ran into a similar problem recently. It was explained to me that if you explicity define the transport for lmtp in transports you then disable piping to commands in Postifx (and a few other issues). What you need to do is comment out that definition in transports (presuming this is the case here) and define: mailbox_transport = lmtp:unix:/var/imap/socket/lmtp (modify as appropriate for your system) And then the pipe-to-commands should work. There are more specifics about why this is so - but that's what solved this for me. Forrest --- 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: Basic FAQs and HOWTOs
Is there a FAQ on disaster recovery and such for Cyrus IMAP. If not, there ought to be one ;-) Some of the more esoteric items such as the ctl_* commands - and what to do when your server (db) goes south, etc. _F --- 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
no user in db
One of the problems I've run into is no user in db in the logs from imap/imaps - yet, I'm able to authenticate, send/receive mail, create folders (but cannot delete folders). So I think something's wrong on the SASL end. I have (this is on a spare machine): [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword (used only for Cyrus admin) /usr/local/lib/sasl2/smtpd.conf: pwcheck_method: auxprop I'm using Postfix for the MTA, and I believe all the sasl_* variables are correctly defined there. I have a separate account established in Thunderbird for this (login name forrie, domain pc.forrie.com). I'm completely stumped by this one - and really don't know if there are some command-line SASL debugging tools I can use for this scenario. Thanks. --- 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: no user in db
The issue I have has to do with deleting folders THROUGH imap... ie: I can create a folder in my test account, but then I cannot delete that same folder via IMAP, as I should. The acl is fine. I'm running postfix-current, and postconf doesn't show smtpd_sasl_path as a valid option: broken_sasl_auth_clients = no lmtp_sasl_auth_enable = no lmtp_sasl_password_maps = lmtp_sasl_security_options = noplaintext, noanonymous smtp_sasl_auth_enable = no smtp_sasl_mechanism_filter = smtp_sasl_password_maps = smtp_sasl_security_options = noplaintext, noanonymous smtp_sasl_tls_security_options = $var_smtp_sasl_opts smtpd_sasl_application_name = smtpd smtpd_sasl_auth_enable = yes smtpd_sasl_exceptions_networks = smtpd_sasl_local_domain = pc.forrie.com check_recipient_access hash:/etc/postfix/recipient.access, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, permit smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = $smtpd_sasl_security_options My Cyrus SASL installation was formed by the FreeBSD port, and the *.db is located in /usr/local/etc. The permissions are, as far as I see, correct. sasldb2.db is owned by sasl:sasl and /etc/group has both cyrus and postfix in that group. Thanks, Forrest Norman Zhang wrote: Forrest Aldrich wrote: One of the problems I've run into is "no user in db" in the logs from imap/imaps - yet, I'm able to authenticate, send/receive mail, create folders (but cannot delete folders). By default Cyrus Admin cannot delete folders. You need to ACL. # sam user.jdoe root -all So I think something's wrong on the SASL end. Check that the following path is set corretly in /etc/postfix/main.cf smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2 First looks for smtpd.conf, 2nd looks for sasl.db. I have (this is on a spare machine): [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: userPassword (used only for Cyrus admin) /usr/local/lib/sasl2/smtpd.conf: Did you compiled postfix yourself? See above. Norman Zhang --- 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
Delete folder issues solved?
Suddenly I have a Trash folder in my Cyrus mailbox and the create/delete issue is now resolved. I seem to recall a patch or config directive that will autocreate for each user certain root-level folders - Trash, Sent, Bulk, etc. Though I'm confused as I don't recall our having this problem on another installation that I worked with. ?? This is Cyrus IMAPD 2.2.10. Forrest --- 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: Delete folders via another IMAP client
Craig White wrote: On Fri, 2005-02-18 at 00:53 -0500, Forrest Aldrich wrote: Using Cyrus IMAP 2.1.10 (FreeBSD port), I'm able to create folders within my account, but cannot delete them. The mailbox was created via standard cyradm: cyradm --user admin my.domain.com cm user/username Perhaps I missed a step here - I assume that creating a mailbox will permit for full access in the ACL. But the problem may actually be connected to this error I'm unable to resolve: imap[000]: no user in db (same for imaps) But looking with sasldblistusers2, I find everything intact as it should be. I'm using Thunderbird as the IMAP client (recent build). forget the client for a moment... Are you trying to create users/mailboxes that aren't posixAccounts? The goal is to have IMAPD authentication become symbiotic with SASL2, separate from posixAccounts. I am using Postfix (presently!) as the MTA and I configured: /usr/local/lib/smtpd.conf: pwcheck_method: auxprop Then I would assume that sasldb would be the place for them but I have always used local account setup. It would seem that you need to be consistent when you create their accounts with saslpassword and cyrus account creation. Correct. I want to enable the mail subsystem to not rely upon /etc/passwd for anything. I also host a couple of domains here, for which the recipients don't need to be in /etc/passwd. you can check acl's of mailboxes - I do this by... su - cyrus -c '/usr/lib/cyrus-imapd/cyradm localhost' lam user.username #perhaps with unix hierachy, lam user/username lam user.username.subfolder_name you can change acl's sam user.username sam user.username.subfolder_name this allows you to check and if necessary (which I suspect via inheritance shouldn't be necessary to fool with subfolders, you want them to be different). The permissions on the mailbox, created via cm in cyradm are: pc.mydom.com lam user/forrie forrie lrswipcda now that seems correct and it should allow me to remove the sub-folders I create. Lot's of mail client software won't let you delete the 'current' folder...i.e. if you select the INBOX and the contents are viewed, you can delete another folder by right clicking the folder and selecting delete. I know what you're saying here. However, I've attempted to delete this new folder Test via the same method an it won't budge. This in lieu of the errors I encountered (ie: imaps: no user in db) made me think there's an issue somewhere with authentication. But I'm new to Cyrus, so I'm still figuring some of this out ;-) Thank you, Forrest --- 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: Deleting an IMAP-User / Managing mailboxes
As I understand, you must grant the admin user c (or more) under cyradm first, then delete. There's also web-cyradm at http://www.web-cyradm.org/. Though I loath having to depend upon a gui for things like this, Cyrus is complex and maybe a gui will help with day-to-day tasks. This topic should be added to a to-be-created HOWTO info in the Cyrus Wiki. Markus Eiden wrote: Hi, is there a (complete?) list of tool which helps the adminstrator to manage the cyrus-mailboxes? While creating mailboxes with my own PHP-frontend is no problem, deleting the INBOX seems to be difficult (no suitable PHP-functions for changing ACLs etc.). Patrick Gibson gives me last Monday the link to a PEAR package, but after analyzing that, I think it is an overkill. Is there a small commandline-tool just for deleting Users (deleting/moving the INBOX and subfolders) like imap_delete_user --mailbox domain:example.com:user:foo -user cyrus -password password (I know cyradmin, of cause) Thanks a lot Markus --- 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: Basic FAQs and HOWTOs
I ran into the infamous /var/imap/socket/lmtp write problem - all the permissions were correct. The issue was solved by completely removing Cyrus (and all directories) then rebuilding (FreeBSD port) and reinstalling. Then it work. I'm getting mail on my test machine - but now receiving this error in the syslog: imaps[99308]: no user in db I searched all the archives I could find, and haven't found a sufficient explanation - though I think this is SASL-related. Any pointers would be appreciated. We really need to get some detailed debugging and HOWTOs pooled into a Wiki somewhere. I would presume that the Cyrus Wiki would be the place to hold this - does anyone have some content to donate? Surely there must be a plethora of information around by now ;-) Forrest --- 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
Delete folders via another IMAP client
Using Cyrus IMAP 2.1.10 (FreeBSD port), I'm able to create folders within my account, but cannot delete them. The mailbox was created via standard cyradm: cyradm --user admin my.domain.com cm user/username Perhaps I missed a step here - I assume that creating a mailbox will permit for full access in the ACL. But the problem may actually be connected to this error I'm unable to resolve: imap[000]: no user in db (same for imaps) But looking with sasldblistusers2, I find everything intact as it should be. I'm using Thunderbird as the IMAP client (recent build). Pointers appreciated. Thanks... --- 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: Basic FAQs and HOWTOs
All of this sort of information could (should?) be pooled in a place like the Cyrus Wiki. I'm wondering if O'Reilly has any plans to update their dated Managing IMAP book ;-) My guess is probably not. Cyrus/SASL is one of those great products that is very complex, and it deserves some coverage of it's own. Re: the below posting, a trouble-shooting section is definately in order - some of the common problems I've seen asked (via googling around) could be addressed in the Wiki as well. For the record, I've run into that popular connect to /var/imap/socket/lmtp [ ... ] Permission denied error (amoungst other problems) and the explanations I've seen out there appear (to me) as varying as the shape of snowflakes ;-) Thanks, _F Wil Cooley wrote: On 2005-02-16, Craig White [EMAIL PROTECTED] wrote: Something in greater depth than Wil's site would be appreciated - he doesn't cover what to do if it ain't workin' and at the moment, that would seem to be a good topic for a couple of us. Yeah, I split the SASL stuff out to eventually be a separate HOWTO, but I haven't actually done anything with it--it's mainly just the sections from the old HOWTO converted from LinuxDoc to DocBook. A troubleshooting section is definitely called for, as is a section on integrating with the various clients. In terms of your actual problem, though, have you tried adding the 'debug' flag to the pam_unix configuration? Assuming you've got something like this in /etc/pam.d/system-auth: authsufficient/lib/security/$ISA/pam_unix.so likeauth nullok Just add the 'debug' at the end and your logs should show more verbose messages. (I also like to make a /var/log/debug that I turn on and off as necessary.) Since imtest works but IMP doesn't, you might want to run tcpdump to capture the actual IMAP traffic for the latter and see how it differs from the imtest IMAP conversation. I like to capture traffic to a file with tcpdump and then view it with Ethereal. Something like: tcpdump -w imp-imap.tcpdump -s 0 'port imap and host impclient' You really want the '-s 0' so you capture the whole packet and not just the header. Wil --- 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: Basic FAQs and HOWTOs
All of this sort of information could (should?) be pooled in a place like the Cyrus Wiki. I'm wondering if O'Reilly has any plans to update their dated "Managing IMAP" book ;-) My guess is probably not. Cyrus/SASL is one of those great products that is very complex, and it deserves some coverage of it's own. Re: the below posting, a trouble-shooting section is definately in order - some of the common problems I've seen asked (via googling around) could be addressed in the Wiki as well. For the record, I've run into that popular "connect to /var/imap/socket/lmtp [ ... ] Permission denied" error (amoungst other problems) and the explanations I've seen out there appear (to me) as varying as the shape of snowflakes ;-) Thanks, _F Wil Cooley wrote: On 2005-02-16, Craig White [EMAIL PROTECTED] wrote: Something in greater depth than Wil's site would be appreciated - he doesn't cover what to do if it ain't workin' and at the moment, that would seem to be a good topic for a couple of us. Yeah, I split the SASL stuff out to eventually be a separate HOWTO, but I haven't actually done anything with it--it's mainly just the sections from the old HOWTO converted from LinuxDoc to DocBook. A troubleshooting section is definitely called for, as is a section on integrating with the various clients. In terms of your actual problem, though, have you tried adding the 'debug' flag to the pam_unix configuration? Assuming you've got something like this in /etc/pam.d/system-auth: authsufficient/lib/security/$ISA/pam_unix.so likeauth nullok Just add the 'debug' at the end and your logs should show more verbose messages. (I also like to make a /var/log/debug that I turn on and off as necessary.) Since imtest works but IMP doesn't, you might want to run tcpdump to capture the actual IMAP traffic for the latter and see how it differs from the imtest IMAP conversation. I like to capture traffic to a file with tcpdump and then view it with Ethereal. Something like: tcpdump -w imp-imap.tcpdump -s 0 'port imap and host impclient' You really want the '-s 0' so you capture the whole packet and not just the header. Wil
Basic FAQs and HOWTOs
I'm new to Cyrus IMAPD SASL2. For the time being, using the FreeBSD ports to build and configure. Having a devil of a time making some sense of the configuration process (post build), getting imtest to authenticate correctly, etc. I don't see any up-to-date FAQs out there, but I imagine there has to be, for something this complex. Can someone point me there - or even some basic step-by-step outline of the build and *.conf editing processes. Thanks. --- 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 configure errors on FreeBSD
This person was kind enough to provide this suggestion: From: "Ilya" [EMAIL PROTECTED] To: "Forrest Aldrich" [EMAIL PROTECTED] Subject: Re: Cyrus configure errors on FreeBSD Date: Thu, 21 Dec 2000 23:00:37 -0500 X-Mailer: Microsoft Outlook Express 5.50.4133.2400 change ac_cv_sasl_where_lib=${with_sasl}/lib ac_cv_sasl_where_inc=${with_sasl}/include to ac_cv_sasl_where_lib=${with_sasl}/lib/sasl ac_cv_sasl_where_inc=${with_sasl}/include/sasl in configure This gets us past the configure problem. Now, there seems to be another mod we need to make (-I ?) somewhere to get this to actually work: ### Making all in /usr/src2/cyrus/cyrus-imapd-2.0.9/acap ../et/compile_et ./acap_err.et gcc -c -I/usr/local/include -I/usr/local/include -I. -I. -I.. -DHAVE_CONFIG_H -g -O2 acap.c acap.c:61: sasl.h: No such file or directory In file included from acap.c:62: ../lib/prot.h:51: sasl.h: No such file or directory In file included from acap.c:65: acap.h:45: sasl.h: No such file or directory *** Error code 1 Stop. *** Error code 1 Stop. I hope we can get these issues resolved and patches for cyrus included in the next release. _F
Cyrus configure errors on FreeBSD
FreeBSD installs SASL under /usr/local/include and /usr/local/lib (see the package port). Please fix cyrus-sasl configure so that it can locate these. Is there a patch for this at this time? _F