Barney Desmond wrote:
2009/8/24 Justin C. Le Grice <mailingli...@legrice.co.nz>:
I am new to the world of postfix. I have managed to successfully implement
Postfix etc using workaround.org's excellent guide.
My current item on the wish list is how to sweep items from the users Spam
folders after a defined number of days.
This is the Postfix list, Postfix is only an MTA. It does not deal
with serving mailboxes. That said...
I have located this script from http://moze.koze.net/?p=161
<snip>
My guess as to what this does is the following
You really don't want to be guessing here - it could wipe out your
system for all you know. The script should have documentation. If not,
you need to learn up on shell scripting.
1. Find any occurances of .Spam directory under /var/vmail
2. for each .Spam directory found, locate and delete any items found in new
and cur directories over 365 days old.
Am I correct here?
That sounds about right.
If so what do I do with this script
You run it, however you want.
and how do I use it in a weekly cron
job?
Put it in a weekly cronjob.
I don't mean to come off as rude, but these aren't really good
questions, relevant or otherwise.
Gee Barney that was really friendly, NOT!
If you had read what I was asking you should have worked out that I am
looking for a solution for a particular issue I wish to resolve. I was
trying to understand how this one worked. I have not implemented it
because I was not 100% how it worked, nor how to tweak it to suit my needs.
As I also said I am new to Postfix, and also Linux so am gingerly
feeling my way through setting up this mail server. I posed my question
here because I was sure the friendly (now I'm not so sure) folks here
would have come across this particular problem and would have a solution.
Cheers