Two resources which helped me set up Raid Rebuild, Raid Email Monitoring and to simulate a Raid Failure to get an Email Notification are the following websites:-
1. http://ubuntuforums.org/showthread.php?t=1185134
2. http://linux-raid.osdl.org/index.php/Detecting,_querying_and_testing
For my Trixbox 2.8.0.2 these are the general steps that I took:-
Made sure there was my ISP’s SMTP server in Settings -> General Settings
Opened up the file /etc/mdadm.conf using vi /etc/mdadm.conf
Then I modified the line MAILADDR root to MAILADDR my@email.com
Then I added the line MAILFROM fromemail@email.com
Save and close mdadm.conf
run
mdadm --monitor --scan --test --oneshot
You should get an email with a subject that says Test Message Event on /dev/something
Then I ran
mdadm --monitor --scan --daemonize --test --syslog
and that was it!! Now whenever there is a failure of any one of the drives in my trixbox I get an email telling me so!!
To simulate a failure to test it out follow the instructions on the second link I provided at the top. It has detailed instructions on how to do a software raid failure test!
Hope this helps someone!