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/Junk@knossos.net.nz
and I've successfully done:
$ ipurge -f -d 90 user/spiro/Junk@knossos.net.nz Working on user/spiro/Junk@knossos.net.nz... total messages 21 total bytes 187742 Deleted messages 16 Deleted bytes 138324 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/Junk@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/%/Junk@*" 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?
On Tue, Jun 16, 2009 at 7:15 PM, Spiro Harvey spiro@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/Junk@knossos.net.nz
and I've successfully done:
$ ipurge -f -d 90 user/spiro/Junk@knossos.net.nz Working on user/spiro/Junk@knossos.net.nz... total messages 21 total bytes 187742 Deleted messages 16 Deleted bytes 138324 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/Junk@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/%/Junk@*" 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
On Tue, 16 Jun 2009 20:53:58 -0500 Jeff jlar310@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.
On Wed, Jun 17, 2009 at 7:49 AM, Spiro Harvey spiro@knossos.net.nz wrote:
On Tue, 16 Jun 2009 20:53:58 -0500 Jeff jlar310@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 !!
I'm running CentOS 4.7. I'm having the following problem:
On logging out from a GNOME session (Actions -> Log Out -> Log Out), the computer simply hangs. The Caps Lock and Scroll lock keys on the keyboard are flashing. I can ping it from another computer, but services like VNC and Webmin won't work anymore.
What should I do to troubleshoot the issue? Which log files should I check?
It only started acting like this yesterday. The last thing I can remember doing that could've caused this is when I ran a "yum upgrade" and updated some packages at the same time. Mind you, I don't log out a lot though. I usually start it up, leave it on for a long time, shut down (sometimes), or start it up after recovering from a power interruption (sometimes).
Thanks, gillbates
Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/
gillbates wrote:
I'm running CentOS 4.7. I'm having the following problem:
On logging out from a GNOME session (Actions -> Log Out -> Log Out), the computer simply hangs. The Caps Lock and Scroll lock keys on the keyboard are flashing. I can ping it from another computer, but services like VNC and Webmin won't work anymore.
Keyboard LEDs flashing like that usually mean the system has crashed.
What should I do to troubleshoot the issue? Which log files should I check?
You can try to check the logs in /var/log but frequently these types of crashes are not logged.
One thing you can do is setup kdump: http://kbase.redhat.com/faq/docs/DOC-6039
I'm old fashioned though and just setup a serial console, since it sounds like it is easily reproducible that's even better.
nate
Gill, please don't reply to a thread and change the subject. Create a new message.
You almost misaligned the planet. I managed to close the wormhole before the demons entered our realm, but it was a close call.
Just be careful next time.
On Wed, Jun 17, 2009 at 1:21 PM, Agnello George agnello.dsouza@gmail.comwrote:
On Wed, Jun 17, 2009 at 7:49 AM, Spiro Harvey spiro@knossos.net.nzwrote:
On Tue, 16 Jun 2009 20:53:58 -0500 Jeff jlar310@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 . !!
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.
On Thu, Jun 18, 2009 at 2:46 AM, Spiro Harvey spiro@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 !!