deleting old mails



I'm running a postfix server on FreeBSD 6.1 and I'd like to have
a cronjob which deletes old mails from mboxes in /var/mail.

I tried mail/archivemail but it cannot create it's lock file
in /var/mail because it runs as the user owning the mailbox
on which it operates.

I also tried mail/archmbox but I'm wondering if it is safe
to use it while postfix is running. Quoting the manual:

A few words about locking. There has been a discussion about archmbox
handles file locking. The answer is simple: no mailbox is ever locked.
The reason behind this behavior is that I want archmbox to be as least
invasive as possible, so other kind of checks are performed to ensure
that no data is lost (mailbox has changed/mailbox is in use by another
program). I will surely add some locking mechanism in the future.

Any help would be appreciated.

Regards,
Thierry.

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: deleting old mails
    ... I tried mail/archivemail but it cannot create it's lock file ... A few words about locking. ... The answer is simple: no mailbox is ever ... On the mail server the home diretory is NFS-mounted read-only just to ...
    (freebsd-questions)
  • Re: deleting old mails
    ... I tried mail/archivemail but it cannot create it's lock file ... A few words about locking. ... The answer is simple: no mailbox is ever ... On the mail server the home diretory is NFS-mounted read-only just to ...
    (freebsd-questions)
  • Re: deleting old mails
    ... I tried mail/archivemail but it cannot create it's lock file ... A few words about locking. ... no mailbox is ever locked. ...
    (freebsd-questions)
  • procmail
    ... I'm still attempting to set up my mail exchange using postfix as the smtp ... email is downloaded from my isp to a local mailbox). ... properly addressed mail gets forwarded on to the postfix server with the ...
    (alt.os.linux.suse)