8000 iOS Mail - incorrect username or password · Issue #328 · mjl-/mox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

iOS Mail - incorrect username or password #328

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? 8000 Sign in to your account

Closed
Myp3a opened this issue Apr 4, 2025 · 2 comments
Closed

iOS Mail - incorrect username or password #328

Myp3a opened this issue Apr 4, 2025 · 2 comments

Comments

@Myp3a
Copy link
Myp3a commented Apr 4, 2025

Hello! I've got an issue while trying to set up my usual mail clients.

iOS Mail client fails on account addition - after entering all the data and waiting for "Verifying...", client throws an error message, saying that username or password is incorrect. They are fine, I can log in with these through GMail client on the same device.

Error screenshot

Image

I couldn't figure something meaningful out of the logs, attaching them here - maybe, you could solve this?

Mox logs
Apr 04 08:11:35 Matilda mox[1520698]: l=info m="new connection" pkg=imapserver remote=178.66.156.200:9865 local=176.56.237.212:993 tls=true listener=public cid=195ffd8bc14 delta="94.209µs"
Apr 04 08:11:35 Matilda mox[1520698]: l=debug m="starting tls server handshake" pkg=imapserver cid=195ffd8bc14 delta="68.552µs"
Apr 04 08:11:35 Matilda mox[1520698]: l=debug m="tls handshake completed" pkg=imapserver version=tls-1.3 ciphersuite=TLS_AES_128_GCM_SHA256 sni=pcho.la resumed=false clientcerts=0 cid=195ffd8bc14 delta=89.409054ms
Apr 04 08:11:35 Matilda mox[1520698]: l=trace m="S: * OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE QUOTA QUOTA=RES-STORAGE AUTH=PLAIN] mox imap\r\n" pkg=imapserver cid=195ffd8bc14 delta="83.18µs"
Apr 04 08:11:36 Matilda mox[1520698]: l=trace m="C: 1 AUTHENTICATE PLAIN\r\n" pkg=imapserver cid=195ffd8bc14 delta=139.881155ms
Apr 04 08:11:36 Matilda mox[1520698]: l=traceauth m="S: ***" pkg=imapserver cid=195ffd8bc14 delta="62.701µs"
Apr 04 08:11:36 Matilda mox[1520698]: l=traceauth m="C: ***" pkg=imapserver cid=195ffd8bc14 delta=63.953227ms
Apr 04 08:11:36 Matilda mox[1520698]: l=trace m="S: 1 OK [CAPABILITY IMAP4rev2 IMAP4rev1 ENABLE LITERAL+ IDLE SASL-IR BINARY UNSELECT UIDPLUS ESEARCH SEARCHRES MOVE UTF8=ACCEPT LIST-EXTENDED SPECIAL-USE LIST-STATUS AUTH=SCRAM-SHA-256-PLUS AUTH=SCRAM-SHA-256 AUTH=SCRAM-SHA-1-PLUS AUTH=SCRAM-SHA-1 AUTH=CRAM-MD5 ID APPENDLIMIT=9223372036854775807 CONDSTORE QRESYNC STATUS=SIZE QUOTA QUOTA=RES-STORAGE AUTH=PLAIN] authenticate done\r\n" pkg=imapserver cid=195ffd8bc14 delta="188.701µs" username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=debug m="imap command done" pkg=imapserver cmd=authenticate duration=64.243317ms cid=195ffd8bc14 delta="102.161µs" username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=trace m="C: 2 ID (\"name\" \"iPad Mail\" \"version\" \"22D72\" \"os\" \"iOS\" \"os-version\" \"18.3.1 (22D72)\")\r\n" pkg=imapserver cid=195ffd8bc14 delta=60.315873ms username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=info m="client id" pkg=imapserver params="map[name:iPad Mail os:iOS os-version:18.3.1 (22D72) version:22D72]" cid=195ffd8bc14 delta="81.541µs" username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=trace m="S: * ID (\"name\" \"mox\" \"version\" \"v0.0.14-go1.24.1\")\r\n2 OK ID done\r\n" pkg=imapserver cid=195ffd8bc14 delta="22.309µs" username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=debug m="imap command done" pkg=imapserver cmd=id duration="129.661µs" cid=195ffd8bc14 delta="89.5µs" username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=info m="imap command ioerror" err="unexpected EOF (io error)" pkg=imapserver cmd= duration=64.854031ms cid=195ffd8bc14 delta=64.736161ms username=ykyc!meny@pcho.la
Apr 04 08:11:36 Matilda mox[1520698]: l=info m="connection closed" err="unexpected EOF (io error)" pkg=imapserver cid=195ffd8bc14 delta="306.133µs" username=ykyc!meny@pcho.la

