tahapan nya :
1. login ke server ( ssh )
2. jenis scripts yg di gunakan :
/var/log/maillog {
daily
rotate 31
start 1
compress
create 0600 root
dateext
postrotate
/etc/init.d/postfix reload > /dev/null
endscript
atau
/var/log/maillog {
missingok
notifempty
size 100M
daily
create 0600 root root
rotate 35
dateext
copytruncate
}
3. tambahkan script di atas di :
/etc/logrotate.conf
4. buat juga file berikut :
nano /etc/logrotate.d/maillog
isi kan script file di atas.
5. restart service
service postfix restart
6. nanti akan terlihat ada file log /hari di /var/log/
(Visited 85 times, 1 visits today)