diff --git a/bluesky/README.org b/bluesky/README.org index 1f4feeb..4510765 100644 --- a/bluesky/README.org +++ b/bluesky/README.org @@ -30,7 +30,6 @@ provide settings for an external SMTP service: #+begin_src yaml bluesky: - charm: bluesky ## line is optional if your service name is "bluesky" # ... myemail: @@ -43,6 +42,16 @@ myemail: password: mypassword #+end_src +Your SMTP might require a sensible email-from field, so to set it: + +#+begin_src yaml +bluesky: + # ... + options: + email-from: no-reply@mydomain.com +#+end_src + + ** request a new invite To be able to add account, you need to create new invites from your diff --git a/bluesky/lib/common b/bluesky/lib/common index cc2c2ea..e4b622f 100644 --- a/bluesky/lib/common +++ b/bluesky/lib/common @@ -64,4 +64,9 @@ PDS_CRAWLERS=https://bsky.network LOG_ENABLED=true EOF + if email_from=$(options-get "email-from" 2>/dev/null) && [ -n "$email_from" ]; then + echo "PDS_EMAIL_FROM_ADDRESS=${email_from}" >> "$PDS_ENV_FILE" + fi + + }