Update Production-guide.md (#585)
This commit is contained in:
parent
022d02351b
commit
d9ea83d908
|
@ -504,15 +504,17 @@ It may be easier to use a subdomain to setup your email with a custom provider -
|
||||||
|
|
||||||
Once you create your account, follow the instructions each provider gives you for updating your DNS records. Once you have all the information ready to go and the service validates your DNS configuration, edit your config file. These records should already exist in the configuration, but here's a sample setup that uses Mailgun that you can replace with your own personal info:
|
Once you create your account, follow the instructions each provider gives you for updating your DNS records. Once you have all the information ready to go and the service validates your DNS configuration, edit your config file. These records should already exist in the configuration, but here's a sample setup that uses Mailgun that you can replace with your own personal info:
|
||||||
|
|
||||||
|
```
|
||||||
SMTP_SERVER=smtp.mailgun.org
|
SMTP_SERVER=smtp.mailgun.org
|
||||||
SMTP_PORT=587
|
SMTP_PORT=587
|
||||||
SMTP_LOGIN=anAccountThatIsntPostmaster@mstdn.domain.com
|
SMTP_LOGIN=anAccountThatIsntPostmaster@mstdn.domain.com
|
||||||
SMTP_PASSWORD=HolySnacksAPassword
|
SMTP_PASSWORD=HolySnacksAPassword
|
||||||
SMTP_FROM_ADDRESS=Domain.com Mastodon Admin <notifications@domain.com>
|
SMTP_FROM_ADDRESS=Domain.com Mastodon Admin <notifications@domain.com>
|
||||||
|
```
|
||||||
|
|
||||||
Finally, to test this, spin up a Rails console (see [the administration guide](https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md)) and run the following commands to test this out:
|
Finally, to test this, spin up a Rails console (see [the administration guide](https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Administration-guide.md)) and run the following commands to test this out:
|
||||||
|
|
||||||
```
|
```ruby
|
||||||
m = UserMailer.new.mail to:'email@address.com', subject: 'test', body: 'awoo'
|
m = UserMailer.new.mail to:'email@address.com', subject: 'test', body: 'awoo'
|
||||||
m.deliver
|
m.deliver
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue