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

i'm back! #965

Open muttnooob opened 9 months ago

muttnooob commented 9 months ago

after several months away from mutt wizard, and neomutt, i've decided to come back for round 2. i'm such a noob, in that all i know about CLI is just what i've read in the last few months on it. totally not a linux head or anything... appreciate the patience...

problem: no matter what email i try to add using "mw -a email@email.com" I get "Log-on not successful" i am 100% the password is successful and that this account does not require any app-specific passwords to use, like Gmail. And I had no trouble setting these accounts up months ago. thunderbird (yuck) seems to have no problem logging in today via IMAP and downloading with these credentials.

suspect:

note:

Any idea why this is happening to me?

muttnooob commented 9 months ago

just did some digging on the various files included in MW, and realized -- could it be a TLS or secure connection issue? And how do I make sure it is not this problem? Thanks in advance! (my email provider requires SSL / TLS authentication) -- my hunch is this is the trigger for "log-on not successful"....

muttnooob commented 9 months ago

This person seems to be experiencing something similar https://github.com/LukeSmithxyz/mutt-wizard/issues/963.

TheYellowArchitect commented 9 months ago

Hello @muttnooob More info is required to determine the problem, but I will try my best since I also used thunderbird before neomutt (I set it up yesterday) and also had the "log-on not succesful" message

What do you input for IMAP and SMTP server? For my personal email (on website theyellowarchitect.com), if I used imap.theyellowarchitect.com and smtp.theyellowarchitect.com it then asked for password but no matter what I entered, it said "log-on not succesful" message. I then used mail.theyellowarchitect.com for both IMAP and SMTP input. This made it work for me

If the above is not the issue, then it's maybe the port. By default IMAP is 993 and SMTP 465 (I have 587, it worked by default) , but if you have a different port, you must manually add it. See man mw and look into the -i and s command

If the imap/smtp address is not the issue, try to ssh into the mail server. It should only ask you for the same password you would input at neomutt's final input. If you connect with ssh, then the issue is probably the wrong imap/smtp address

titanism commented 9 months ago

Hey there, we're the team behind @forwardemail (https://forwardemail.net) and we grew frustrated with Thunderbird; so we're trying out open-source terminal clients. We recommended mutt-wizard in our docs, and then stumbled upon this when trying to set it up. Ultimately what worked for us is to specify everything via the option flags, e.g. mw -a you@yourdomain.com -s smtp.forwardemail.net -S 587 -u you@yourdomain.com -i imap.forwardemail.net -I 993.

muttnooob commented 9 months ago

Fantastic guys -- i will try this.

I will say to @TheYellowArchitect that I am 100% sure the server addresses are correct. In my case, both are "mail.infomaniak.com" So, I will go down the path of port specification and see where it leads... will update soon.

It is nice to see, as usual the support we get in these communities here and elsewhere of people who are a few steps ahead. I will return the favor to someone else, I promise.

muttnooob commented 9 months ago

@titanism @TheYellowArchitect I tried doing manual settings, careful to double check the port and passwords for any potential errors. I still got "Log-on not successful" Where in the process would there be like an error code I could examine? Would the mail provider have record of what went wrong maybe? It is very strange - as these very same settings get Thunderbird up and running with no problems.

muttnooob commented 9 months ago

Hey there, we're the team behind @forwardemail (https://forwardemail.net) and we grew frustrated with Thunderbird; so we're trying out open-source terminal clients. We recommended mutt-wizard in our docs, and then stumbled upon this when trying to set it up. Ultimately what worked for us is to specify everything via the option flags, e.g. mw -a you@yourdomain.com -s smtp.forwardemail.net -S 587 -u you@yourdomain.com -i imap.forwardemail.net -I 993.

by the way -- i visited your website and LOVE what you're doing.

titanism commented 9 months ago

@muttnooob thank you! feedback super welcome. we ❤️ reading mail over terminal 😆

muttnooob commented 9 months ago

@muttnooob thank you! feedback super welcome. we ❤️ reading mail over terminal 😆

so -- if i can't get this neomutt mutt wizard thing working -- what terminal client do you recommend? - just tried himalaya, but it seems like a productivity drain since it's pure CLI....

titanism commented 9 months ago

@muttnooob you could try https://github.com/d99kris/nmail, it's more like alpine, but a bit more modern.

we wanted something with vi key bindings, so we went with neomutt

muttnooob commented 9 months ago

