Archives for: August 2010

08/03/10

Permalink 08:40:54 am, by admin Email , 58 words   English (US)
Categories: Sendmail

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

Permalink 07:47:50 am, by admin Email , 28 words   English (US)
Categories: Tomcat

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

August 2010
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Reliable Penguin offers Linux Server Migrations, Systems Administration & Programming. Visit our main website at:

http://www.reliablepenguin.com

Search

Bookmark and Share

XML Feeds

powered by b2evolution free blog software