Files
nairobi/docs/en/installation/mail_server_configuration.md
Javi Martín 13c641eedc Update application name
Note that, in order to have some consistency, we're always writing
"Consul Democracy", instead of using capital letters sometimes (but not
always), like we did until now.
2023-07-12 15:36:49 +02:00

1.3 KiB

Mail Server Configuration

This is an example of how to integrate a mailing service with Consul Democracy.

In this example we use Mailgun.

Create an account in Mailgun

Creating an account in Mailgun

  • Skip the credit card form
  • And activate your account with the link sent by email

Domain configuration

  • Go to the Domains section: Mailgun domain section
  • Since you don't have a domain yet, you should click in the sandbox that is already created
  • Remember the following credentials: Mailgun sandbox

Consul Democracy mailing configuration

  • Go to the config/secrets.yml file
  • Change the lines on the file to configure the mail server under the section staging, preproduction or production, depending on your setup:
  mailer_delivery_method: :smtp
  smtp_settings:
     :address: "<smtp address>"
     :port: 587
     :domain: "<domain>"
     :user_name: "<user_name>"
     :password: "<password>"
     :authentication: "plain"
     :enable_starttls_auto: true
  • Fill <smtp address>, <domain>, <user_name> and <password> with your information
  • Save the file and restart your Consul Democracy application