Aaron Walker wrote:
A few days ago I finally finished setting up my old P233 to act as a
firewall for my home LAN.  I am using metalog for the logger and have it
filtering all netfilter logging into /var/log/iptables, and rotating the
file daily.

I already have postfix and everything set up so that any mail to root on
the firewall gets relayed to my mail server on the local network.


I know metalog has a "command" directive, but that calls a command for
each entry.  Is there anyway to mail the most recently rotated log each
day?


cron demon is your friend


just write a command which sends file e.g.:

mail -s "iptables log" </path/logfile

to crontab in /var/spool
or better to /etc/cron.daily/iptables.mail
(U can find some examples in that dir.)

noro

--
[EMAIL PROTECTED] mailing list



Reply via email to