Sending stopped working. (unexpected end of stream)

I’m using a Pixel 4xl with LineageOS. I downloaded K-9 mail and it installed very easily and worked perfectly. A few days ago I found mail in my Outbox that did not go out. My incoming mail works fine. I checked the Outgoing Server settings and reentered my password, then hit “Next” and got this error message: Setup could not finish - Cannot connect to server. - (Unexpected end of stream)

Help please?

This would appear to be an issue with your provider, or your connectivity to them, rather than K9. In order to provide any assistance we’ll need to know:

  • mail provider
  • outgoing mail configuration details
    – server name
    – port
    – security

smtp.mail.com
SSL/TLS
port 465

It also requires username and login, which I’ve supplied.

I’ve also tried:
STARTTLS
port 587

I get the same error message on either setting.

I’m able to use the email on my computer, which is what I’m using now and outgoing mail works, but outgoing mail still does not work on my Pixel phone, which worked fine until a day or two ago and I’ve not made any changes that I’m aware of.

Does incoming mail (using their imap.mail.com server) work?

Does your phone show IPv4 or v6 or both for its ipaddresses (under the phone’s “settings/about phone”)?

what version of K9 do you have installed?

Yes, incoming mail works fine, using imap.mail.com, SSL/TLS, port 993.
I’m using K-9 v. 6.603

Looking in “Settings/About Phone” I’m unable to find the IPv4 or 6 information. I’ve searched around but am unable to find it anywhere I’ve looked in the various menus and option screens. I put in a search for “IP” but nothing came up.

On my phone it’s under WiFi + Network, then tap on the connected WiFi. Looks like that has the SIMs IPv6 listed as well, but oddly enough the only IPv4 I can find is the one in the local LAN.

with android 14, the ipadresses that the device is using are listed about 2/3 of the way down on the settings/about phone screen.

where i was going with this is that both smtp. and imap.mail.com appear to only have ipv4 addresses. so, if your device is only using ipv6 you would have a problem reaching the server. that you aren’t having an issue with inbound mail would seem to indicate that that’s not the issue.

i’m assuming that the “Cannot connect to server” error is an indication of a reachability issue, not an authentication one. i’d expect something more along the lines of “authentication failure” for the latter - but could be wrong there.

I have a premium email account with phone support so I will give them a call and see if they can figure out what the issue is. The fact that it came up out of nowhere is weird.