Commit graph

3 commits

Author SHA1 Message Date
Stefan
99882bb80a Restrict readerEmail to allowlisted domains
Prevents the form being abused as an open email relay to arbitrary
addresses (which is the realistic abuse vector — disk fill, server
compromise, and device exploitation are all bounded already).

Default allowlist: kindle.com, pbsync.com. Suffix matching so
subdomains (e.g. free.kindle.com) are also accepted.

Configurable via ALLOWED_READER_DOMAINS env var so the list can be
extended without code changes.
2026-05-21 23:54:55 +03:00
Stefan
356e2c8ee6 Default SMTP port to 587 instead of 465
Hetzner (and most VPS providers) block outbound 465 by default as
anti-spam policy. Port 587 with STARTTLS is open and supported by
Resend (and any standard SMTP service). The transporter code already
flips `secure: false` automatically when port != 465, so no code
change is needed — just the default.
2026-05-21 23:30:13 +03:00
Stefan
66bb1f497b Rewrite the send-to-kindle app to work for at least pocketbook as well 2026-05-21 23:08:55 +03:00