Article View: alt.privacy.anon-server
Article #282684Re: Purging mail.log manually
From: Nathan Hale
Date: Sun, 15 May 2016 14:21
Date: Sun, 15 May 2016 14:21
26 lines
1678 bytes
1678 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I don't have a cron job set up to purge my mail.log. I prefer
> to do it myself every day. For anyone interested, use the following
> command after navigating to cd /var/log
>
> rm mail.log && touch mail.log ; service rsyslog restart
>
> Postfix does not need to be stopped or restarted.
I would suggest adding this in /etc/logrotate.d/rsyslog and let it compress and auto rotate the mail.logs out of you system. Then you will have mail.log data to research if necessary. The 'rotate 3' parameter designates how many daily backups to keep. You may not have the experience or knowledge to go through log data now, but that will come. There have been many times that I needed to go back and inspect log data.
/var/log/mail.log
{
rotate 3
daily
copytruncate
missingok
notifempty
delaycompress
compress
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
Technical Details
Message-ID:
<c58d0f897a2c23268fea63e56f062a3f@remailer.org.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<4730e1fe983e8a630d3fca83f5606dc9@remailer.org.uk>Show Full Headers
Complete Article Headers
Message-ID: <c58d0f897a2c23268fea63e56f062a3f@remailer.org.uk> Subject: Re: Purging mail.log manually Date: Sun, 15 May 2016 14:21:30 +0000 From: Nathan Hale <nobody@remailer.org.uk> References: <4730e1fe983e8a630d3fca83f5606dc9@remailer.org.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: alt.privacy.anon-server Organization: dizum.com - The Internet Problem Provider X-Abuse: abuse@dizum.com Injection-Info: sewer.dizum.com - 194.109.206.211