konradrenner / kolabnotes-android

Note taking app with integrated Kolab sync
GNU Lesser General Public License v3.0
68 stars 17 forks source link

no connection w/ lineageos 14.1 #172

Closed tjensch closed 6 years ago

tjensch commented 6 years ago

Hello, the kolab server is fairly recent (kolab 16) and with a qualys score of A+, the cell phone is lineageOS 14.1. Whatever I tried, I am unable to connect kolabnotes. Everything else works (k9mail, caldavsync, carddavsync, seafile etc). I cant find any connection attempts in the server logfiles. I also tried any combination of the options (shared, kolab extensions) without much success. How should I proceed?

konradrenner commented 6 years ago

Hi, did you get any problem notification from the app via the android notification system? Please attach a screenshot or stacktrace of the problem. Thanks Konrad

tjensch commented 6 years ago

this error shows, when the account is configured for port 143: kn-error_143 and this one with defaults (port 993): kn-error_993

konradrenner commented 6 years ago

Can you please also send me the settings (with the extended options area opened) of this account?

tjensch commented 6 years ago

I left the other Options at the defaults, i.e.

Although it doesnt make a difference whether I uncheck "Kolab extensions" and / or "Shared notebook" (as suggested in other Issues). It also doesnt connect if I switch to "IMAP Server". (Ultimately I like to use the "Shared notebook" feature, since I have a couple of shared ones.)

konradrenner commented 6 years ago

Did you specify the hostname of the kolab server the exact same way as in the k9 app? Is there a "Notes" folder on your Kolab installation, which is also marked to contain notes (can be specified in the folder settings)?

tjensch commented 6 years ago

in k9 it is like: kolab.example.org, which is how I put it in kolabnotes. In k9 I can addititionally specify "STARTTLS". I checked on the server and my user has a /var/spool/imap/domain/.../Notes directory with notes in it. It is also marked as special Folder "Notes" when checking it via roundcube.

As I wrote in the beginning, my SSL-setup is somewhat tight, in order to archieve a Qualys A+ rating. Is it possible, the kolabnotes ssl-library (?) is not capable of that? kn-ssl_1 kn-ssl_2 kn-ssl_3

konradrenner commented 6 years ago

It could be a problem that just TLS 1.2 is accepted by your server. I found this article: https://discretemkt.wordpress.com/2014/11/15/javamail-enables-or-disables-sslv3/

I will add the following, maybe it solves the problem (it looks like Java Mail does not active TLS 1.2 per default):

Properties props = new Properties(); props.setProperty("mail.host", "smtp.example.com"); props.setProperty("mail.smtps.ssl.protocols", "TLSv1 TLSv1.1 TLSv1.2");

    Session session = Session.getInstance(props);
konradrenner commented 6 years ago

added the mentioned property, I hope this fixes the problem, because I cannot reproduce it. Already available in the Google Play Beta Channel.

@tjensch my try to fix it, is released with version 3.1.2 of the app. Please test it and give me feedback if it works for you now

tjensch commented 6 years ago

thank you very much! your fix works! I now can access my notes with your fine programme :)

konradrenner commented 6 years ago

Perfect, good news :-)