On Redhad, edit /etc/mail/sendmail.mc and add the following line towards the end of the file before the first MAILER line:
FEATURE(`dnsbl', `sbl.spamhaus.org',`"Rejected due to Spamhaus listing see http://www.abuse.net/sbl.phtml?IP=" $&{clientaddr} " for more information"')dnl
Then run:
cd /etc/mail/
make
/sbin/service sendmail restart
Here's a simple logrotate script for Tomcat:
/usr/tomcat/apache-tomcat-5.5.27/logs/*.log {
rotate 90
lastaction
/sbin/service tomcat restart
endscript
}
It should be placed at:
/etc/logrotate.d/tomcat