Sujet : Re: syslogd and sendmail question: I removed maillog
De : wagnes (at) *nospam* jemoni.to (Wolfgang Agnes)
Groupes : comp.unix.bsd.freebsd.miscDate : 06. Nov 2024, 01:32:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87ed3pkxru.fsf@jemoni.to>
References : 1 2
Bob Eager <
news0009@eager.cx> writes:
On Tue, 05 Nov 2024 19:21:38 -0300, Wolfgang Agnes wrote:
>
I changed the timezone in my system and decided to start over with the
mail log. Without stopping sendmail, I removed /var/log/maillog. Then
I stopped it and started it. I did not see a new maillog being created.
I then restarted syslogd. And also restarted sendmail. Still no
maillog. I tried touching maillog and set the same permissions as the
old file, which I renamed. No messages written to maillog this way. I
looked at /var/log/messages to see if maybe mail messages were being
logged there---I saw some, but they were still in the previous timezone,
so they were not new. I'm puzzled. How wrong was what I did?
>
Best way to recreate any longfile is illustrated by this example for
maillog:
>
rm -f /var/log/maillog
newsyslog -C /var/log/maillog
Thanks! That did it. I had to issue the newsyslog command and then
restart syslogd. (As soon as I'm done with Sendmail, I'll read a book
on syslogd.)