Automatically expire messages in imap folder

Software Groups sfgroups at gmail.com
Mon Sep 13 18:48:07 EDT 2004


Hi,

I want to delete the 10 days old E-mails from the Trash folder. I am
using the following command but its not deleting the old mails.

su - cyrus -c '/usr/lib/cyrus-imapd/ipurge -f -d 10 t/user/testuser/Trash 


Here is my configuration.

Fedora code 2

-bash-2.05b# rpm -qa | grep cyrus
cyrus-sasl-plain-2.1.18-2
cyrus-imapd-murder-2.2.6-4
cyrus-sasl-md5-2.1.18-2
cyrus-imapd-devel-2.2.6-4
cyrus-sasl-devel-2.1.18-2
cyrus-imapd-nntp-2.2.6-4
cyrus-sasl-2.1.18-2
cyrus-imapd-2.2.6-4
cyrus-imapd-utils-2.2.6-4

-bash-2.05b# cat /etc/imapd.conf
configdirectory: /var/lib/imap
#partition-default: /var/spool/imap
partition-default: /imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_ca_file:  /etc/postfix/cacert.pem
tls_cert_file: /etc/postfix/newcert.pem
tls_key_file: /etc/postfix/newreq.pem
lmtpsocket: /var/lib/imap/socket/lmtp
autocreatequota: 100000
autocreateinboxfolders: Sent|Drafts|Spam|Templates|Trash
autosubscribeinboxfolders: Sent|Spam|Drafts|Templates|Trash
createonpost: yes
popminpoll: 0
 

-bash-2.05b# cat /etc/cyrus.conf
# standard standalone server implementation
 
START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"
 
  # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"
}
 
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=5
  imaps         cmd="imapd -s" listen="imaps" prefork=1
  pop3          cmd="pop3d" listen="pop3" prefork=3
  pop3s         cmd="pop3d -s" listen="pop3s" prefork=1
  sieve         cmd="timsieved" listen="sieve" prefork=0
 
  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp         cmd="nntpd" listen="nntp" prefork=3
#  nntps                cmd="nntpd -s" listen="nntps" prefork=1
 
  # at least one LMTP is required for delivery
#  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
 
  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/lib/imap/socket/notify"
proto="udp" prefork=1
}
 
EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30
 
  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune      cmd="cyr_expire -E 3" at=0400
 
  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400
 
  squatter      cmd="squatter -r user" period=1440
 
}

Any help to make this work.

Thanks
SR
-- 
Software Groups
http://sfg.homeunix.com
---
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




More information about the Info-cyrus mailing list