Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
cyrus [2006/05/25 20:21] a |
cyrus [2012/10/11 18:41] 94.23.1.28 xkjCXHRPI |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | I've been using Cyrus-IMSP on my production srever in the past as a backend for the Horde Framework.It can, as the snippet states, primarily be used to store contact data, e. g. for shared and/or personal address books. Some applications can store user-specific configuration data in IMSP as well.There are just three problems |
- | + | ||
- | ===== Configuration ===== | + | |
- | * [[http:// | + | |
- | * [[cyrus: | + | |
- | + | ||
- | ==== LMTP over quota-reject ==== | + | |
- | + | ||
- | without taking mail and chacking over LMTP see: | + | |
- | * [[http:// | + | |
- | + | ||
- | **''/ | + | |
- | # If enabled, | + | |
- | # mailbox is over quota. | + | |
- | # causing the MTA to queue the message and retry later. | + | |
- | + | ||
- | lmtp_over_quota_perm_failure: | + | |
- | + | ||
- | ----- | + | |
- | + | ||
- | ===== Cyrus 2.1.x to 2.2.x migration (debian) ===== | + | |
- | '' | + | |
- | + | ||
- | ==== backup ==== | + | |
- | * stop all cyrus proccesses | + | |
- | * create a full backup of the mailbox spooldir '' | + | |
- | + | ||
- | tar cvfz / | + | |
- | + | ||
- | * dump mboxlist | + | |
- | + | ||
- | su - cyrus -c "/ | + | |
- | + | ||
- | * create a backup of ''/ | + | |
- | + | ||
- | **Whole Cyrus backup guide** | + | |
- | * http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | ==== TODO ==== | + | |
- | + | ||
- | **TODO** | + | |
- | + | ||
- | + | ||
- | ===== Cyrus extra ===== | + | |
- | + | ||
- | Patches: | + | |
- | * [[http:// | + | |
- | + | ||
- | ===== Working | + | |
- | + | ||
- | + | ||
- | ==== Testing performances ==== | + | |
- | + | ||
- | in your cyrus dbd dir do: | + | |
- | | + | |
- | + | ||
- | + | ||
- | ==== Twicking DBD settings ==== | + | |
- | **'' | + | |
- | # Sample BDB configuration file. | + | |
- | # Please adjust as necessary! | + | |
- | # See http:// | + | |
- | # even if you are not using openldap. | + | |
- | + | ||
- | # cache | + | |
- | # use " | + | |
- | # see http:// | + | |
- | # syntax: gigabytes_of_cache additional_bytes_of_cache number_of_caches | + | |
- | set_cachesize 0 524288 1 | + | |
- | + | ||
- | # buffer size for transaction log | + | |
- | # The default of 32Kbytes | + | |
- | # see http://www.sleepycat.com/ | + | |
- | set_lg_bsize 524288 | + | |
- | + | ||
- | # other options you may be interested | + | |
- | + | ||
- | # set_lg_dir: configure a separate directory for the transaction logs | + | |
- | # For optimum performance, | + | |
- | # see http://www.sleepycat.com/ | + | |
- | + | ||
- | # set_lg_max: configure the maximum size of the transaction log file, in bytes | + | |
- | # See http:// | + | |
- | # Note that lg_max must at least be 4x the size of lg_bsize. The default is 10Mb. | + | |
- | + | ||
- | **'' | + | |
- | set_cachesize 2 0 8 | + | |
- | set_lg_regionmax 268435456 | + | |
- | set_lg_bsize 67108864 | + | |
- | set_flags DB_TXN_WRITE_NOSYNC | + | |
- | + | ||
- | **'' | + | |
- | set_cachesize 0 2097152 1 | + | |
- | set_lg_regionmax 2097152 | + | |
- | set_lg_bsize 2097152 | + | |
- | set_lg_max 16777216 | + | |
- | set_tx_max 100 | + | |
- | + | ||
- | ==== rehasing DB ==== | + | |
- | + | ||
- | Stop cyrus server, run **'' | + | |
- | + | ||
- | ===== Sieve filtering ====== | + | |
- | + | ||
- | ==== Filtering Mailing Lists ==== | + | |
- | require " | + | |
- | if header :contains " | + | |
- | fileinto "INBOX.some-list"; | + | |
- | } | + | |
- | + | ||
- | ==== Marking Messages As Read ==== | + | |
- | + | ||
- | require [ " | + | |
- | if header :contains " | + | |
- | if header :contains " | + | |
- | [ | + | |
- | " | + | |
- | " | + | |
- | | + | |
- | { | + | |
- | addflag " | + | |
- | } | + | |
- | fileinto "INBOX.some-list"; | + | |
- | } | + | |
- | + | ||
- | ==== Spamassassin-learn / Spam-folder purge ==== | + | |
- | echo "spam fooSpam" | + | |
- | / | + | |
- | echo "ham dwight/ | + | |
- | / | + | |
- | / | + | |
- | su cyrus -c '/ | + | |
- | su cyrus -c '/ | + |