Re: [CentOS] Cyrus IMAP and ipurge

2009-06-17 Thread Agnello George
On Wed, Jun 17, 2009 at 7:49 AM, Spiro Harvey sp...@knossos.net.nz wrote:

 On Tue, 16 Jun 2009 20:53:58 -0500
 Jeff jlar...@gmail.com wrote:

  Can't help much with ipurge. I never did like how it works. I have
  chosen a different approach using the cyradm mboxconfig command to
  set the expire option on each mailbox as needed. The 'expire' option
  is set-it-and-forget-it. Yet this approach lacks managability. There
  is no quick and easy way to survey all of your user mailboxes to
  check the expire option settings.

 Thanks Jeff. I thought that the expire mboxconfig setting required
 running of the cyr_expire program to trigger it, but I could never
 figure out why it forces you to include the expiry age on the command
 line when the mailbox folders have that info already.



 i too have a similar query  i too need to delet messages older than 3 days
.
in my /etc/cyru.conf i have a entry like this
delprune cmd=cyr_expire -E 3 at=0400
would this mean that the messages in(  /var/spool/imap/a/users/abp/* ) older
than 3 days get deleted ?
thank you !!


-- 
Regards
Agnello D'souza
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cyrus IMAP and ipurge

2009-06-17 Thread Agnello George
On Wed, Jun 17, 2009 at 1:21 PM, Agnello George agnello.dso...@gmail.comwrote:



 On Wed, Jun 17, 2009 at 7:49 AM, Spiro Harvey sp...@knossos.net.nzwrote:

 On Tue, 16 Jun 2009 20:53:58 -0500
 Jeff jlar...@gmail.com wrote:

  Can't help much with ipurge. I never did like how it works. I have
  chosen a different approach using the cyradm mboxconfig command to
  set the expire option on each mailbox as needed. The 'expire' option
  is set-it-and-forget-it. Yet this approach lacks managability. There
  is no quick and easy way to survey all of your user mailboxes to
  check the expire option settings.

 Thanks Jeff. I thought that the expire mboxconfig setting required
 running of the cyr_expire program to trigger it, but I could never
 figure out why it forces you to include the expiry age on the command
 line when the mailbox folders have that info already.



 i too have a similar query  i too need to delet messages older than 3 days
 .
 in my /etc/cyru.conf i have a entry like this
 delprune cmd=cyr_expire -E 3 at=0400
 would this mean that the messages in(  /var/spool/imap/a/users/abp/* )
 older than 3 days get deleted ?
 thank you !!


 Hi again
now i have even tried  ipurge
the contnet of /usr/lib/cyrus-imapd/ipurge /var/spool/t/user/test123/  ia as
follows
1. 2. 3. 4. 5. 6. 7.
10. 20. 30. 40. 50. 60. 70.
11. 21. 31. 41. 51. 61. 71.
12. 22. 32. 42. 52. 62. 72.
13. 23. 33. 43. 53. 63. 73.
14. 24. 34. 44. 54. 64. 74.
15. 25. 35. 45. 55. 65. 8.
16. 26. 36. 46. 56. 66. 9.
17. 27. 37. 47. 57. 67. cyrus.cache
18. 28. 38. 48. 58. 68. cyrus.header
19. 29. 39. 49. 59. 69. cyrus.index

i tried :
/usr/lib/cyrus-imapd/ipurge -C /etc/imapd.conf -f -d 0
/varspool/imap/t/user/test123/
( i have done this as cyrus user )
but this does not seem to delete the mail box
can some one help me here . !!
-- 
Regards
Agnello D'souza
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cyrus IMAP and ipurge

2009-06-17 Thread Spiro Harvey

  i too have a similar query  i too need to delet messages older than
  3 days
 .
 in my /etc/cyru.conf i have a entry like this
 delprune cmd=cyr_expire -E 3 at=0400
 would this mean that the messages
 in(  /var/spool/imap/a/users/abp/* ) older than 3 days get deleted ?

It doesn't seem to (which you could ascertain if you see any messages
older than 3 days in your mailbox).

I have this option enabled too, so it must only expire messages (or
folders) marked for expiry. But it clearly doesn't use the Expire
option for mailboxes, because that sets an age separately. So I'm still
unsure how the pieces in this puzzle are designed to fit together.

-- 
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz


signature.asc
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cyrus IMAP and ipurge

2009-06-17 Thread Agnello George
On Thu, Jun 18, 2009 at 2:46 AM, Spiro Harvey sp...@knossos.net.nz wrote:


   i too have a similar query  i too need to delet messages older than
   3 days
  .
  in my /etc/cyru.conf i have a entry like this
  delprune cmd=cyr_expire -E 3 at=0400
  would this mean that the messages
  in(  /var/spool/imap/a/users/abp/* ) older than 3 days get deleted ?

 It doesn't seem to (which you could ascertain if you see any messages
 older than 3 days in your mailbox).

 I have this option enabled too, so it must only expire messages (or
 folders) marked for expiry. But it clearly doesn't use the Expire
 option for mailboxes, because that sets an age separately. So I'm still
 unsure how the pieces in this puzzle are designed to fit together.

i was  finally able to purge my old mail using ipurge ...
su cyrus -c (/usr/lib/cyrus-imapd/ipurge -f -d 7 user.netserv )
i was trying to do it the wron way before !! . i written a script
and added tp my cron to run every 3 times in a week ,!!
Thanks for all the help !!

-- 
Regards
Agnello D'souza
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cyrus IMAP and ipurge

2009-06-16 Thread Jeff
On Tue, Jun 16, 2009 at 7:15 PM, Spiro Harvey sp...@knossos.net.nz wrote:

 Anyone here familiar with Cyrus IMAP and its util ipurge?

 We'd like to set auto deletion of our users' spambox folders, but I'm a
 bit paranoid about its functionality.

 The main things that confuse me are from the man page:

 Ipurge  deletes  messages from the mailbox(es) specified by
 mailbox-pattern

 with no indication as to what defines mailbox-pattern

 Second:

 Ipurge  by  default  only  deletes mail below shared folders, which
 means that mails in mail- box(es) below INBOX.* and user.* stay
 untouched. Use the option -f to  also  delete  mail  in mailbox(es)
 below these folders.

 What's a shared folder?

 OK, so the format of a Junk mail folder is:

 user/spiro/j...@knossos.net.nz

 and I've successfully done:

 $ ipurge -f -d 90 user/spiro/j...@knossos.net.nz
 Working on user/spiro/j...@knossos.net.nz...
 total messages   21
 total bytes  187742
 Deleted messages 16
 Deleted bytes138324
 Remaining messages   5
 Remaining bytes  49418


 however, without the -f, it did nothing, even though I was explicitly
 supplying a folder. Clearly I misunderstand what the man page is trying
 to tell me.

 I'd like to set up a proper pattern to purge all spamboxes correctly
 via the cyrus.conf, because at the moment, I've got an awk script that
 generates a list of email addresses and produces a list in the format of
 user/userid/j...@domain. I could then go over that list and run an
 ipurge for each one, but if anything happens that causes that list to
 be corrupted, I'm afraid of deleting the wrong mail. or worse. :(

 according to what I've gathered, the line:

 purgespam   cmd=ipurge -f -d 90 user/%/j...@* at=0430

 should work when put in cyrus.conf's Events section, but I can't
 confirm these wildcards. Some results on google just refer to * for the
 mailbox name, but none seem to include the domain as part of the string.

 Can anyone here shed some light?


Can't help much with ipurge. I never did like how it works. I have chosen a
different approach using the cyradm mboxconfig command to set the expire
option on each mailbox as needed. The 'expire' option is
set-it-and-forget-it. Yet this approach lacks managability. There is no
quick and easy way to survey all of your user mailboxes to check the expire
option settings.

Jeff
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Cyrus IMAP and ipurge

2009-06-16 Thread Spiro Harvey
On Tue, 16 Jun 2009 20:53:58 -0500
Jeff jlar...@gmail.com wrote:

 Can't help much with ipurge. I never did like how it works. I have
 chosen a different approach using the cyradm mboxconfig command to
 set the expire option on each mailbox as needed. The 'expire' option
 is set-it-and-forget-it. Yet this approach lacks managability. There
 is no quick and easy way to survey all of your user mailboxes to
 check the expire option settings.

Thanks Jeff. I thought that the expire mboxconfig setting required
running of the cyr_expire program to trigger it, but I could never
figure out why it forces you to include the expiry age on the command
line when the mailbox folders have that info already.



-- 
Spiro Harvey  Knossos Networks Ltd
021-295-1923www.knossos.net.nz


signature.asc
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos