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.