I think this must be a misc issue rather than a ports issue but the issue
concerns the use of mail/sma in /etc/daily.local.

For several days I have had /etc/daily.local set up to run sma to produce an
ascii summary of /var/log/maillog as follows..

sma -a /var/log/maillog > /tmp/maillog.out
mail -s "Daily sendmail analysis" root < /tmp/maillog.out
rm /tmp/maillog.out

This invariably produces an empty maillog.out file when run from the
standard cron job.

I popped in various diagnostic steps including copying maillog to
maillog.dummy just to verify that the executable could process files when
run from cron (making sure that the rights and owner mirrored maillog
exactly and I got the dummy output but no actual output from the real
maillog.

I also made sure that newsyslog was scheduled to rotate /var/log/maillog at
a specific time rather than at a particular interval by changing the when
field in /etc/newsyslog.conf from 24 to $D03 for a 3am daily execution in
the belief that sma was actually seeing an empty file when it was run. -
Still no joy.

Any thoughts folks?

-Andy

Reply via email to