LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-15-2007, 05:24 AM   #1
weblink_dipti
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
why is maillog on my server getting created in /var/log/maillog.3 ?


Hi all,

I have Fedora Core 2 installed on my server. The problem is that my "maillog" is getting created in /var/log/maillog.3 instead of /var/log/maillog (which is blank at present).

I have also checked /etc/syslog.conf but to find no errors there. I think there is also some problem with log rotation since maillog, maillog.1 and maillog.2 are all blank.

Can anyone help me out with this?

Thanks in advance.
 
Old 06-15-2007, 05:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
sounds like you need to hup whatever is writing to that file during the logrotate postrotate stage. once a daemon like sendmail opens the file with the given name, that file is then used regardless of what it is called, so if you rename it, it's still got an open file handle and will still hav those messages written to it. by hupping the daemon, all files should be closed and then reopened, based on original configuration details. as such the new empty will be created and written to.
 
Old 06-16-2007, 04:47 AM   #3
weblink_dipti
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Its working now

I just restarted my "syslogd" service and ran the logrotate command once. so, logs are now getting created in /var/log/maillog

Thanks for your help
 
  


Reply

Tags
linux, maillog


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
STARTTLS errors in /var/log/maillog joe.biz Linux - Software 1 10-26-2005 04:18 PM
File /var/log/maillog too big. Zepiroth Linux - Software 0 05-10-2004 06:12 AM
need log analyzer for: spmassassin, maillog, samba Finlay Linux - Software 1 03-09-2004 01:12 PM
/var/log/maillog file size vaughn Linux - Software 6 12-15-2003 05:12 PM
wierd spamassassin entries in /var/log/maillog Pcghost Linux - Software 1 07-15-2003 10:56 AM


All times are GMT -5. The time now is 10:57 AM.

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