Apr 04 08:13:06 Matilda mox[1520698]: l=info m="new connection" pkg=smtpserver remote=178.66.156.200:9933 local=176.56.237.212:25 submission=false tls=false listener=public cid=195ffd8bc16 delta="64.092µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=trace m="LS: 220 pcho.la ESMTP mox v0.0.14-go1.24.1\r\n" pkg=smtpserver cid=195ffd8bc16 delta="43.3µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=trace m="RC: EHLO smtpclient.apple\r\n" pkg=smtpserver cid=195ffd8bc16 delta=64.060146ms
Apr 04 08:13:06 Matilda mox[1520698]: l=debug m="smtp command result" pkg=smtpserver kind=smtp cmd=ehlo code=250 ecode= duration="27.771µs" cid=195ffd8bc16 delta="73.231µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=trace m="LS: 250-pcho.la\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-STARTTLS\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-LIMITS RCPTMAX=1000\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=195ffd8bc16 delta="17.349µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=trace m="RC: STARTTLS\r\n" pkg=smtpserver cid=195ffd8bc16 delta=156.642502ms
Apr 04 08:13:06 Matilda mox[1520698]: l=debug m="smtp command result" pkg=smtpserver kind=smtp cmd=starttls code=220 ecode=2.0.0 duration="20.12µs" cid=195ffd8bc16 delta="63.349µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=trace m="LS: 220 2.0.0 go! (H49zY1Q4EFRLG2NZeFheKA)\r\n" pkg=smtpserver cid=195ffd8bc16 delta="10.731µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=debug m="starting tls server handshake" pkg=smtpserver cid=195ffd8bc16 delta="69.389µs"
Apr 04 08:13:06 Matilda mox[1520698]: l=debug m="tls handshake completed" pkg=smtpserver version=tls-1.3 ciphersuite=TLS_AES_128_GCM_SHA256 sni=pcho.la resumed=false clientcerts=0 cid=195ffd8bc16 delta=195.154149ms
Apr 04 08:13:07 Matilda mox[1520698]: l=trace m="RC: EHLO smtpclient.apple\r\n" pkg=smtpserver cid=195ffd8bc16 delta=102.155384ms
Apr 04 08:13:07 Matilda mox[1520698]: l=debug m="smtp command result" pkg=smtpserver kind=smtp cmd=ehlo code=250 ecode= duration="25.671µs" cid=195ffd8bc16 delta="96.34µs"
Apr 04 08:13:07 Matilda mox[1520698]: l=trace m="LS: 250-pcho.la\r\n250-PIPELINING\r\n250-SIZE 104857600\r\n250-REQUIRETLS\r\n250-ENHANCEDSTATUSCODES\r\n250-8BITMIME\r\n250-LIMITS RCPTMAX=1000\r\n250 SMTPUTF8\r\n" pkg=smtpserver cid=195ffd8bc16 delta="22.921µs"
Apr 04 08:13:07 Matilda mox[1520698]: l=trace m="RC: QUIT\r\n" pkg=smtpserver cid=195ffd8bc16 delta=64.252967ms
Apr 04 08:13:07 Matilda mox[1520698]: l=debug m="smtp command result" pkg=smtpserver kind=smtp cmd=quit code=221 ecode=2.0.0 duration="24.191µs" cid=195ffd8bc16 delta="86.12µs"
Apr 04 08:13:07 Matilda mox[1520698]: l=trace m="LS: 221 2.0.0 okay thanks bye\r\n" pkg=smtpserver cid=195ffd8bc16 delta="22.06µs"
Apr 04 08:13:07 Matilda mox[1520698]: l=info m="connection closed" pkg=smtpserver cid=195ffd8bc16 delta="160.832µs"

Btw, autoconfig doesn't work for Apple clients - both macOS and iOS clients require me to fill in mail server address manually. Could this be related to some mismatched protocol configuration that both parties can't agree on?

Running Mox v0.0.14 with properly configured domain pcho.la and iPadOS 18.3.1 on iPad Air 5 (2022).

@mjl-
Copy link
Owner
mjl- commented Apr 4, 2025

Hi @Myp3a!
The error message appears to be about the SMTP connection (looking at the logs). The IMAP connection authentication works, and the same username/password is valid for submission. The problem for SMTP is that apple is connecting to port 25, which is used for delivery between mail servers. They should be connecting to the submission ports (port 465 with TLS, or port 587 for plain text). A long time ago, port 25 was used by email clients for submission, but not any more. I don't know why apple mail is still trying to use port 25 by default, instead of at least trying port 465, or the various autoconfig options. They are developing apple mail actively, so I suspect it's a matter of priorities...

To configure apple mail clients, the mobileconfig files may be easier to use. You would go to the account web interface (follow the link in the top-right corner of the webmail), open an email address, and at the bottom of the page is a mobileconfig file and a QR code for getting the file to your iphone/ipad. On iOS, you can download that file to the Files app, then open it so the "profile" becomes visible in the Settings app, where you can add it as an account. See screenshot from the mox account interface.

Hope this helps. Perhaps adding a FAQ for configuring apple mail clients would be useful. I'm sure you're not the only one running into this.

Image

@Myp3a
Copy link
Author
Myp3a commented Apr 4, 2025

Got it, works fine! Thank you!

@Myp3a Myp3a closed this as completed Apr 4, 2025
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

2 participants
0