maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [SOLVED] Modest cannot receive/send via SSL/TLS (https://talk.maemo.org/showthread.php?t=94072)

peterleinchen 2014-11-02 21:10

Re: [Not yet solved] Modest send & receive problem
 
Confirming the working state! :D

Just one question to foobar/arcean: the deb size and also the lib sizes differ in the file posted above and the one from cssu-repo.
Any idea/explanation?
I took the one from official cssu repo.

For non-CSSU users: please do not try to install the cssu deb package, it may cause serious problems. If needed I may prepare a workaround like here.

--
but now I again need to reset all my accounts from
IMAP on STARTTLS [setting: Normal (TLS)] -which I just did- back to
IMAP on SSL/TLS [setting: SSL] :( :) :D

arcean 2014-11-02 22:37

Re: [Not yet solved] Modest send & receive problem
 
Quote:

Originally Posted by peterleinchen (Post 1445519)
Just one question to foobar/arcean: the deb size and also the lib sizes differ in the file posted above and the one from cssu-repo.
Any idea/explanation?
I took the one from official cssu repo.

Maybe thumb-related problem in scratchbox?
More about issue: http://maemo.org/community/maemo-use..._installation/

Malakai 2014-11-03 17:44

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Hello,

Just changed the title of the thread to "[SOLVED] Modest cannot receive/send via SSL/TLS" as suggested by peterleinchen.

But frankly I don't know how to get the fix.... I mean is it in the repos or will it be?

peterleinchen 2014-11-03 19:48

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
2 Attachment(s)
It depends!
Whether you are on CSSU or not.

If on CSSU then just grab this deb (or later versions) and download it to MyDocs. Then get root and execute following command:
Code:

dpkg -i /home/user/MyDocs/libtinymail*
killall modest

Done.

If not on CSSU (but running stock PR1.3[.1]) then use the attached tar.gz, download to MyDocs and execute following commands (just like here):
Code:

sudo gainroot
cd /
tar xvzf /home/user/MyDocs/libtinymail-camel.tar.gz
tar xvzf /home/user/MyDocs/libtinymail-camel-lite.tar.gz
killall modest


All credits to foobar!

Amboss 2014-11-03 21:09

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Just some thoughts:

Since both SSL2 and SSL3 are insecure (if not obsolete) what would it take to disable them altogether. With the proposed fix it is made to work, but it leaves some questions.

For instance, if the provider offers both SSLv3 and TLS which one will be choosen. The first in the list or the best? Does it matter if it reads

#define SSL_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3 | CAMEL_TCP_STREAM_SSL_ENABLE_TLS)

or

#define SSL_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_TLS | CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3)

??

foobar 2014-11-03 21:51

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
The best will be chosen if things are not completely fubar'd inside NSS (the crypto lib tinymail uses).

The order in the #define doesn't matter.
Disabling SSL3 now would lock a lot of people out of their mail servers again, so while it would be beneficial from a security point of view, it would not help with the problem at hand. :)

peterleinchen 2014-11-03 21:56

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
See also:
Quote:

Originally Posted by reinob (Post 1444713)
I hope it tries TLS first (1.2, 1.1, 1.0) *and then* SSL.


reinob 2014-11-04 08:21

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by Amboss (Post 1445672)
Does it matter if it reads

#define SSL_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3 | CAMEL_TCP_STREAM_SSL_ENABLE_TLS)

or

#define SSL_FLAGS (CAMEL_TCP_STREAM_SSL_ENABLE_TLS | CAMEL_TCP_STREAM_SSL_ENABLE_SSL2 | CAMEL_TCP_STREAM_SSL_ENABLE_SSL3)

??

Don't they teach math at school anymore?
Repeat after me: addition is commutative! :)

-- add.
As @peterleinchen rightly pointed out, ORing is not really ADDing (that would be XORing). However for cases where the things being added do not overlap (in the binary sense of the word), ORing is, for all purposes, the same as ADDing.

So for the sake of completeness:
Repeat after me: disjunction is commutative! :)

(I know, it sounds much much worse.)

hede 2014-11-26 10:11

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
I'm using CSSU but not the devel repository. So I do not have libglib2.0-0 (>= 2.24.0). And I do not want to install the files manually via tar.gz.

Because the files in the tar.gz by peterleinchen are the same as in the CSSU devel package, I simply modified the deb to depend on libglib2.0-0 (>= 2.20.0). For me it works.

I cannot add the modified deb here because I am not allowed to attach files > 488 kB. And the deb is > 600 kB.

I uploaded it there:
http://packages.der-he.de/austausch/...ssu7_armel.deb

It should work for all CSSU and PR1.3(.1) users.

Amboss 2014-11-26 15:41

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by reinob (Post 1445720)
Don't they teach math at school anymore?
Repeat after me: addition is commutative! :)
...
Repeat after me: disjunction is commutative! :)

