bz2, sm-mta, spamassassin, mimedefang
Derek Davies
ddavies at ddavies.net
Thu Mar 11 22:16:19 CET 2004
Hi!
I'm using lire to process my sendmail log on a FreeBSD machine.
FreeBSD keeps yesterday's full log file in /var/log/maillog.0.bz2 .
Is there a way to have lire uncompress the log for processing? I've
had to hack lr_cron so that it looks for $preprocessor and
$postprocessor like so:
for f in $jobs
do
test -r "$f" || {
echo >&2 "$PROGRAM: file '$f' from joblist lr_jobfiles_$period not readable" &&
exit 1
}
. $f
test -n "$preprocessor" || {
`$preprocessor`
}
test -r "$log" || {
echo >&2 "$PROGRAM: logfile '$log' from '$f' not readable" &&
exit 1
}
test -n "$filter" || {
echo >&2 "$PROGRAM: jobfile '$f' didn't set filter" &&
exit 1
}
lr_run $filter < $log | \
lr_run lr_log2mail -s "$subject" $superservice $service "$to" $flags
test -n "$postprocessor" || {
`$postprocessor`
}
done
And set the extra vars in email.daily.sendmail.1.local . This is ok
but I wonder if there's a way that will stand upgrades.
Also, I have spamassassin set up using sendmail's milter interface.
When I reject spam it shows up in maillog, not with 'sendmail\[' but
instead with 'sm-mta\[';
Mar 11 02:21:03 noodle sm-mta[40366]: i2B7Ksnu040366: Milter: data, reject=554 5.7.1 Thanks for the spam, but no thanks. Please write again if you're not really a spammer.
Are there service defs for this or do I need to create my own? It
seems like simply counting lines with 'reject=554' would suffice.
Thanks,
Derek
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list