• Re: syslogd and sendmail question: I removed maillog

    From Bob Eager@21:1/5 to Wolfgang Agnes on Tue Nov 5 22:41:20 2024
    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

    --
    Using UNIX since v6 (1975)...

    Use the BIG mirror service in the UK:
    http://www.mirrorservice.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Agnes@21:1/5 to All on Tue Nov 5 19:21:38 2024
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Wolfgang Agnes@21:1/5 to Bob Eager on Tue Nov 5 21:32:05 2024
    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.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)