Date: Mon, 4 Jun 2007 07:57:53 +0200 From: mats.lindberg@se.transport.bombardier.com To: freebsd-questions@freebsd.org Cc: Steve Bertrand <iaccounts@ibctech.ca>, Jonathan McKeown <jonathan@hst.org.za> Subject: Re: purging old mail Message-ID: <OF4BA03CCF.AB94C578-ONC12572F0.001EF926-C12572F0.0020C7EE@UK.BOMBARDIER.TRANSPORT.COM> In-Reply-To: <200706011431.48560.jonathan@hst.org.za>
next in thread | previous in thread | raw e-mail | index | archive | help
Jonathan McKeown <jonathan@hst.org.za> wrote on 2007-06-01 14:31:48: > On Friday 01 June 2007 14:11, Steve Bertrand wrote: > > mats.lindberg@se.transport.bombardier.com wrote: > > > Hi all, > > > I'm setting up a FreeBSD 5.4 system that need to run unattended for=20 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=20 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=20 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. >=20 > What I've been caught by a couple of times is the periodic(8) routines,=20 which=20 > quickly fill roots mailbox with daily, weekly and monthly status=20 reports. >=20 > If you're not going to forward these to a real user but still want to=20 keep=20 > (some of) them available, put >=20 > daily=5Foutput=3D"/var/log/daily.log" > weekly=5Foutput=3D"/var/log/weekly.log" > monthly=5Foutput=3D"/var/log/monthly.log" >=20 > in /etc/periodic.conf. The relevant reports will be logged into the=20 > respective=20 > files, and newsyslog already knows to rotate these if they exist, so=20 they=20 > won't grow endlessly (by default, /etc/newsyslog.conf keeps a week of=20 dailys,=20 > 5 weeks of weeklys and a year of monthlys). >=20 > Jonathan Thanks guys This was really usefuk =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=20 This e-mail communication (and any attachment/s) may contain confidential=20 or privileged information and is intended only for the individual(s) or=20 entity named above and to others who have been specifically authorized to=20 receive it. If you are not the intended recipient, please do not read,=20 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=20 e-mail, and delete the e-mail subsequently. Please note that in order to=20 protect the security of our information systems an AntiSPAM solution is in = use and will browse through incoming emails.=20 Thank you.=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=20 Ce message (ainsi que le(s) fichier/s), transmis par courriel, peut=20 contenir des renseignements confidentiels ou prot=E9g=E9s et est destin=E9 = =E0=20 l?usage exclusif du destinataire ci-dessus. Toute autre personne est par=20 les pr=E9sentes avis=E9e qu?il est strictement interdit de le diffuser, le = distribuer ou le reproduire. Si vous l?avez re=E7u par inadvertance,=20 veuillez nous en aviser et d=E9truire ce message. Veuillez prendre note=20 qu'une solution antipollupostage (AntiSPAM) est utilis=E9e afin d'assurer l= a=20 s=E9curit=E9 de nos systems d'information et qu'elle fur=E8tera les courrie= ls=20 entrant. Merci.=20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=20
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OF4BA03CCF.AB94C578-ONC12572F0.001EF926-C12572F0.0020C7EE>