emersion / hydroxide

A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge
MIT License
1.56k stars 120 forks source link

Respect `HYDROXIDE_BRIDGE_PASS` while serving #277

Open fpringle opened 2 weeks ago

fpringle commented 2 weeks ago

Hi, maybe I've misunderstood but it seems like hydroxide lets us set a specific bridge password using the environment variable HYDROXIDE_BRIDGE_PASS for most commands except hydroxide [serve|smtp|imap]. Am I wrong? If not, this would be a really useful feature. For my usecase, I want hydroxide to run as a systemd service with a pre-set password so that I don't have to re-configure my mail client each time.

emersion commented 2 weeks ago

That's not possible, these subcommands are multi-user.

fpringle commented 2 weeks ago

Ah, I see. Would it be possible to add command-line options to configure passwords on a per-user basis?

emersion commented 2 weeks ago

I'd rather not. The other commands directly need the password but the servers don't.