A self-hosted dead man's switch for delivering encrypted messages (E2EE) to your loved ones — when you're gone or unresponsive.
A self-hosted dead man's switch for delivering encrypted messages (E2EE) to your loved ones — when you're gone or unresponsive.
LastSignal is a self-hosted, email-first dead man's switch. You write encrypted messages for the people you care about. If you stop responding to email check-ins, LastSignal delivers those messages automatically.
Website: lastsignal.app
[!IMPORTANT] LastSignal is open source and self-hosted. The authors do not offer any hosted service, SaaS, paid subscription, or commercial instance of LastSignal. If you see LastSignal presented elsewhere as a paid hosted product, it is not an official LastSignal service.
For advanced self-hosted setups, you can also generate an optional external keep-alive token and send a
machine-to-machine check-in to /webhooks/keepalive. This is an add-on for automations, not a replacement
for the default email-first model.
⚠️ Critical: Strong Passphrases Required
LastSignal uses a server-generated KDF salt stored alongside recipient public keys. This is a deliberate architectural trade-off that enables deterministic key regeneration from passphrases, but it introduces a specific threat: if an attacker gains access to the database (via server compromise, data breach, malicious operator, or law enforcement request), they obtain the salt and can attempt offline brute-force attacks against recipient passphrases without any rate limiting.
All timing settings are configurable per user in Account Settings.
| Setting | Default |
|---|---|
| Check-in interval | 30 days |
| Reminder attempts | 3 (includes the first reminder) |
| Attempt interval | 7 days |
| Trusted contact pause | 15 days |
Example timeline:
| Event | Date | State |
|---|---|---|
| Last check-in | Apr 1 | Active |
| Reminder #1 | May 1 | Active |
| Reminder #2 | May 8 | Grace |
| Reminder #3 (final + trusted contact ping) | May 15 | Cooldown |
| Delivery (if no response) | May 22 | Delivered |
If the trusted contact confirms on May 16:
| Event | Date | State |
|---|---|---|
| Delivery paused until | May 31 | Cooldown (paused) |
| New trusted contact ping | May 31 | Cooldown |
| Delivery unless the user checks in or the trusted contact confirms again | Jun 7 | Delivered |
Recipient-specific delay: You can also set a delay (in days) per recipient. This delays when the recipient can decrypt the message after delivery—useful for staggered access or time-sensitive information.
This runs a local dev stack and opens emails in your browser using letter_opener.
Example for a fresh Ubuntu install:
apt-get update && apt-get install -y \
git \
ruby \
bundler \
libyaml-devgit clone https://github.com/giovantenne/lastsignal.git
cd lastsignal
bundle install
cp .env.example .env
bin/setup
bin/devThen open http://localhost:3000 and request a magic link.
The email opens in your browser automatically via letter_opener.
If you want to try the app without installing Ruby locally, use the dev compose stack with Mailhog:
docker compose -f docker-compose.dev.yaml up --buildThen open:
This lets you test the full check-in -> delivery flow quickly, without waiting days.
Prereqs:
bin/rails demo:checkins:status [email protected]
bin/rails demo:checkins:advance [email protected]
bin/rails demo:checkins:advance_days [email protected] DAYS=7
bin/rails demo:checkins:deliver [email protected]`Docker commands:
docker compose -f docker-compose.dev.yaml exec app bin/rails demo:checkins:status [email protected]
docker compose -f docker-compose.dev.yaml exec app bin/rails demo:checkins:advance [email protected]
docker compose -f docker-compose.dev.yaml exec app bin/rails demo:checkins:advance_days [email protected] DAYS=7
docker compose -f docker-compose.dev.yaml exec app bin/rails demo:checkins:deliver [email protected]Notes:
advance sends the next email in the sequence (reminder -> grace -> cooldown -> delivery).advance_days simulates time passing by N days and runs the check-in job.bin/rails demo:checkins:deliver [email protected]# Full suite
bin/test
# Targeted specs
bin/test spec/models/user_spec.rb
bin/test spec/jobs/process_checkins_job_spec.rb
bin/test spec/requests/auth_spec.rbYou only need Docker, SSH access, and a reliable SMTP provider.
Kamal docs: https://kamal-deploy.org
Copy the template and fill in the required values:
cp .env.production.example .env.productionYou must set:
KAMAL_* (image, registry, server, domain)APP_BASE_URL and APP_HOSTSMTP_* (your provider credentials)ALLOWED_EMAILS (optional allowlist for private instances)Generate a master key if you don't have one:
bin/rails credentials:editbin/kamal setup
bin/kamal deploybin/kamal app exec --interactive --reuse "bin/rails db:prepare"
bin/kamal app exec --interactive --reuse "bin/rails db:prepare DATABASE=cache"
bin/kamal app exec --interactive --reuse "bin/rails db:prepare DATABASE=queue"bin/kamal logsHealth check: https://YOUR_DOMAIN/up
If you prefer not to use Kamal, you can deploy with docker-compose using the provided docker-compose.prod.yaml.
…For production, place a reverse proxy (nginx, Caddy, Traefik) in front of the app to handle HTTPS. Example with Caddy:
yourdomain.com {
reverse_proxy localhost:80
}Caddy automatically provisions Let's Encrypt certificates.
Email delivery is mission-critical for LastSignal. If your SMTP setup is misconfigured, messages may never arrive.
Most transactional email providers (such as Postmark, SendGrid, or similar services) guide you through this process and provide the required DNS records and configuration details.
p=none, then tighten to quarantine or rejectSMTP_FROM_EMAIL)The default deployment stores the SQLite database and Active Storage files in the Docker volume lastsignal_storage. Back it up regularly.
Backup:
docker run --rm -v lastsignal_storage:/data -v "$PWD":/backup alpine \
sh -c "cd /data && tar -czf /backup/lastsignal_storage.tgz ."Restore:
docker run --rm -v lastsignal_storage:/data -v "$PWD":/backup alpine \
sh -c "cd /data && tar -xzf /backup/lastsignal_storage.tgz"Timing, rate-limit, and crypto defaults live in config/initializers/app_config.rb.
Contributions welcome! Please open an issue first to discuss changes.
This project is licensed under the MIT License.
See LICENSE for details.
LastSignal is provided "as is" without warranty of any kind. The authors provide only the source code and do not host, operate or monitor the server on your behalf. All email delivery is performed by your self-hosted instance and your chosen SMTP provider.
By using this project, you accept full responsibility for configuration, security, backups, content, recipients, compliance obligations, and the consequences of any delivery or non-delivery. The authors disclaim all liability for damages, data loss, missed or premature delivery, misuse, or any other outcome, whether arising from bugs, misconfiguration, third-party outages, or operational errors.
LastSignal is not a substitute for a will, trust, power of attorney, or any other legal instrument. It is not legally binding and should not be relied upon to transfer rights, property, or obligations. If you need legal certainty, consult a qualified attorney and use appropriate legal documents.
If you find LastSignal useful and want to support its development, you can donate via ₿itcoin:
bc1qt6z0e5ttcjx0cnwjdl8mua2srt0lamah5lnnvm
Donations help support ongoing maintenance, security reviews, and long-term sustainability of the project. Thank you
No open issues yet, or sync has not completed.