(I know, it sounds much much worse.)

Just for restoring my reputation:
I know those rules already and I know how to apply them ;)

A computer might implement checking the conditions in a different way though.
It might check all conditions for truth and state the result afterwards.
Or it might be implemented to do something like an IF-ELSEIF-ELSE chain would do, meaning if it hits first it sticks to it. Why should a computer test more than one condition if the "true"-outcome has already been reached?

I have seen such implementations before. This of course saves CPU cycles noticably only for large numbers of repetitions. It all depends on the implementation of the checking routine.

And this I have learned AFTER school in university lectures about algorithms and data structures ;))

Malakai 2014-11-26 20:18

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by hede (Post 1449371)
I'm using CSSU but not the devel repository. So I do not have libglib2.0-0 (>= 2.24.0). And I do not want to install the files manually via tar.gz.

Because the files in the tar.gz by peterleinchen are the same as in the CSSU devel package, I simply modified the deb to depend on libglib2.0-0 (>= 2.20.0). For me it works.

I cannot add the modified deb here because I am not allowed to attach files > 488 kB. And the deb is > 600 kB.

I uploaded it there:
http://packages.der-he.de/austausch/...ssu7_armel.deb

It should work for all CSSU and PR1.3(.1) users.

Would be easier if the fix were in the repos; just an apt-get install and it is set.

pichlo 2014-11-26 20:59

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Amboss, you are confusing | and ||. The former is an arithmetic operator, the latter a logical one. The C and C++ Standards define the behaviour of both. In a nutshell, | works a bit like +, although not quite. 1 | 2 = 3, but 2 | 3 = 3, not 5. The important thing is that a | b = b | a. Also important is that to evaluate the result of a | b, both a and b must be evaluated first. You can figure it out yourself: to work out a | b, it is not enough to know that a is 2, you also need to know if b is 1, 2 or 5. That's because 2 | 1, 2 | 2 and 2 | 5 yield different results (3, 2 and 7, respectively).

|| uses the shortcut mechansm you describe. That's because it works with logic values and results in TRUE or FALSE. You know that if a is TRUE, no value of b will change the result of a || b, so b does not need to be evaluated. Note that this shortcut mechanism makes no difference to the value of a || b, but it does make a difference if evaluating b has a side effect. That can happen if b is an expression with some kind of assignment in it (=, +=, -=, ++, --), or if b is a function call with side effects. The programmer must be aware of this and make sure to write the code so that it behaves predictably.

Finally, in the example in question, the value of a | b is evaluated at compile time and the final code will see only a single number that is the result of that evaluation. It will not compute it at run time. The question why it is like that is left as an exercise.

Feathers McGraw 2015-01-15 18:33

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Any news on Modest making its way into the repos?

I'm so glad I found this thread, I was worried about how useful the N900 would be to me without an IMAP client that can do TLS.

I run my own Postfix+Dovecot email server, so I could re-enable SSLv3 but I'd really rather not for security reasons. I've just (in the last day or two) started using the N900, flashed PR1.3 and installed CSSU stable. Do I need to be using testing to get this new version from the repo?

Sorry if these are dumb questions, Maemo is still new to me.

Sam

peterleinchen 2015-01-15 21:24

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
It seems modest (libtiny-mail libs) have not yet made it into testing branch (A shame; why? They should be in stable imho.).
So you would need to enable cssu-devel repo and update those libraries described in this thread (but only those) and disable that repo immediately.

Feathers McGraw 2015-01-15 22:45

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by peterleinchen (Post 1456795)
So you would need to enable cssu-devel repo and update those libraries described in this thread (but only those) and disable that repo immediately.

It worked!!

For the record, I ran:

Code:

sudo apt-get update
sudo apt-get install libtinymail-camel*

Then disabled the repo and did an apt-get update again to be safe (although I think the GUI tool does this anyway).

Here's part of the header from the first email I sent from my n900:

Code:

Received: from [192.168.1.176] (OpenWrt.lan [192.168.1.1])        (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))        (No client certificate requested)        by samhobbs.co.uk (Postfix) with ESMTPSA
Many thanks to all of you. I think it's great that we were able to do this. This is what free software is all about, right? Power to the users!

peterleinchen 2015-01-15 22:59

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Are you using gmail?
But anyway you should also update libtinymail-tiny... from cssu devel.

See here http://talk.maemo.org/showthread.php...&postcount=130 or http://talk.maemo.org/showpost.php?p...&postcount=149

Feathers McGraw 2015-01-15 23:10

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by peterleinchen (Post 1456812)
Are you using gmail?

Me? Nope i run postfix/dovecot on an ubuntu server at home. The test message was sent from my server to a freemail outlook account.