oh oh - something is happening -- i did the above but this time i'm using -f which forces account creation without connection, and then running mbsync -- looks like it is grabbing stuff..... @TheYellowArchitect @titanism

muttnooob commented 9 months ago

guys, looks like everything is working -- except I can't figure out how to get the mailsync or "mw -T" to work. it doesn't appear to be automatically pulling mails. do you know how i can find out if the cronjob manager is working?

TheYellowArchitect commented 9 months ago

@muttnooob I haven't done automatically pulling mails atm (I just execute mailsync since it is binded to Super+F8 by default, see dwm's config)

I found this in luke's config guide (Super+F1)

Once you have successfully added your email address(es), you can open your mail with
neomutt which is also bound to Mod+e. You can sync your mail by pressing Mod+F8 and you
can set a cronjob to sync mail every 10 minutes by running mw -t 10.

You may also want to install pam-gnupg-git, which can be set up to automatically
unlock your GPG key on login, which will allow you avoid having put in a password to sync and
send, all while keeping your password safe and encrypted on your machine.

I ran mw -t 10, the output looks like "Task Failed Succesfully" since I lack crontab

/usr/local/bin/mw: line 243: crontab: command not found
Adding automatic mailsync every 10 minutes...
/usr/local/bin/mw: line 252: crontab: command not found

If you have crontab it should work for you @muttnooob

TheYellowArchitect commented 9 months ago

crontab I opened /usr/local/bin/mw to see what mw -t does, it seems crontab is required, but latest LARBS lacks crontab. At least from my side.

muttnooob commented 9 months ago

@muttnooob I haven't done automatically pulling mails atm (I just execute mailsync since it is binded to Super+F8 by default, see dwm's config)

I found this in luke's config guide (Super+F1)

Once you have successfully added your email address(es), you can open your mail with
neomutt which is also bound to Mod+e. You can sync your mail by pressing Mod+F8 and you
can set a cronjob to sync mail every 10 minutes by running mw -t 10.

You may also want to install pam-gnupg-git, which can be set up to automatically
unlock your GPG key on login, which will allow you avoid having put in a password to sync and
send, all while keeping your password safe and encrypted on your machine.

I ran mw -t 10, the output looks like "Task Failed Succesfully" since I lack crontab

/usr/local/bin/mw: line 243: crontab: command not found
Adding automatic mailsync every 10 minutes...
/usr/local/bin/mw: line 252: crontab: command not found

If you have crontab it should work for you @muttnooob

mw -t X seems to return no error messages, so it must be working. i keep pressing "o" just in case. but i suppose i could do a bunch of sending myself some emails to see if it is working. thank you!

muttnooob commented 9 months ago

crontab I opened /usr/local/bin/mw to see what mw -t does, it seems crontab is required, but latest LARBS lacks crontab. At least from my side.

ah yes. i wouldn't know where to find mw, but now I know. thank you again.

muttnooob commented 9 months ago

it seems neomutt truncates formatting to include both URL highlights and formatting of, say, bullets.

if there is a URL link longer than the defined width of the message view, those extra parts of the link are not highlighted to be useful. my workaround to get to URLs is to install URLscan and do CTRL+B to find the link I need.

similarly, if a person sends you an email with a few bullet points, the coloring of the bullet point also ends where the defined width of the message view as well.

have either of you picked up on this issue as well?

TheYellowArchitect commented 9 months ago

if there is a URL link longer than the defined width of the message view, those extra parts of the link are not highlighted to be useful. my workaround to get to URLs is to install URLscan and do CTRL+B to find the link I need.

email-url

The URL was not cut, though I have no idea how to highlight or yank or open a hyperlink in neomutt without mouse (like newsboat, where you press o and auto-opens the base url)

TheYellowArchitect commented 1 month ago

no matter what email i try to add using "mw -a email@email.com" I get "Log-on not successful" i am 100% the password is successful and that this account does not require any app-specific passwords to use, like Gmail. And I had no trouble setting these accounts up months ago. thunderbird (yuck) seems to have no problem logging in today via IMAP and downloading with these credentials.

I reformatted LARBS recently, and lost my GPG keys. On pressing mw -a hello@theyellowarchitect.com I couldn't login no matter what, even though my password was correct (I tried all possible) I even did ssh hello@theyellowarchitect.com to ensure the password was the problem I got the "log on not succesful."

Once I confirmed this, I did ssh root@theyellowarchitect.com (has sudo priviledges) and did passwd hello and changed the password. Then I connected no problem.