Re: purging old mail

2007-06-04 Thread mats . lindberg
Jonathan McKeown [EMAIL PROTECTED] wrote on 2007-06-01 14:31:48:

 On Friday 01 June 2007 14:11, Steve Bertrand wrote:
  [EMAIL PROTECTED] wrote:
   Hi all,
   I'm setting up a FreeBSD 5.4 system that need to run unattended for 
a
   year or more.
   I've noticed that the /var/mail/root file grows a bit over time.
  
   Do I need to configure the system in some way to prevent this file 
from
   growing indefinately, filling up the /var partition?
 
  Are you actually interested in reading root mail?
 
  Are you running sendmail?
 
  If so, in the /etc/mail/aliases file, change the root alias to an 
email
  address that someone actually POP's.
 
  If you don't want to read the email at all, change the root alias to
  point to /dev/null.
 
 What I've been caught by a couple of times is the periodic(8) routines, 
which 
 quickly fill roots mailbox with daily, weekly and monthly status 
reports.
 
 If you're not going to forward these to a real user but still want to 
keep 
 (some of) them available, put
 
 daily_output=/var/log/daily.log
 weekly_output=/var/log/weekly.log
 monthly_output=/var/log/monthly.log
 
 in /etc/periodic.conf. The relevant reports will be logged into the 
 respective 
 files, and newsyslog already knows to rotate these if they exist, so 
they 
 won't grow endlessly (by default, /etc/newsyslog.conf keeps a week of 
dailys, 
 5 weeks of weeklys and a year of monthlys).
 
 Jonathan

Thanks guys
This was really usefuk

___
 

This e-mail communication (and any attachment/s) may contain confidential 
or privileged information and is intended only for the individual(s) or 
entity named above and to others who have been specifically authorized to 
receive it. If you are not the intended recipient, please do not read, 
copy, use or disclose the contents of this communication to others. Please 
notify the sender that you have received this e-mail in error by reply 
e-mail, and delete the e-mail subsequently. Please note that in order to 
protect the security of our information systems an AntiSPAM solution is in 
use and will browse through incoming emails. 
Thank you. 
_
 


Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut 
contenir des renseignements confidentiels ou protégés et est destiné à 
l?usage exclusif du destinataire ci-dessus. Toute autre personne est par 
les présentes avisée qu?il est strictement interdit de le diffuser, le 
distribuer ou le reproduire. Si vous l?avez reçu par inadvertance, 
veuillez nous en aviser et détruire ce message. Veuillez prendre note 
qu'une solution antipollupostage (AntiSPAM) est utilisée afin d'assurer la 
sécurité de nos systems d'information et qu'elle furètera les courriels 
entrant.
Merci. 
_
 


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


purging old mail

2007-06-01 Thread mats . lindberg
Hi all, 
I'm setting up a FreeBSD 5.4 system that need to run unattended for a year 
or more.
I've noticed that the /var/mail/root file grows a bit over time.

Do I need to configure the system in some way to prevent this file from 
growing indefinately, filling up the /var partition?
If so - how?

Mats Lindberg


___
 

This e-mail communication (and any attachment/s) may contain confidential 
or privileged information and is intended only for the individual(s) or 
entity named above and to others who have been specifically authorized to 
receive it. If you are not the intended recipient, please do not read, 
copy, use or disclose the contents of this communication to others. Please 
notify the sender that you have received this e-mail in error by reply 
e-mail, and delete the e-mail subsequently. Please note that in order to 
protect the security of our information systems an AntiSPAM solution is in 
use and will browse through incoming emails. 
Thank you. 
_
 


Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut 
contenir des renseignements confidentiels ou protégés et est destiné à 
l?usage exclusif du destinataire ci-dessus. Toute autre personne est par 
les présentes avisée qu?il est strictement interdit de le diffuser, le 
distribuer ou le reproduire. Si vous l?avez reçu par inadvertance, 
veuillez nous en aviser et détruire ce message. Veuillez prendre note 
qu'une solution antipollupostage (AntiSPAM) est utilisée afin d'assurer la 
sécurité de nos systems d'information et qu'elle furètera les courriels 
entrant.
Merci. 
_
 


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


Re: purging old mail

2007-06-01 Thread Steve Bertrand
[EMAIL PROTECTED] wrote:
 Hi all, 
 I'm setting up a FreeBSD 5.4 system that need to run unattended for a year 
 or more.
 I've noticed that the /var/mail/root file grows a bit over time.
 
 Do I need to configure the system in some way to prevent this file from 
 growing indefinately, filling up the /var partition?

