this post was submitted on 08 Jun 2023
1 points (100.0% liked)
Lemmy Support
4652 readers
1 users here now
Support / questions about Lemmy.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
you can define it as environment variables in https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/docker-compose.yml i.e mine contains these lines:
thanks! got it working now. In SendGrip generated an api key, at
- POSTFIX_smtp_sasl_password_maps=static:smtp_username:smtp_password
filled inapikey:[theapikey]
andrelayhost=smtp.sendgrid.net:587
also add a verified From address in SendGrid, which is added in your lemmy.hjson email.smtp_from_address
Thank you for sharing!
I'm trying to figure this out and I'm stuck at creating the file to save the API key. Where did you put the file in the lemmy-ansible setup?
after installing with ansible, change the docker-compose.yml file on you server passing the api in the ENV variable:
the postfix section now looks like this
Thank you!