Sam Varshavchik a écrit :
Thierry B writes:
Hello,
I'd like to use maildrop wit syslog, so after, I'll be able to use
maildrop logs with syslog-ng.
I've recompiled maildrop with the option: --enable-syslog=1
I've put that at the beginning of my /etc/maildroprc:
SENDMAIL="/usr/sbin/sendmail -oi -f $FROM"
#logfile "/var/log/maildrop.log"
VERBOSE = "5"
log "========"
so I commented my previous line logfile.
But when I make:
cat /var/log/syslog | grep -i "maildrop"
I just have the lines maildrop used bu postfix to call maildrop, but not
the log files of maildrop.
See INSTALL:
• --enable-syslog=1 - if specified, maildrop will log all fatal errors
to syslog(3). This is recommended for sendmail, which does not log
error messages for delivery agents.
So, does the above maildrop recipe look like a "fatal error" to you?
No,
So there is no way to log maildrop logs with something like that?
/var/log/$YEAR:$MONTH:$DAY/maildrop.log ?
Because syslog-ns is able to do that but I find no way for ssyslog-ng to
see maildrop logs. It's not possible to use a facility in maildrop I
think because it was possible, I'd be able to use a path like that?
Thanks :-)
Bye.