Setting Up SMTP

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

About this task

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

Setting Up SMTP Using the Control System

About this task

Use the following procedure to configure the cluster to use an SMTP server to send email:

Procedure

  1. Log in to the Control System and click Admin > User Settings > SMTP.
  2. Set up the email account the MapR 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 MapR should use when sending email. Example: MapR Cluster
    Sender's Email Address The email address that MapR should use when sending email.
    Sender's Username The user name that MapR should use when logging on to the SMTP server.
    Sender's SMTP Password The password that MapR 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

About this task

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.