Hi all
I have a weird problem with my sendmail that I can't work out (I posted it
a few weeks ago, but haven't got any response yet, so I'm posting it
again).
When the logs rotate (with logrotate) sendmail starts to only log half of
what it did before. Before rotation it would log the email coming in, then
also log the actual delivery to the mailbox.
After logrotate rotaes my logs, it only logs the delivery to my mailbox.
If I restart sendmail, or HUP it, logging goes back to normal.
sendmail 8.10.1
syslogd1.3-3 (came with RH 6.1)
the standard RH 6.1 syslog.conf file
things I've tried:
- put /usr/bin/killall -HUP sendmail in the postrotate section of the
syslog rotate config file (/etc/logrotate.d/syslogd)
- tried getting it to pause for a second before HUP'ing sendmail
- tried stopping sendmail then restarting it, with and without the pause
- tried recreating the maillog file before restarting sendmail
none of these worked :(
Any ideas?
Regards,
Chris.
example before logging, and after restarting sendmail:
Jul 3 13:36:00 sb sendmail[21258]: e635Zt021258:
from=<[EMAIL PROTECTED]>, size=1806, class=-30, nrcpts=1,
msgid=<"ElbU_.0.sa5.wU1Ov"@lists.redhat.com>, proto=SMTP, daemon=MTA,
relay=lists.redhat.com [199.183.24.247]
Jul 3 13:36:11 sb sendmail[21259]: e635Zt021258:
to=<[EMAIL PROTECTED]>, delay=00:00:15, xdelay=00:00:11,
mailer=local, pri=84787, dsn=2.0.0, stat=Sent
example after logrotate:
Jul 3 13:36:11 sb sendmail[21259]: e635Zt021258:
to=<[EMAIL PROTECTED]>, delay=00:00:15, xdelay=00:00:11,
mailer=local, pri=84787, dsn=2.0.0, stat=Sent
relevant /etc/syslog.conf section:
mail.* /var/log/maillog
relevant logrotate section:
/var/log/maillog {
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.