miniGeek.org

another collection of bits and bytes

Navigation Menu

searching for mail in Cyrus

Posted on Apr 29, 2009 in bash, Cyrus, Linux, Work | 0 comments

This is a simple post on how to do some nifty little script-fu to search for emails and move them to a different folder in order for Cyrus to be able to show them. The first thing to do is to search for the search term that you want. For this, I rely on grep and pipe the output to a file: [root@mailserver user]# grep -r -i 'searchstring' bcc >...

Read More

Cyrus create folders

Posted on Apr 18, 2008 in Cyrus, Linux | 0 comments

This is a technique to create folders for accounts without granting permissions to yourself and creating them manually. For this to work, you need to log into cyradm, create the folder and then reconstruct the mailbox to make it pick up the quota. [root@mailserver #] /opt/insight/bin/cyradm -user manager -pass ***supersecret cleartext***...

Read More

Cyrus copy permissions from one user to another

Posted on Apr 18, 2008 in Cyrus, Linux | 0 comments

I wanted to create a new user with the same permissions as a user that already exists on a Cyrus IMAP system. Unfortunately it appears as though there is no automagic way of doing this and it turns out that I needed to do a few steps. Step 1: Find the current permissions [root@mailserver ~]# su - cyrus -sh-3.00$ cd -sh-3.00$...

Read More

Cyrus 452 4.2.2 Over quota (in reply to RCPT TO command)

Posted on Apr 18, 2008 in Cyrus, Linux, Work | 0 comments

The more that I play with Cyrus, the less that I like it – although in fairness, when it’s working it seems to run pretty well. The other day I started getting people emailing me saying that the mail server was telling them that the their mail size was over the limit. I promptly logged into the offending mail server and did a du in order to see...

Read More

Cyrus cyradm

Posted on Feb 2, 2007 in Cyrus, Linux | 0 comments

Having so many problems with Cyrus! The company that I’m now working for has an installed version of Cyrus, running with Bynari. For some unknown reason all of the “proper” (eg working) files are stored under /opt/insight -> this hasn’t stopped us from having two copies though! For example, we have /usr/bin/perl _and_...

Read More

Cyrus restore from backups

Posted on Jan 30, 2007 in Cyrus, Linux | 0 comments

hmmmm, Cyrus is beginning to bug me. The major problem occurs when you don’t want to lose those precious new emails, but you badly need to get old emails restored, when it’s only a one off email that you’re restoring it’s pretty simple but when you need to restore a whole directory I always end up overwriting the cyrus.* files which...

Read More