Pamela Rock wrote:
Can anyone prove insigth into this, any help would be
appreciated.
Thanks in advance,
I have setup maildrop and sendmail on a Red hat
Enterprise 4 system. Maildrop works great. It
processes mail as I'd expect.
I am however having problems setting up logging via
/etc/maildroprc. At this time, that is my only
requirement. I've tried many settings including the
following. Please let me know what I need to do to
get maildrop to log to /var/log/maildrop file.
FYI....
[root@mail-v1 log]# ls -l /var/log/maildrop
-rw-r--r-- 1 root root 0 Jul 10 16:03
/var/log/maildrop
contents of /etc/maildroprc are
SHELL="/bin/bash"
SENDMAIL="/usr/lib/sendmail"
MAILDROP="/usr/local/bin/maildrop"
TEST="/usr/bin/test -f"
MAILDIR="/var/mail"
logfile "/var/log/maildrop"
#
# Set date/time
#
TICKS=`date +%s`
DATE=`date +%T`
TIME=`date +%x`
#
# Start logging
#
log "$TICKS : *** Maildrop filtering for $RECIPIENT
$DATE $TIME"
log "$TICKS : >>> Sender: $SENDER"
to "$MAILDIR"
As Mike said, permissions.... Add a line like:
`set > /tmp/maildrop-setting.txt`
See who $USER is set to and then:
chown user /var/log/maildrop
that should do it...
Jay