LukeSmithxyz / mutt-wizard

A system for automatically configuring mutt and isync with a simple interface and safe passwords
GNU General Public License v3.0
2.39k stars 382 forks source link

solution for protonmail? #981

Closed recallmenot closed 6 months ago

recallmenot commented 6 months ago

Hi, thank you all very much for writing mutt-wizard!

I'd like to propose a path to a solution for protonmail. Like for others, it is still impossible for me to setup mutt with mutt-wizard to access the hydroxide protonmail bridge, no matter how verbose I am:

mw -a fistname.lastname@proton.me -u fistname.lastname -x "bridgepasswordwithspecialcharslike/=" -i localhost -I 1025 -s localhost -S 1143
Log-on not successful.

some notes

For reference, I've been using that email with git send-email for months now and this is how I set it up:

~/.gitconfig:
[sendemail]
    smtpserver = localhost
    smtpuser = firstname.lastname
    smtpencryption = none
    smtpserverport = 1025
[credential]
    helper = store --file ~/.gitCRED

~/.gitCRED
smtp://firstname.lastname%40proton.me:bridgepasswordwithspecialcharslike%2f%3d@localhost%3a1025

Yes, I know my bridge password is naked, I've set up pass for mutt-wizard but not for git yet. Note that while storing the password, it converted special chars like @,/ and = to %40, %2f and %3d, though I think this is not necessary for mutt.

I hope this can finally lead to a solution, I enjoy using proton and using it with mutt (nvim, really) would be fantastic!

recallmenot commented 6 months ago

I got it working!

It may be a good idea to put this somewhere people can find it a bit easier than in the hidden-by-default closed issues, feel free to.

To use mutt-wizard to add a protonmail / proton.me account connected to hydroxide to neomutt:

mw -a "username@proton.me" -u "username" -x "bridge_pass_w_special_chars/=" -i localhost -I 1143 -s localhost -S 1025 -f

disable encryption for IMAP

nvim ~/.mbsyncrc
SSLType None

receiving email with mbsync -a should work from here on

disable encryption for SMTP note that ~/.msmtprc is a symlink to ~/.config/msmtp/config

nvim ~/.config/msmtp/config
auth plain
tls off
tls_starttls off

sending email in neomutt should work from here on