Thread View: alt.privacy.anon-server
7 messages
7 total messages
Started by Nathan Hale
Sun, 15 May 2016 11:36
Purging mail.log manually
Author: Nathan Hale
Date: Sun, 15 May 2016 11:36
Date: Sun, 15 May 2016 11:36
31 lines
1978 bytes
1978 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. Kind Regards B -----BEGIN PGP SIGNATURE----- Version: N/A iQIcBAEBAgAGBQJXOE8VAAoJEFHFlkOXyWQq/M4P/2RRnsOZYifZbQKiVKLiW1it L30NR86aqzhuQ8LLZoTXDotbSeE7mVJm65IcsEo1/yexeNlGZ5qjj5MQ10CG5tC6 xqNpJ4BUAhdU+d0Ms4GTMJdmswUCg+e1gqbeZNYWGf+BFcHw7gmpl14o7sCHEeJx 5dL4h/h7e8NmV7hOeB0AbCd4jNfQe1El+LUWY/vspcu9iq4dVujoKwnSqA5f453Z iUV9Fu6NTya7PCAZuZToiHPBl4YwzR1x+kgOw+z3MyPFfPLsOW0Jv9/4CzFRi30z /k6ycKX1H83tRh1n7sT/NgorwYW+FEdzBTMwMi1xIdCobD8zFFgCsv+Fq1Jqx25Q RONpVIUK6GEO32huH9jeSqh799zWXR/DCsSgDtH29GQRXvs2h5ok5pBFjUFF22Gk 7v1z1vxrbRDLoqzz3TxmpgT7H8qj8ocLEZG1iWZ0/IRJBmdWUhIeUCtt10CTv+N/ xyu4Z1+LlkaOcCQz4/H2p5cjzhsu8ycTRdI8oldJxR0TbjSDSCVRMA2WX9kfEWGx yjvYHjUXeMyc6F2BkrE6NagiDfmR5xIhU1KmMMepUFBElWtgP0/jwAgkzRSTtZrj BIunFOWRUpxnymyxv1qMKXqVAP+Xn44yXP2p38f6UrfoHe/JCkt2WP00k+WNiofC 30yUw8YR7UxpprH2sm/m =z4lx -----END PGP SIGNATURE-----
Re: Purging mail.log manually
Author: 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
}
Re: Purging mail.log manually
Author: Anonymous Remailer (austria)
Date: Mon, 16 May 2016 12:16
Date: Mon, 16 May 2016 12:16
4 lines
744 bytes
744 bytes
> I don't have a cron job set up to purge my mail.log. Why keep logs?
Re: Purging mail.log manually
Author: Anonymous
Date: Mon, 16 May 2016 13:08
Date: Mon, 16 May 2016 13:08
7 lines
1042 bytes
1042 bytes
>> I don't have a cron job set up to purge my mail.log. > > Why keep logs? Mainly to detect break ins. I use Snoopy and a script to monitor my machine.
Purging mail.log manually
Author: Nathan Hale
Date: Tue, 17 May 2016 16:18
Date: Tue, 17 May 2016 16:18
17 lines
1358 bytes
1358 bytes
> 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. > > Kind Regards > B Sounds OK to me.. one of the prime features of mixmaster relays is that the remop keeps NO mail logs. Purging the mail.log manually or via a cron job every 24 hours is OK.
Re: Purging mail.log manually
Author: Anonymous
Date: Tue, 17 May 2016 17:49
Date: Tue, 17 May 2016 17:49
18 lines
1434 bytes
1434 bytes
>> 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. >> >> Kind Regards >> B > > > Sounds OK to me.. one of the prime features of mixmaster > relays is that the remop keeps NO mail logs. Purging > the mail.log manually or via a cron job every 24 hours > is OK. Never heard of this - done.
Purging mail.log manually
Author: Jeremy Bentham
Date: Tue, 17 May 2016 21:33
Date: Tue, 17 May 2016 21:33
12 lines
1218 bytes
1218 bytes
> 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. > > Kind Regards > B Thanks for this, it's quick, and it works.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads