Setting Up SMTP

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

Setting Up SMTP Using the MapR Control System

Use the following procedure to configure the cluster to use an SMTP server to send email:
  1. Log in to MapR 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 dropdown menu. If you select Gmail or Office 365, the SMTP server and port information will be prefilled 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 MapR should use when sending email. Example: MapR Cluster
    Sender's Email Address The email address MapR should use when sending email.
    Sender's Username The username MapR should use when logging on to the SMTP server.
    Sender's SMTP Password The password 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 was a problem sending the email. If there is a problem, also check the fields to make sure 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.