Archive | August 3, 2010

Configure Spamhaus In Sendmail

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 Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with [...]

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
View Comments Continue Reading →

Tomcat Log Rotation

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 Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Print for later Bookmark in Browser Tell [...]

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
View Comments Continue Reading →