Date: Sat, 21 Oct 2006 10:51:27 -0400 From: Bill Moran <wmoran@collaborativefusion.com> To: Zbigniew Szalbot <zbyszek@szalbot.homedns.org> Cc: freebsd-questions@freebsd.org Subject: Re: log rotation, one process doesn't know about it Message-ID: <20061021105127.b424bcfb.wmoran@collaborativefusion.com> In-Reply-To: <20061021160140.X39264@192.168.11.51> References: <20061021091555.O30081@192.168.11.51> <20061021095626.72171da9.wmoran@collaborativefusion.com> <20061021160140.X39264@192.168.11.51>
next in thread | previous in thread | raw e-mail | index | archive | help
In response to Zbigniew Szalbot <zbyszek@szalbot.homedns.org>: > Hello, > > On Sat, 21 Oct 2006, Bill Moran wrote: > > > Do one of the following: > > 1) Configure both exim and dovecot to log through syslog with the same > > facility. Then configure syslogd to put that facility in the file > > you want. > > As FBSD is still new to me, I am trying to understand what it would > involve. Exim is configured to log to /var/log/exim/mainlog. In the > newsyslog.conf I have > > /var/log/exim/mainlog mailnull:mail 640 60 * @T00 ZC > > Does it mean exim uses syslogd? It is not obvious to me. If it does, how > can I do the same with dovecot? In dovecot.conf I have the path pointing > to /var/log/exim/mainlog. If I want to use syslogd, do I have to write to > /var/log/maillog? > > I want to get it right using the first solution. Thank you very much > for your patience with me! You're asking all the wrong questions. Take a step back and do a little reading, it's not really hard once you know what order to go in. First, read the man pages for syslogd and syslog.conf. The high-level explanation is that syslogd accepts messages from many places and handles them according to its configuration. syslogd and newsyslog are two different programs, despite the similarities in their names, they are independent. Next, research the program logger, which is a simple tool to send messages to syslogd. Experiment a bit to get a feel for how messages are being handled, and gain an understanding of facilities and levels. >From there, both Dovecot and Exim will both have configuration parameters to tell them _how_ to log. Looking at my Dovecot config, I didn't have to change anything to have it log to syslogd with facility mail. I don't use Exim, so I can't speak to the details of its config. If you have specific questions, post to the list. -- Bill Moran Collaborative Fusion Inc.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061021105127.b424bcfb.wmoran>