On 29/05/13 14:13, Mark Rogers wrote:
First thing is to make sure you're getting notifications from RAID. This should just be a case of making sure your system can send emails and then putting your email address in /etc/mdadm/mdadm.conf (set the MAILADDR parameter).
Mine was left set to the default: "root", a mailbox which isn't checked. Make sure you can send emails from the command-line: mail <insert your chosen address here> .. and follow the prompts, making sure you're able to send (and receive!) the email. (Apologies for the sucking eggs lesson but there'll be someone reading this that might need it).
Re email address, my server uses a file called /etc/aliases
It has various entries like
postmaster: root
I've added an entry like root: user_who_should_receive_emails
Where user_who_should_receive_emails is replaced with the user name of the person who should receive root's (and any other system) emails. For that user, the email name and email address. Once you've edited this file, run
sudo newaliases
to inform the email system that aliases have been modified.
Just pointing out the obvious - you won't get any email notifications from your raid server if your raid server does not have some sort of email sending program on it.
Cheers Steve