This is an old revision of the document!


Cyrus

Configuration

LMTP over quota-reject

/etc/imapd.conf

# If  enabled,  lmtpd returns a permanent failure code when a user's
# mailbox is over quota.  By  default,  the  failure  is  temporary,
# causing the MTA to queue the message and retry later.

lmtp_over_quota_perm_failure: 1

Cyrus 2.1.x to 2.2.x migration (debian)

This is one of the ways to do it.

backup

  • stop all cyrus proccesses
  • create a full backup of the mailbox spooldir en: /var/spool/cyrus/mail
  tar cvfz /safeplace/cyrus-mailboxspool-backup.tgz /var/spool/cyrus/mail
  • dump mboxlist in textfile as cyrus user
 su - cyrus -c "/usr/sbin/ctl_mboxlist -d > /tmp/mailboxes-dump.txt"
  • create a backup of /var/lib/cyrus just in case everything goes to ***

new version


Sieve filtering

Filtering Mailing Lists

require "fileinto";
if header :contains "X-BeenThere" "some-list" {
  fileinto "INBOX.some-list";
}

Marking Messages As Read

require [ "fileinto", "imapflags" ];
if header :contains "X-BeenThere" "some-list" {
 if header :contains "From" 
 [
   "somejerk@example.com",
   "anotherjerk@example.net"
 ]
{
  addflag "\\Seen";  
}
fileinto "INBOX.some-list";

}

Spamassassin-learn / Spam-folder purge

echo "spam fooSpam"
/usr/bin/sa-learn --spam $SPOOLDIR/d/user/dwight/Spam/*.
echo "ham dwight/Trash"
/usr/bin/sa-learn --ham $SPOOLDIR/d/user/dwight/Trash/*.
/usr/bin/sa-learn --rebuild
su cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 14 user/dwight/Trash'
su cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 1 user/dwight/Spam'
cyrus.1142972687.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready