Help answer threads with 0 replies.
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 12-11-2003, 03:49 PM   #1
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 {
create 0664 root root
rotate 3

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:

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

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.


Last edited by Phaethar; 12-11-2003 at 04:05 PM.
Old 12-11-2003, 05:51 PM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
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.

Steve Stites


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

All times are GMT -5. The time now is 02:22 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