On Tue, Oct 01, 2002, Andrew J Caines wrote:
> [...]
> I have read TFMs,
^
<grin>
> perused the web pages and am convinced that fsl is a
> logger's wet dream. This leads me to wonder why I am not already logging
> stuff.
>
> # rpm -q fsl
> fsl-1.0.3-20020907
> # rpm -q postfix
> postfix-1.1.11-20020911
> # rpm -ql postfix | egrep fsl
> /cw/etc/fsl/fsl.postfix
> [Unchanged from default]
> # egrep log /cw/etc/fsl/fsl.postfix
> path="/cw/var/postfix/log/postfix.log",
> # ls -l /cw/var/postfix/log/postfix.log
> -rw-rw-rw- 1 root cw 0 Sep 25 17:13 /cw/var/postfix/log/postfix.log
> [Changed from default to 666 for testing]
>
> So given all that, why am I not already logging to that log file?
For unknown reasons (but I've already seen this once in the past)
the ownership is incorrect: The file has to be
-rw-r--r-- 1 cw cw 1393453 Oct 2 11:12 postfix.log
So do a "chmod 644" and "chown cw" on this file, followed by a
"/cw/etc/rc postfix stop start" and it should log fine. Keep in mind
that just permissions 666 do not work because of security checks in
Postfix.
> The next question would be how do I use a different log file -
> /var/log/maillog - which is used by syslog without worrying about
> conflicts, locking or other shenanigans?
Replace path="/cw/var/postfix/log/postfix.log" in
/cw/etc/fsl/fsl.postfix with path="/var/log/maillog".
Alternatively you can directly log to your syslogd(8)
with the help of the fsl/l2 syslog channel.
> If you've got your magic answering hat on, then please go ahead and tell
> me why only some users can get their mail after I substituted Postfix's
> default MDA with procmail. It doesn't seem to depend on .procmailrc
> (presence or content). The mail server always accepts the message, it's
> not in the queue (/cw/sbin/mailq), but it may or may not by delivered to
> the user's spool - $MAIL (/var/mail/$LOGNAME).
Because in OpenPKG's procmail pre-configuration mail (for
multiple reasons ranging from backup reasons to multiple OpenPKG
instance reasons, etc) is delivered to $HOME/.mail/inbox. If
you it to be delivered to /var/mail/$LOGNAME you have to change
/cw/etc/procmail/procmailrc and use:
MAILDIR=/var/mail/$LOGNAME
ORGMAIL=/var/mail/$LOGNAME
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]