Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Oct 2000 00:18:54 -0700 (PDT)
From:      Dima Dorfman <dima@unixfreak.org>
To:        Len Conrad <lconrad@Go2France.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: postfix won't write to maillog??
Message-ID:  <20001025071854.136081F29@static.unixfreak.org>
In-Reply-To: <5.0.0.25.0.20001025073422.049b34c0@mail.Go2France.com> "from Len Conrad at Oct 25, 2000 07:39:59 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> one of my colleagues deleted /var/log.
> 
> we need to see maillog, but postfix is not writing to it, although 
> postfix is MTA'ing just fine.
> 
> in /var/log, ls -all gives:
> 
> total 3
> drwxr-xr-x   2 root  wheel  512 Oct 25 01:09 .
> drwxr-xr-x  18 root  wheel  512 Oct 25 00:50 ..
> -rw-rw-r--   1 root  wheel    2 Oct 25 01:09 maillog
> 
> we re-created maillog manually and set the permission as on another 
> fbsd box here.
> we've started and stopped postfix, but no go.

By default, Postfix doesn't write to maillog directly.  It uses
syslogd.  Unless you've changed that, you need to tell syslogd that
the log file was recreated.  `killall -HUP syslogd` should do the
trick.

You may also want to recreate some of the other log files, namely
'messages'.

Hope this helps

-- 
Dima Dorfman <dima@unixfreak.org>
Finger dima@unixfreak.org for my public PGP key.

"Love is the triumph of imagination over intelligence."
	-- Henry Louis Mencken


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001025071854.136081F29>