Mirror from bluesky-social/pds

add SMTP docs

+16
+16
README.md
··· 25 25 * [Creating an account using pdsadmin](#creating-an-account-using-pdsadmin) 26 26 * [Creating an account using an invite code](#creating-an-account-using-an-invite-code) 27 27 * [Using the Bluesky app with your PDS](#using-the-bluesky-app-with-your-pds) 28 + * [Setting up SMTP](#setting-up-smtp) 28 29 * [Updating your PDS](#updating-your-pds) 29 30 30 31 <!-- tocstop --> ··· 199 200 1. Enter the URL of your PDS (e.g. `https://example.com/`) 200 201 201 202 _Note: because the subdomain TLS certificate is created on-demand, it may take 10-30s for your handle to be accessible. If you aren't seeing your first post/profile, wait 30s and try to make another post._ 203 + 204 + ### Setting up SMTP 205 + 206 + To be able to verify users' email addresses and send other emails, you need to set up an SMTP server. 207 + 208 + One way to do this is to use an email service. [Resend](https://resend.com/) and [SendGrid](https://sendgrid.com/) are two popular choices. 209 + 210 + Create an account and API key on an email service and set these variables in `/pds/pds.env` (example with Resend): 211 + 212 + ``` 213 + PDS_EMAIL_SMTP_URL=smtps://resend:<your api key here>@smtp.resend.com:465/ 214 + PDS_EMAIL_FROM_ADDRESS=admin@your.domain 215 + ``` 216 + 217 + _Note: Your PDS will need to be restarted with those variables. This varies a bit depending on your setup. You might need to just restart the server or recreate the container, depending on what you are using._ 202 218 203 219 ### Updating your PDS 204 220