Are you actually interested in reading root mail?

Are you running sendmail?

If so, in the /etc/mail/aliases file, change the root alias to an email
address that someone actually POP's.

If you don't want to read the email at all, change the root alias to
point to /dev/null.

Then run 'newaliases'.

I've found that the postmaster account is much more prone to filling up
a partition, so ensure that you redirect this address as well.

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


Re: purging old mail

2007-06-01 Thread Jonathan McKeown
On Friday 01 June 2007 14:11, Steve Bertrand wrote:
 [EMAIL PROTECTED] wrote:
  Hi all,
  I'm setting up a FreeBSD 5.4 system that need to run unattended for a
  year or more.
  I've noticed that the /var/mail/root file grows a bit over time.
 
  Do I need to configure the system in some way to prevent this file from
  growing indefinately, filling up the /var partition?

 Are you actually interested in reading root mail?

 Are you running sendmail?

 If so, in the /etc/mail/aliases file, change the root alias to an email
 address that someone actually POP's.

 If you don't want to read the email at all, change the root alias to
 point to /dev/null.

What I've been caught by a couple of times is the periodic(8) routines, which 
quickly fill roots mailbox with daily, weekly and monthly status reports.

If you're not going to forward these to a real user but still want to keep 
(some of) them available, put

daily_output=/var/log/daily.log
weekly_output=/var/log/weekly.log
monthly_output=/var/log/monthly.log

in /etc/periodic.conf. The relevant reports will be logged into the respective 
files, and newsyslog already knows to rotate these if they exist, so they 
won't grow endlessly (by default, /etc/newsyslog.conf keeps a week of dailys, 
5 weeks of weeklys and a year of monthlys).

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


Re: purging old mail

2007-06-01 Thread Jerry McAllister
On Fri, Jun 01, 2007 at 09:45:49AM +0200, [EMAIL PROTECTED] wrote:

 Hi all, 
 I'm setting up a FreeBSD 5.4 system that need to run unattended for a year 
 or more.
 I've noticed that the /var/mail/root file grows a bit over time.
 
 Do I need to configure the system in some way to prevent this file from 
 growing indefinately, filling up the /var partition?
 If so - how?

You could either create a routine to rotate the file - maybe syslogd 
could do it.  Or, set up an alias to forward the email messages
to another place.  These would be log and security messages.  You 
could forward them to /bin/null, but I think it is bad form to
automatically nuke security messages.

Note also that /var/log will grow over time.  The usual solution
is to use the syslog utility to manage those files so they roll
over at appropriate times and old ones eventually get removed
at some interval you set.

jerry

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


Re: purging old mail

2007-06-01 Thread Rafael Aquino
Hi there,

I use an application that you can find in /usr/ports/mail/archmbox.

Using it with crontab, you can make it delete you x days old mails from
any file in mbox format.

I use it in my newsletter mbox, so I don´t have to worry about old mail.

0 2 * * * /usr/local/bin/archmbox -k -o 30 
/home/bsdserver/mail/FreeBSD-Questions 

[]´s

--
Rafael Mentz Aquino
BSDServer - FreeBSD - Servidores - Internet
[EMAIL PROTECTED]
51 - 4063 - 6269
51 - 9725 - 4311


-- Original Message ---
From: Jerry McAllister [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: freebsd-questions@freebsd.org
Sent: Fri, 1 Jun 2007 11:51:31 -0400
Subject: Re: purging old mail

 On Fri, Jun 01, 2007 at 09:45:49AM +0200,
  [EMAIL PROTECTED] wrote:
 
  Hi all, 
  I'm setting up a FreeBSD 5.4 system that need to run unattended for a year 
  or more.
  I've noticed that the /var/mail/root file grows a bit over time.
  
  Do I need to configure the system in some way to prevent this file from 
  growing indefinately, filling up the /var partition?
  If so - how?
 
 You could either create a routine to rotate the file - maybe syslogd 
 could do it.  Or, set up an alias to forward the email messages
 to another place.  These would be log and security messages.  You 
 could forward them to /bin/null, but I think it is bad form to
 automatically nuke security messages.
 
 Note also that /var/log will grow over time.  The usual solution
 is to use the syslog utility to manage those files so they roll
 over at appropriate times and old ones eventually get removed
 at some interval you set.
 
 jerry
 
  
  Mats Lindberg
  
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 -- 
 Esta mensagem foi verificada pelo sistema de antivírus e
  acredita-se estar livre de perigo.
--- End of Original Message ---


-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.

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