Setting Up SMTP

Describes how to set up SMTP information using the Control System and the CLI.

You can specify SMTP server information for the cluster using the Control System and the CLI.

Setting Up SMTP Using the Control System

Use the following procedure to configure the cluster to use an SMTP server to send email:
  1. Log in to the Control System and click Admin > User Settings > SMTP.
  2. Set up the email account the data-fabric cluster must use to send alerts and other notifications.
    Provider Select Gmail, Office 365, or SMTP from the drop-down menu. If you select Gmail or Office 365, the SMTP server and port information will be pre-filled for you.
    SMTP Server The SMTP server to use for sending mail.
    This server requires an encrypted connection (SSL) Specifies an SSL connection to SMTP.
    SMTP Port The SMTP port to use for sending mail.
    Sender's Full Name The name that data-fabric should use when sending email. Example: MapR Cluster
    Sender's Email Address The email address that data-fabric should use when sending email.
    Sender's Username (Optional) The user name that data-fabric should use when logging on to the SMTP server.
    Sender's SMTP Password (Optional) The password that data-fabric should use when logging on to the SMTP server.
  3. Click Save Changes.
    An email request is sent to the specified email address. You can check the /opt/mapr/logs/cldb.log file if there is a problem sending the email. If there is a problem, also check the fields to make sure that the SMTP information is correct. Click Revert if you wish to cancel the changes.

Setting Up SMTP Using the CLI

Use the maprcli config save command to set the SMTP server. For example:

maprcli config save -values '{"mapr.smtp.provider":"gmail",
               "mapr.smtp.server":"smtp.gmail.com",
               "mapr.smtp.sslrequired":"true",
               "mapr.smtp.port":"465",
               "mapr.smtp.sender.fullname":"Ab  Cd",
               "mapr.smtp.sender.email":"xxx@gmail.com",
               "mapr.smtp.sender.username":"xxx@gmail.com",
               "mapr.smtp.sender.password":"abc"}'

For complete reference, see config save.