Fichier authactivity à placer dans /etc/cron.daily/

#!/bin/bash

body='/tmp/mailtest_body.txt'
dest='julien.smadja@gmail.com'

echo "Activite authentification" > $body
echo "" >> $body

cat /var/log/auth.log >> $body
mv /var/log/auth.log /tmp/auth.log

mpack -s "[BlackDojo] Activite authentification" $body $dest