I'll look into updating that library, thanks again!

Feathers McGraw 2015-01-15 23:20

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
hmm, i can't find that library...

Code:

E: Couldn't find package libtinymail-tiny*
~ $ apt-cache search tinymail
libtinymail-1.0-0 - memory-effective framework for accessing e-mail - library
libtinymail-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymail-1.0-0-dev - memory-effective framework for accessing e-mail - development files
libtinymail-camel-1.0-0 - memory-effective framework for accessing e-mail - Camel library
libtinymail-camel-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymail-camel-1.0-0-dev - memory-effective framework for accessing e-mail - development files
libtinymail-gnomevfs-1.0-0 - memory-effective framework for accessing e-mail - Camel library
libtinymail-gnomevfs-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymail-gnomevfs-1.0-0-dev - memory-effective framework for accessing e-mail - development files
libtinymail-maemo-1.0-0 - memory-effective framework for accessing e-mail - Camel library
libtinymail-maemo-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymail-maemo-1.0-0-dev - memory-effective framework for accessing e-mail - development files
libtinymailui-1.0-0 - memory-effective framework for accessing e-mail - Camel library
libtinymailui-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymailui-1.0-0-dev - memory-effective framework for accessing e-mail - development files
libtinymailui-gtk-1.0-0 - memory-effective framework for accessing e-mail - Camel library
libtinymailui-gtk-1.0-0-dbg - memory-effective framework for accessing e-mail - debug symbol files
libtinymailui-gtk-1.0-0-dev - memory-effective framework for accessing e-mail - development files
camelisync - libcamel provider for NokiaMessaging
~ $

Sam

peterleinchen 2015-01-15 23:43

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
libtinymail-1.0-0

see my edit above
second link: http://talk.maemo.org/showpost.php?p...&postcount=149

--edit
Should not be needed according to
http://talk.maemo.org/showthread.php...05&postcount=1

Maemish 2020-04-18 06:41

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
My imap stopped working. I am on CSSU testing. After I downloaded this version of tinymail

http://maemo.merlin1991.at/cssu/comm...ssu7_armel.deb

and then according to given instructions installed it using (the file located in my sdcard, change the location to where you downloaded yours)

dpkg -i /media/mmc1/http://maemo.merlin1991.at/cssu/community-devel/pool/free/t/tinymail/libtinymail-camel-1.0-0_1.1.92%2b1cssu7_armel.deb*

with the asterix * in the end and then as root

killall modest

my mail started to receive mails again. I have installed that some needed package mentioned in this thread lib something and I have cssu devel repository enabled when I installed this.

peterleinchen 2020-04-18 08:55

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
I am pretty sure you read not only the first post but also some statements when this repository
https://talk.maemo.org/showthread.ph...eat+your+brain
should be enabled only?

For enabling SSL in mails there are only a few manual packages to be installed from devel.
Do not have cssu devel repo enabled...

Maemish 2020-04-18 09:58

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Yes I have heard it should not be enabled. I have done an upgrade with cssu devel repo. First time there were just two thinga which caused problems (I mentioned them in my "Devel upgrades" thread) and they were easy to fix. Tried the same last week with fresh flashed N900 and made it not to boot anymore. Felt a bit sad. Flashed again (5x in 24h cause was messing around with trial and error) and did not make cssu devel upgrade, only with Extras devel I think.

nonsuch 2020-04-18 11:50

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by Maemish (Post 1566935)
my mail started to receive mails again.

Congratulations!

On a side note:
Quote:

Originally Posted by Maemish (Post 1566935)
dpkg -i /media/mmc1/http://maemo.merlin1991.at/cssu/community-devel/pool/free/t/tinymail/libtinymail-camel-1.0-0_1.1.92%2b1cssu7_armel.deb*

with the asterix * in the end and then as root

The asterisk is meaningless in this instance.

mr_pingu 2020-04-18 21:26

Re: [SOLVED] Modest cannot receive/send via SSL/TLS
 
Quote:

Originally Posted by Maemish (Post 1566935)
My imap stopped working. I am on CSSU testing. After I downloaded this version of tinymail

http://maemo.merlin1991.at/cssu/comm...ssu7_armel.deb

and then according to given instructions installed it using (the file located in my sdcard, change the location to where you downloaded yours)

dpkg -i /media/mmc1/http://maemo.merlin1991.at/cssu/community-devel/pool/free/t/tinymail/libtinymail-camel-1.0-0_1.1.92%2b1cssu7_armel.deb*

with the asterix * in the end and then as root

killall modest

my mail started to receive mails again. I have installed that some needed package mentioned in this thread lib something and I have cssu devel repository enabled when I installed this.


Nice! Good to see I was not far off :rolleyes:


All times are GMT. The time now is 15:00.

vBulletin® Version 3.8.8