FS#52613 - [kmail] imap addresses are reversed

Attached to Project: Arch Linux
Opened by Constantine (Hi-Angel) - Wednesday, 18 January 2017, 09:24 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 18 January 2017, 10:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

KMail can't connect to IMAP server, it does something for a minute-two, then says "server is not available". tcpdump shows the following repeating packets:

$ sudo tcpdump -i any | grep imap 11:50:15.224836 IP constantine-N61Ja.57402 > yandex.ru.imaps: Flags [S], seq 3419291547, win 29200, options [mss 1460,sackOK,TS val 8139328 ecr 0,nop,wscale 7], length 0
11:50:19.278167 IP constantine-N61Ja.57402 > yandex.ru.imaps: Flags [S], seq 3419291547, win 29200, options [mss 1460,sackOK,TS val 8140544 ecr 0,nop,wscale 7], length 0

Note the address "yandex.ru.imaps" — it doesn't exist, because it should be "imaps.yandex.ru", you can check addresses with httping. I also tried GMail, with seemingly alike problem, though in tcpdump I see instead "74.125.232.245.imaps" which I can't httping with ".imaps" infix in either start or end.

Interestingly, neither can I set the exact server: if I choose "imaps.yandex.ru" as an address, KMail tries to connect to "any.yandex.ru.imaps" instead. And upon choosing "any.imaps.yandex.ru" KMail keep trying "any.yandex.ru.imaps".

Sorry, I don't know if it's an upstream problem, because it works on Kubuntu (though KMail there is of lower version), so I'm reporting here. Also, it's a very old problem, I've had it 4-5 months ago (just when I migrated to Arch), but I didn't report back then, because it's so obvious and horrible regression, which can't go unnoticed (i.e. the app is in fact unusable).

Additional info:
* package version(s) 16.12.1-1


Steps to reproduce:
1. Open "kontact"
2. Go to "Settings → Configure KMail → Accounts", tab "Receiving.
3. Press "Add" — a window to create a new account would popup
4. Choose "IMAP" — another configuration window would appear.
5. Set "IMAP server" to "yandex.ru", set "Username" and "Password" to anything, press "Okay".
6. See how KMail is trying to connect to a server, to no avail.
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 18 January 2017, 10:00 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Wednesday, 18 January 2017, 09:38 GMT
You have to provide the full address of the IMAP server (which is imap.yandex.ru, not imaps.yandex.ru), not just the top level domain.
Comment by Jan de Groot (JGC) - Wednesday, 18 January 2017, 09:39 GMT
You're just misreading tcpdump output. yandex.ru.imaps means yandex.ru, port imaps.

My guess is you're on a busy network/connection behind a router with a limited state table. When the table is full the router will drop "inactive" connections. You'll probably have the same problem with SSH connections if you don't enable keepalive.
Comment by Constantine (Hi-Angel) - Wednesday, 18 January 2017, 09:42 GMT
@Antonio Rojas at least with kmail it always worked. But anyway, as I mentioned, providing a full address doesn't work either.

Wow, I just found an interesting thing. I tried another mail client, it's "Geary" (first time using it), and it have the exact the same problem! I dunno, could there be some service running, that they're asking about addresses…?
Comment by Antonio Rojas (arojas) - Wednesday, 18 January 2017, 09:42 GMT
You tries imaps.yandex.ru, the correct address is imap.yandex.ru (no 's')
Comment by Constantine (Hi-Angel) - Wednesday, 18 January 2017, 09:44 GMT
@Jan de Groot oh, I see, thank you! Hmm, but given it always happens on Arch, but never did on Kubuntu, it's definitely something with the system…
Comment by Constantine (Hi-Angel) - Wednesday, 18 January 2017, 09:47 GMT
@Antonio Rojas yay, thank you, "imap.yandex.ru" worked, I saw the "server refused password" (because I entered a glibberish) ^^

Loading...