Re: Imap mailbox aliases (two names for the same box)
On Thu, July 22, 2004 10:24 am, Ghislain ADNET wrote: > >> >> First you were talking about the "sent" folder and the settings I >> showed you will allow you to select *any* folder with *any* name >> for sent, drafts and templates. I usually disable junk mail >> filtering in mozilla (I have amavis-new+spamassassin taking care >> of spam on the server), but I enabled it just to test what you are >> saying and in "Junk mail control" you can select *any* folder for >> junk mail (I selected "spam" and it showed the junk mail icon, you >> have to collapse and expand the folders tree to see the new >> icons). >> The key is to select *other* and not sent/drafts/templates/junk in >> those preferences. >> >> Bye > > sent,junk trash etc are the same in this regards this is just my > redirection is spamc that sent to user+Junk folder so > i used it in my exemple. > > I retried it and i got the icon now, i got to restart to have them > back on the top of the list but the icons are ok with a simple > collapse (!!). seems that i was not enough patient to have them > (or any other mistake possible..). Thanks for the tip this was the > only thing i ever had against this mail client (it should be > installed on Windows by default ;) ) > >This is a good thing to know for future users. For all others i >would love also to be able to alias the mailbox at > the server level (without using sieve) but it does not seems > possible :( > > best regards, > Ghislain. > --- I would also like to mailbox aliasing at the server level. I administer a cyrus imapd system that was designed before the advent of virtual domains. To accomodate multiple domains on one server, the mailboxes were created in the format of "user1.domainname1.com". What I'm looking for now is the ability to give "user1" a way to configure his/her POP3/IMAP mail client so that the ".domainname1.com" portion wouldn't be required. How hard would implementing something like this be? TIA -Lars --- 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
Read-only secondary mail store?
I did some browsing in the cyrus-info mailling list archives for a feature I'm interested in and came up with nada...perhaps someone can point me in the right direction. The Freedom of Information Act (FOIA) here in the US requires that we keep a copy of all public records (which include e-mail) for 6 years. My initial thoughts on meeting this requirement for my cyrus imapd environments are: - configure cyrus imapd so all mail is stored in 2 mail stores - the first store is the normal read/write store that clients use - the second is for archival purposes; messages that are deleted or moved on the first mail store aren't deleted/moved on the 2nd store - when mailboxes / folders are created on the 1st store, they would also be created in the 2nd - rotate the 2nd / archival mail store as disk space permits - the archival mail store could be reloaded upon request and searched on using IMAP Has anybody ever done something like this before using cyrus imapd? If so, how did you do it? I'm wondering if I should be looking at the MTA level more than at the MDA or mail storage level to pull something like this off... If there is anybody out there who's had to deal with this issue and wouldn't mind weighing in, I'd greatly appreciate it. Thanks in advance, -Lars Peterson --- 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: received date and reconstruct
Why not let cyrus do all the legwork for you and use ipurge? Put an event like this in your "cyrus.conf" file: purgespam cmd="/usr/local/bin/ipurge -f -d 7 user/*/spam-folder" period=1440 This would clean up any messages in each user's spam-folder that are older than 7 days. Check the ipurge manpage for more info. Lars On Thu, November 20, 2003 8:29 am, you wrote: > Strangely, I need to do something very similar. So if someone has > the answer and was going to hold out because of lack of interest, > that's no longer an excuse. :) > > Thanks a lot. > -- > Andrew > > On Thu, 20 Nov 2003, Phil Chambers wrote: > >> I was planning to have a script go through doing this every night. >> It would use the creation dates of the message files, deleting >> ones that are too old and then use reconstruct to tidy up. >> >> I have two questions: >> >> 1) Can I rely on the creation date? I ask this because I have >> just seen an inbox where every message file had the same >> date/time. The date/time was 4.05 this morning and the user was >> not active at that time and the files had not been recovered from >> backup. Without any external activity, I cannot see what would >> have changed the creation dates. >> >> 2) Is it safe to use reconstruct on a live system in this way? I >> am concerned in case a new message gets delivered into the folder >> while reconstruct is doing its thing. >> >> Phil.
ipurge as an event in cyrus.conf
Hello all, Wondering if anyone has had any success with using ipurge events in the cyrus.conf file... I would like to periodically purge all users Spam and Trash folders and was thinking something like this would work in cyrus.conf (vs. using cron): # purge trash every day at midnight purgetrashcmd="ipurge -f -d 1 user/*/Trash" at= period=1440 # purge spam every 3 days at 1AM purgespam cmd="ipurge -f -d 3 user/*/Spam" at=0100 period=43212 I ran the ipurge commands as user cyrus from the command line and they seemed to have worked fine. But when I stuck the above lines in my cyrus.conf file and restarted cyrus, I haven't seen any auto purging... RedHat 9 w/cyrus-imapd-2.1.13 & cyrus-sasl-2.1.13 Any ideas? Lars Peterson SysAdmin / Programmer iTECH Inc.
Re: No directory, logging with in HOME=/
On Mon, July 14, 2003 11:28 am, you wrote: > Hello, > > Running this command "su - cyrus -c quota" I got the fallowing > message: > > No directory, logging with in HOME=/ > > Does somebody know what that mean and how to fix it?? > > BARTOSZ Your cyrus user account doesn't have a home directory according to your passwd file; you can either edit the home directory field of the passwd file directly as root (/etc/passwd on most systems), or use one of the tools that do this for you, like usermod: usermod -d {cyrus' home directory} cyrus Lars
Re: Linking imapd with db-4.1.25
On Fri, June 6, 2003 3:28 pm, you wrote: > On Fri, June 6, 2003 2:46 pm, John Alton Tamplin wrote: >> Igor Brezac wrote: >> >>>This problem is fixed in cvs for both 2.1.x and 2.2. >>> >>> >> Ok, so it was a problem in Cyrus not db? Thanks. >> > > I'm not so sure. > > Checked 2.1 branch out of CVS and I still can't get it to work. > Same results with 2.2-ALPHA. > > It finds db-4.0 but not db-4.1. > > Upon further investigation, it looks like maybe the problem is with > db-4.1.25 and not cyrus... > > Here's some output from config.log: > >> configure:5808: checking for db_create in -ldb-4.1 > configure:5839: gcc -o conftest -Wall -g -O2 > -I/usr/local/itech/iwaymail/include -L/usr/local/lib > -Wl,-rpath,/usr/local/lib - > L/usr/local/itech/iwaymail/lib conftest.c -ldb-4.1 > -L/usr/local/itech/iwaymail/lib -lresolv > -Wl,-rpath,/usr/local/itech/iw aymail/lib >&5 > /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to > `pthread_condattr_setpshared' > /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to > `pthread_mutexattr_destroy' > /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to > `pthread_mutexattr_setpshared' > /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to > `pthread_mutexattr_init' > /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to > `pthread_mutex_trylock' > collect2: ld returned 1 exit status > configure:5842: $? = 1 > > > Any ideas where I might find some support for db-4.1.25? Can't find > any mailing lists or news feeds on sleepycat's site. > > Lars I finally figured out how to get cyrus-imapd linked up with my 4.1.25 on RedHat 9. You need to add "-lpthread" to LDFLAGS (and export it to the environment) before running the configure script. I don't know who's job it should be to figure out that additional linker flag...the addition of nptl in RedHat 9 is turning out to be really problematic thus far. Lars
Re: Linking imapd with db-4.1.25
On Fri, June 6, 2003 2:46 pm, John Alton Tamplin wrote: > Igor Brezac wrote: > >>This problem is fixed in cvs for both 2.1.x and 2.2. >> >> > Ok, so it was a problem in Cyrus not db? Thanks. > I'm not so sure. Checked 2.1 branch out of CVS and I still can't get it to work. Same results with 2.2-ALPHA. It finds db-4.0 but not db-4.1. Upon further investigation, it looks like maybe the problem is with db-4.1.25 and not cyrus... Here's some output from config.log:configure:5808: checking for db_create in -ldb-4.1 configure:5839: gcc -o conftest -Wall -g -O2 -I/usr/local/itech/iwaymail/include -L/usr/local/lib -Wl,-rpath,/usr/local/lib - L/usr/local/itech/iwaymail/lib conftest.c -ldb-4.1 -L/usr/local/itech/iwaymail/lib -lresolv -Wl,-rpath,/usr/local/itech/iw aymail/lib >&5 /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to `pthread_condattr_setpshared' /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to `pthread_mutexattr_destroy' /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to `pthread_mutexattr_setpshared' /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to `pthread_mutexattr_init' /usr/local/itech/iwaymail/lib/libdb-4.1.so: undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status configure:5842: $? = 1 Any ideas where I might find some support for db-4.1.25? Can't find any mailing lists or news feeds on sleepycat's site. Lars
Re: Linking imapd with db-4.1.25
On Fri, June 6, 2003 2:05 pm, John Alton Tamplin wrote: > Lars Peterson wrote: > >>Snippet from configure's output: >><=== >>checking for db.h... yes >>checking for db_create in -ldb-4.1... no >>checking for db_create in -ldb4.1... no >>checking for db_create in -ldb41... no >>checking for db_create in -ldb-4.0... yes >>===> >> >>When I do an ldd on the resultant imapd binary after the build >>finishes, I see that it been linked to the bdb libraries that came >>with the RedHat install (4.0.14-20). >> >>I've played around with LDFLAGS, CPPFLAGS, and LD_LIBRARY_PATH >>environment variables to try and force the directories of my >>non-standard libraries and headers to be loaded first, but that >>didn't change a thing. >> >>I'm reluctant to remove the RedHat db4 installation because I quite >>certain that it would break a large amount of dependencies... >> >>Any ideas? >> >> > In the directory you passed for bdb-libdir, is there a > libdb-4.1.so? Are permissions on it set properly? Yes libdb-4.1.so is in the same directory I passed to configure for bdb-libdir. Permissions are same user I'm building as, and mode is 775. I was able to link against these libraries successfully for an openldap-2.1.19 build. > BTW, you may be happier using 4.0.14. On Solaris anyway, I > consistently ran into problems after a week or two of uptime with > 4.1.25, and that all went away after downgrading to 4.0.14. I'll take this into consideration. I've had no problems thus far with db-4.1.25 with respect to openldap / slapd... What kind of problems were you seeing on your Solaris box? Lars
Linking imapd with db-4.1.25
Hello, I've built and installed db-4.1.25 in a non-standard location on my RedHat 9.0 machine and am having trouble getting cyrus-imapd-2.1.13 to against it. It appears that the configure script does not detect it properly, even if I invoke the configure script with the --with-bdb-libdir= and --with-bdb-incdir= options set. Snippet from configure's output: <=== checking for db.h... yes checking for db_create in -ldb-4.1... no checking for db_create in -ldb4.1... no checking for db_create in -ldb41... no checking for db_create in -ldb-4.0... yes ===> When I do an ldd on the resultant imapd binary after the build finishes, I see that it been linked to the bdb libraries that came with the RedHat install (4.0.14-20). I've played around with LDFLAGS, CPPFLAGS, and LD_LIBRARY_PATH environment variables to try and force the directories of my non-standard libraries and headers to be loaded first, but that didn't change a thing. I'm reluctant to remove the RedHat db4 installation because I quite certain that it would break a large amount of dependencies... Any ideas? Thanks, Lars Peterson iTech Inc.
Mailbox namespace + LMTP question (repost)
Wasn't sure if this request was lost in the mail loop the sysadmin mentioned earlier today, so here's a repost. Please disregard if you've already received it. > I'm running cyrus-imapd 2.1.13 w/cyrus-sasl 2.1.13 on a RedHat 9.0 > system. My goal is have my mailer hand off a message to deliver > with the recepient mailbox in an e-mail address format: > <[EMAIL PROTECTED]>. > > I'm not sure if I've violoated the mailbox namespace by trying to > use names containing the "@" character...deliver refuses to deliver > any messages to mailboxes I've created with this character in their > name. I get the "Mailbox does not exist" error message whenever I > try. > > I am able to deliver messages using deliver when I give it a > recepient without the "@" character. > > If the "@" character violates the mailbox namespace, then why does > cyradm let me create mailboxes that contain it? Reconstruct, > ctl_mbxolist, and the other utilites / commands seem to be okay > with it as well. > > useful lines in /etc/imapd.conf are: > hashimapspool: true > unixhierarchysep: yes > > Thanks in advance for any light you can shed on this matter. > > Regards, > > Lars Peterson > [EMAIL PROTECTED]
Mailbox namespace + LMTP question
I'm running cyrus-imapd 2.1.13 w/cyrus-sasl 2.1.13 on a RedHat 9.0 system. My goal is have my mailer hand off a message to deliver with the recepient mailbox in an e-mail address format: <[EMAIL PROTECTED]>. I'm not sure if I've violoated the mailbox namespace by trying to use names containing the "@" character...deliver refuses to deliver any messages to mailboxes I've created with this character in their name. I get the "Mailbox does not exist" error message whenever I try. I am able to deliver messages using deliver when I give it a recepient without the "@" character. If the "@" character violates the mailbox namespace, then why does cyradm let me create mailboxes that contain it? Reconstruct, ctl_mbxolist, and the other utilites / commands seem to be okay with it as well. useful lines in /etc/imapd.conf are: hashimapspool: true unixhierarchysep: yes Thanks in advance for any light you can shed on this matter. Regards, Lars Peterson [EMAIL PROTECTED]