Re: deleting old mails

2007-06-03 Thread Christopher Hilton

Thierry Lacoste wrote:

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.



Have you consider using Maildir/ format instead? A switch to Maildir/ 
format would allow you to use the find program to weed out your 
mailbox and locking is not an issue.


-- Chris

--
  __o  All I was doing was trying to get home from work.
_`\,_   -Rosa Parks
___(*)/_(*)___
Christopher Sean Hiltonchris | at | vindaloo.com
pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: deleting old mails

2007-06-03 Thread Thierry Lacoste
On Sunday 03 June 2007 14:01, Christopher Hilton wrote:
 Thierry Lacoste wrote:
  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.

 Have you consider using Maildir/ format instead? A switch to Maildir/
 format would allow you to use the find program to weed out your
 mailbox and locking is not an issue.

AFAICS the Maildir/ format implies that mails are delivered to the home
directory of the users.
On the mail server the home diretory is NFS-mounted read-only just to
be able to see the .forward files.
Users are required to use only pops to read their mail (qpopper is on the
mail server) and I wanted to avoid unnecessary network traffic: from the
mail server to the NFS server upon mail receipt and in the other way when
readind mail with pops.

Regards,
Thierry.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: deleting old mails

2007-06-03 Thread Eric Crist

On Jun 3, 2007, at 8:05 AMJun 3, 2007, Thierry Lacoste wrote:


On Sunday 03 June 2007 14:01, Christopher Hilton wrote:

Thierry Lacoste wrote:

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.


Have you consider using Maildir/ format instead? A switch to Maildir/
format would allow you to use the find program to weed out your
mailbox and locking is not an issue.


AFAICS the Maildir/ format implies that mails are delivered to the  
home

directory of the users.
On the mail server the home diretory is NFS-mounted read-only just to
be able to see the .forward files.
Users are required to use only pops to read their mail (qpopper is  
on the
mail server) and I wanted to avoid unnecessary network traffic:  
from the
mail server to the NFS server upon mail receipt and in the other  
way when

readind mail with pops.



That's not true.  My particular mail system saves to a mail-specific  
directory, under /usr/local.  Not in the user's home directory.


If you're worried about disk space, try enabling quotas in your  
postfix configuration.  There's a great postfix how to at  
www.purplehat.org to help you set all this up.  Personally, I don't  
try to tell users what email they can have, I just limit their space  
- they'll decide what's important and what's not.


However, maildir is the way to go if you want to search for delete  
certain mail.


HTH.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: deleting old mails

2007-05-31 Thread Lisa Casey

Hi,

I've used archmbox for a long time on a Sendmail server with no problems at 
all. Dunno if you'll have the same experience with Postfix, but as far as 
I'm concerned, archmbox works very well.


Lisa Casey
jellico.com, Inc.

- Original Message - 
From: Thierry Lacoste

To: freebsd-questions@freebsd.org
Sent: Thursday, May 31, 2007 4:21 PM
Subject: 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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 5/30/2007 
3:03 PM 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]