Greetings and Salutations !
and Happy Holidays.
I have questions concerning receiving messages through mail and cron for root.
I've tried:
Code:
# mail -u root - No mail for root
Code:
cat /var/log/spooler
has no output
Code:
# cat /var/log/maillog
mailog - displays
Code:
sendmail[3508]: nBP8S391003508: from=root, size=2266, class=0, nrcpts=1, msgid=<200912250828.nBP8S391003508@my.server>, relay=root@localhost
What does this mean?
I understand it has nothing to do with running mail server, but receiving system messages.
Is there another way to see these messages?
which ones can i disable that aren't necessary?
And I found a script for Arno's iptables firewall logs , that is supposed to mail root the out put
script :
Code:
#! /bin/sh
#
# /etc/cron.daily/fwfilter - Arno's iptables-firewall activity
# monitoring script.
#
FWFILTER=/path/to/arno's/fwfilter
FWLOG=/var/log/firewall
DAY="$(/bin/date '+%b %e' --date=yesterday)"
if [ -f "${FWFILTER}" -a -f "${FWLOG}" ]; then
/bin/grep "${DAY}" ${FWLOG} | ${FWFILTER}
fi
Thanks for any feedback