Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
cyrus [2006/05/25 20:21] a |
cyrus [2006/09/25 16:44] a db4 errors |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Cyrus ====== | ||
- | ===== 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 in textfile as cyrus user | ||
- | |||
- | su - cyrus -c "/ | ||
- | |||
- | * create a backup of ''/ | ||
- | |||
- | **Whole Cyrus backup guide** | ||
- | * http:// | ||
- | * [[http:// | ||
- | |||
- | ==== TODO ==== | ||
- | |||
- | **TODO** | ||
- | |||
- | |||
- | ===== Cyrus extra ===== | ||
- | |||
- | Patches: | ||
- | * [[http:// | ||
- | |||
- | ===== Working with BerkeleyDB ===== | ||
- | |||
- | |||
- | ==== 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 is too small | ||
- | # see http:// | ||
- | set_lg_bsize 524288 | ||
- | | ||
- | # other options you may be interested in | ||
- | | ||
- | # set_lg_dir: configure a separate directory for the transaction logs | ||
- | # For optimum performance, | ||
- | # see http:// | ||
- | | ||
- | # 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 " | ||
- | } | ||
- | |||
- | ==== Marking Messages As Read ==== | ||
- | |||
- | require [ " | ||
- | if header :contains " | ||
- | if header :contains " | ||
- | [ | ||
- | " | ||
- | " | ||
- | ] | ||
- | { | ||
- | addflag " | ||
- | } | ||
- | fileinto " | ||
- | } | ||
- | |||
- | ==== Spamassassin-learn / Spam-folder purge ==== | ||
- | echo "spam fooSpam" | ||
- | / | ||
- | echo "ham dwight/ | ||
- | / | ||
- | / | ||
- | su cyrus -c '/ | ||
- | su cyrus -c '/ |