Metamapper
  • Documentation
  • Discussion
  • Blog
  • Github

›Installation (Self-Hosted)

Metadata Management

  • Welcome
  • Getting Started
  • Schema Inspection
  • SSH Tunnels
  • Custom Properties
  • Annotations
  • Search

Datastores

  • Overview
  • AWS Athena
  • AWS Glue Data Catalog
  • Azure Synapse
  • Google BigQuery
  • Hive Metastore
  • MySQL
  • Oracle
  • PostgreSQL
  • Redshift
  • Snowflake
  • Microsoft SQL Server

Workspace Management

  • Introduction
  • Access Management
  • Single Sign-On (SSO)
  • SSO Setup: Google
  • SSO Setup: Github
  • SSO Setup: SAML2

Installation (Self-Hosted)

  • Getting Started
  • Configuring Metamapper
  • Extensions
  • Asynchronous Workers
  • Email Configuration
  • File Storage
  • Security
  • Search
  • Healthchecks

Email Configuration

There are occasions where Metamapper needs to send email notifications (user invites, password resets, alerts, etc.) to users. Metamapper uses Django's core mail module to accomplish this.

SMTP Configuration

You'll need to configure an SMTP provider for outbound email. It is recommended that you use some mail service, like Amazon SES or Sendgrid, to send transactional emails.

The email backend defaults to django.core.mail.backends.console.EmailBackend, but can be overriding using environment variables.

Environment VariableDescriptionDefault Value
METAMAPPER_EMAIL_BACKENDThe backend to use for sending emails.console.EmailBackend
METAMAPPER_EMAIL_HOSTThe host to use for sending email.localhost
METAMAPPER_EMAIL_USERUsername to use for the SMTP server defined in METAMAPPER_EMAIL_HOST.None
METAMAPPER_EMAIL_PASSWORDThe password to use for the SMTP server defined in METAMAPPER_EMAIL_HOST.None
METAMAPPER_EMAIL_PORTPort to use for the SMTP server defined in METAMAPPER_EMAIL_HOST.25
METAMAPPER_EMAIL_USE_TLSWhether to use a TLS (secure) connection when talking to the SMTP server.False
METAMAPPER_EMAIL_USE_SSLWhether to use an implicit TLS (secure) connection when talking to the SMTP server.False

You need to set the value of METAMAPPER_WEBSERVER_ORIGIN, which is the base address of your Metamapper instance with the protocol, so for example: https://app.metamapper.io.

It's also recommended that you set METAMAPPER_EMAIL_FROM_ADDRESS to an email address that you are authorized to send from. This addressed will be used as the From and Reply-To for all email notifications.

Sendgrid Example

Here's a quick example of how to configure Metamapper to send email via Sendgrid with a .env file:

METAMAPPER_EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
METAMAPPER_EMAIL_HOST='smtp.sendgrid.net'
METAMAPPER_EMAIL_USER= 'apikey'
METAMAPPER_EMAIL_PASSWORD='replace-with-your-sendgrid-api-key'
METAMAPPER_EMAIL_PORT=587
METAMAPPER_EMAIL_USE_TLS=True
Last updated on 6/24/2020
← Asynchronous WorkersFile Storage →
  • SMTP Configuration
  • Sendgrid Example
Metamapper
Documentation
User GuideInstallation Guide
Community
DiscussionGitHub
Copyright © 2020 Scott Cruwys