pimalaya / himalaya

CLI to manage emails
https://pimalaya.org
MIT License
3.17k stars 95 forks source link

support ip-addresses as imap/smtp host #448

Closed hitchhooker closed 1 year ago

hitchhooker commented 1 year ago

11038 🕸 cat config.toml [~] [email-reading-format] type = "auto"

["tommi@example.lol"] backend = "imap" email = "tommi@example.lol" default = true display-name = "Tommi" sender = "smtp" smtp-host = "127.0.0.1" smtp-port = 1025 smtp-starttls = true smtp-login = "tommi@example.lol" smtp-passwd-cmd = "pass show protonmailbridge" sync = false sync-folders-strategy = "all" imap-host = "127.0.0.1" imap-port = 1143 imap-starttls = true imap-login = "tommi@example.lol" imap-passwd-cmd = "pass show protonmailbridge"

["tommi@example.lol".email-reading-format] type = "auto" pc02 𓅨 ~ 11039 🕸 11032 🕸 himalaya [~] Error: cannot login to imap server

Caused by: presented server name type wasn't supported

hitchhooker commented 1 year ago

Areplacing fields with localhost seems to work as workaround, leading to another issue related to certificates:

Error: cannot login to imap server

Caused by:
    invalid peer certificate contents: invalid peer certificate: CaUsedAsEndEntity
soywod commented 1 year ago

For supporting IP addresses, I opened an issue at https://todo.sr.ht/~soywod/pimalaya/80.

For the CaUsedAsEndEntity error: I would advise to wait for the next release, it may resolve this issue. I let you know.

soywod commented 1 year ago

Bumping rustls to v0.21 gave us IP support for free. It is available on master since 3b8c5ec and should be available for the next CLI release.

soywod commented 1 year ago

New release available: https://github.com/soywod/himalaya/releases/tag/v0.8.0

hitchhooker commented 1 year ago

awesome, ill give it a new try