Thanks Kai for the input.<br><br>> There is *no* need to have an extra mail file for logrotate,
just get rid of it.<br>> BTW: your question should have gone to the MailScanner list, anyway.<br>Well, I can see how that *might* be correct, but take MailScanner out of the equation, it's uses the standard maillog log file. On a stock setup, /var/log/maillog rotates to /var/log/maillog, /var/log/maillog.0, /var/log/maillog.1 and so on. I want to change that to use dateext and compress it, so hence the /etc/logrotate.d/mail file. So if I only wanted to simply rotate the maillog file with those parameters, this would be the appropriate list.<br>
<br>Getting this error, clued me in:<br>error: syslog:1 duplicate log entry for /var/log/maillog<br><br>The more appropriate *fix* in this situation is to remove /var/log/mail from /etc/logrotate.d/syslog and allow /var/logrotate.d/mail to handle the rotate. Now all works as desired. I do not remember doing that on my last mailserver setup, but that was sometime ago.<br>
<br>Thanks<br><br><br><div class="gmail_quote">On Mon, Nov 9, 2009 at 2:31 PM, Kai Schaetzl <span dir="ltr"><<a href="mailto:maillists@conactive.com">maillists@conactive.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ryan Ivey wrote on Mon, 9 Nov 2009 12:47:01 -0500:<br>
<div class="im"><br>
> The file rotates correctly if I manually force it, however my logs won't<br>
> update until I restart syslogd. In other words, the new /var/log/maillog<br>
> isn't created after the logrotate. I have to manually restart syslogd and<br>
> manually touch /var/log/maillog.<br>
<br>
</div>Look in the syslog file for logrotate where the original content for your<br>
"recipe" is. There is *no* need to have an extra mail file for logrotate,<br>
just get rid of it. Instead change MailScanner logging to a different file<br>
and then use something like that. Look at the last line!<br>
<br>
/var/log/mailscanner.log {<br>
weekly<br>
compress<br>
dateext<br>
maxage 365<br>
rotate 99<br>
size=+4096k<br>
notifempty<br>
missingok<br>
copytruncate<br>
}<br>
<br>
BTW: your question should have gone to the MailScanner list, anyway.<br>
<div><div></div><div class="h5"><br>
<br>
Kai<br>
<br>
--<br>
Kai Schätzl, Berlin, Germany<br>
Get your web at Conactive Internet Services: <a href="http://www.conactive.com" target="_blank">http://www.conactive.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>