Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i'm back! #965

Open
muttnooob opened this issue Nov 12, 2023 · 19 comments
Open

i'm back! #965

muttnooob opened this issue Nov 12, 2023 · 19 comments

Comments

@muttnooob
Copy link

muttnooob commented Nov 12, 2023

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:

  • my email provider - a swiss provider called Infomaniak, or
  • my ineptness at following directions around password GPG store, or
  • again my email provider...it is an @ik.me domain which belongs to them.

note:

  • another email which is hosted at the same provider with my own domain prompts for the actual IMAP and SMTP addresses, don't know why. but it still yields "Log-on not successful" after prompting for those and then the password info.

Any idea why this is happening to me?

@muttnooob
Copy link
Author

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
Copy link
Author

This person seems to be experiencing something similar #963.

@TheYellowArchitect
Copy link

TheYellowArchitect commented Nov 18, 2023

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
Copy link

titanism commented Nov 22, 2023

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
Copy link
Author

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
Copy link
Author

muttnooob commented Nov 27, 2023

@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
Copy link
Author

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
Copy link

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

@muttnooob
Copy link
Author

@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
Copy link

@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
Copy link
Author

muttnooob commented Nov 27, 2023

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
Copy link
Author

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
Copy link

TheYellowArchitect commented Nov 30, 2023

@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
Copy link

TheYellowArchitect commented Nov 30, 2023

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
Copy link
Author

@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
Copy link
Author

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
Copy link
Author

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
Copy link

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
Copy link

TheYellowArchitect commented Jul 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants