Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-11-2003, 06:37 PM   #1
LQ Newbie
Registered: May 2003
Location: Brazil
Distribution: Red Hat 9 + Fedora
Posts: 22

Rep: Reputation: 15
maillog is getting too big!!!

In my job , we have a mailserver running redhat 9 , with imap , spamassassin , sendmail and squirrelmail.. The only problem is that the log files are getting too big (size varies from 2 to 3 GB per week).
Right now , all these mail programs are sending their logs to /var/log/maillog , but I want to configure each one of them to send their data to /var/log/programname.log (sendmail.log , for example). I need to do this , because we want to use some tools to check our logs and they freak out when there`s log info that doesn`t belong to sendmail....

Old 11-12-2003, 06:27 AM   #2
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
When using syslog this is not possible since it just does logging by priority and by facility. You can however, adjust your logrotation so that it rotates daily and compresses the log files afterwards. See the logrotate.conf manpage for more information
Old 11-12-2003, 07:04 AM   #3
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
In my slackware config I have the following line in /etc/syslog.conf
mail.*              -/var/log/maillog
Seems to catch the imapd stuff, don't know about sendmail as we use qmail.

And of course you'll want a daily cron job to rotate and compress the logs for you as well.

You may also want to have a look at daemontools

Last edited by mcleodnine; 11-12-2003 at 07:10 AM.
Old 11-12-2003, 06:14 PM   #4
LQ Newbie
Registered: May 2003
Location: Brazil
Distribution: Red Hat 9 + Fedora
Posts: 22

Original Poster
Rep: Reputation: 15
isn't there a way to config the daemons (sendmail , xinetd , spamd) to use different log files? I really need to split these logs , so I can use some tools to analise my log files and find spammers and such....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Big O, Big Omega, and Big Theta oulevon Programming 7 05-26-2010 08:18 AM
Maillog unwanted relay basbosco Linux - Security 2 11-22-2005 06:10 AM
File /var/log/maillog too big. Zepiroth Linux - Software 0 05-10-2004 07:12 AM
Maillog entries lapthorn Linux - Newbie 0 12-04-2003 11:18 AM
postfix maillog help.. hct224 Linux - Newbie 3 11-28-2003 04:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration