Adding Email Support
dsTest works with standard Linux mail clients to allow e-mail notification of certain critical events encountered by dsTest. To support these e-mail notifications, the dsTest platform must have mail services enabled. The following instructions may be helpful in getting basic mail client and mail transport tools installed and configured.
The specific commands may vary depending on which Linux OS is being used. This example was created and tested on Ubuntu.
1. Install mail client and transport agent
# apt-get install nullmailer
# apt-get install mailutils
2. Configure nullmailer
Specify the system administrator's e-mail address.
# echo "<destination email address>" > /etc/nullmailer/adminaddr
Specify the default domain:
# echo "<domain name>" > /etc/nullmailer/defaultdomain
Specify the system's domain name:
# echo "<system's fully qualified domain name>" > /etc/nullmailer/me
Specify details for connecting to an SMTP server. In this example we'll assume that the server requires an authenticated login. If your server has specific login requirements not shown here, please refer to the nullmailer documentation for details.
# echo "<smtp server FQDN> smtp --port=<port number> --auth-login --user=<user name> --pass=<password>" > /etc/nullmailer/remotes
3. Restart your nullmailer daemon
# /etc/init.d/nullmailer restart
4. Send a test email
$ echo "test" | mail <destination email address> -s "test e-mail"