Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@
# POSTGRES_PORT=5432
# POSTGRES_HOST=localhost

# =============================================================================
# EMAIL (SMTP) CONFIG EXAMPLE
# -----------------------------------------------------------------------------
# This step is optional. Joplin Server can send emails (password reset links,
# email change confirmations, etc.) through an SMTP server. To enable it, set
# MAILER_ENABLED to true and provide the connection details below.
# =============================================================================
#
# MAILER_ENABLED=true
# MAILER_HOST=smtp.example.com
# MAILER_PORT=465
# MAILER_SECURITY=tls # Can be "tls", "starttls" or "none"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
# MAILER_AUTH_USER=username
# MAILER_AUTH_PASSWORD=password
# MAILER_NOREPLY_NAME=Joplin
# MAILER_NOREPLY_EMAIL=noreply@example.com

# =============================================================================
# TRANSCRIBE CONFIG EXAMPLE
# -----------------------------------------------------------------------------
Expand Down
25 changes: 25 additions & 0 deletions packages/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,31 @@ Besides the database and filesystem, it's also possible to use AWS S3 for storag

STORAGE_DRIVER=Type=S3; Region=YOUR_REGION_CODE; AccessKeyId=YOUR_ACCESS_KEY; SecretAccessKeyId=YOUR_SECRET_ACCESS_KEY; Bucket=YOUR_BUCKET

## Setting up email (SMTP)

This step is optional.

By default, the server does not send any email. It can however be configured to send messages — for example password reset links, email change confirmations or payment failure notices — through an SMTP server, by setting the following variables in the `.env` file:

```conf
MAILER_ENABLED=true
MAILER_HOST=smtp.example.com
MAILER_PORT=465
MAILER_SECURITY=tls
MAILER_AUTH_USER=username
MAILER_AUTH_PASSWORD=password
MAILER_NOREPLY_NAME=Joplin
MAILER_NOREPLY_EMAIL=noreply@example.com
```

- **MAILER_ENABLED** — set to `true` to enable sending emails. If it is `false` or if **MAILER_HOST** is not set, the email service is disabled.
- **MAILER_HOST** and **MAILER_PORT** — the address and port of the SMTP server. Port 465 is typically used for TLS, and 587 for STARTTLS.
- **MAILER_SECURITY** — how the connection is secured. Can be `tls` (the default), `starttls` or `none`.
- **MAILER_AUTH_USER** and **MAILER_AUTH_PASSWORD** — credentials to login to the SMTP server. Leave them empty if the server does not require authentication.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
- **MAILER_NOREPLY_NAME** and **MAILER_NOREPLY_EMAIL** — the display name and email address used as the sender of all outgoing emails. **MAILER_NOREPLY_EMAIL** must be set for the email service to work.

Restart the server for these variables to take effect.

## Verify access to the admin page

Once Joplin Server is exposed to the internet, open the admin UI. For the following instructions, we'll assume that Joplin Server is running on `https://example.com/joplin`.
Expand Down
Loading