How to enable mail notification with SupremeRAID#

How to enable mail notification with SupremeRAID#

Environment

RAID Model: SR1000 or SR1010, SR1001
Host Hardware: Intel, AMD
Operating System: Linux / Windows

Issue

Mail notification 

Resolution

Linux

Email Notification Agentdeb (opens new window)rpm

Windows


Install mail notification daemon

For CentOS, RHEL, Rocky Linux and AlmaLinux

$ sudo rpm -ivh graid-mail-notification-{version}-{build_number}.g{commit_id}.rpm

For Ubuntu

$ sudo dpkg -i graid-mail-notification-{version}-{build_number}.g{commit_id}.deb

For Windows
execute the mail notification agent installer


Configuration

To configure the detail mail notification setting.

Edit the config file

$ vim /etc/graid/sendmail.toml

The mail server's auth section can be left blank if there's no user account authorization. The "from", "host", and "port" fields can be edited as needed, and the typical port numbers are "25", "465", and "587".



Start mail notification service

$ sudo systemctl start graid-mail-notification

Stop mail notification service

$ sudo systemctl stop graid-mail-notification

Send a testing mail to specify mail address

$ sudo graid_mail_notification -t


Remove mail notification

For CentOS, RHEL, Rocky Linux and AlmaLinux

$ sudo rpm -e graid-mail-notification

For Ubuntu

$ sudo dpkg -r graid-mail-notification
For windows
uninstall the 
mail notification agent 

Note: Once user installed this mail-notification daemon, if users want to remove graid driver they need to remove this daemon first, otherwise the user would get the error message.