LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-11-2003, 02:49 PM   #1
Phaethar
Member
 
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Logrotate setup questions


Ok, so I'm trying to get logrotate to work properly with maillog. By default, it wants to maillog build up over 4 weeks before deleting anything, but the mail server we are putting together needs to have it a new log every day, and we only need it to hold on to 1-2 days worth at a time. So, after checking 'man logrotate', I proceed to try and set it up. I'm not having any luck with this though. Here's the entry I put into the logrotate.conf file:

/var/log/maillog {
daily
create 0664 root root
rotate 3
compress
}

I also removed the entry '/var/log/maillog' from the /etc/logrotate.d/syslog file, just in case it was pulling the setting from that file still. I had hoped this was all I needed to do, but changing the date, running the cron job and/or rebooting, the log file is not changing, it just keeps adding to the exisiting log. I'm really hoping I can get this to work so I don't need to start manually deleting old log files every day. Any advice?

Also, any chance someone could tell me what this error means in my maillog:

Quote:
Outgoing sendmail[3693]: daemon MTA: problem creating SMTP socket
followed by:

Quote:
Outgoing sendmail[3693]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
These errors show up repeatedly (about 10 times each or so) each time the computer is reset. Things still run fine, but I'd like to find out what these errors are.

Thanks.

Last edited by Phaethar; 12-11-2003 at 03:05 PM.
 
Old 12-11-2003, 04:51 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Your /etc/logrotate.conf file looks good to me.

You could check to see if cron is actually running logrotate on a daily basis. /etc/cron.daily/logrotate should contain the command:
/usr/sbin/logrotate /etc/logrotate.conf

Also /usr/sbin/logrotate and /etc/logrotate.conf should be executable.
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply



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
X windows setup questions apsuman VectorLinux 0 06-26-2004 01:08 PM
Postfix Setup Questions? frankd99 Linux - Newbie 1 01-24-2004 08:04 PM
A few email setup questions.... Mr. Eek Linux - Software 2 11-04-2003 08:35 PM
Postfix setup questions Phaethar Linux - Networking 1 10-15-2003 03:29 PM
Some Setup Questions ToeShot Slackware 11 10-02-2002 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration