Reply
Thread Tools
Posts: 329 | Thanked: 505 times | Joined on Jul 2008 @ Israel
#11
Originally Posted by jkt View Post
Make sure you've selected correct port numbers and protocol in the IMAP page of the settigns dialog. Here are your options:

- If you want to use the STARTTLS feature, use "TCP" as the "Method" and check the "STARTTLS" checkbox. In this case, the communication starts in plaintext (hence you should use standard port for plain IMAP, that is, 143) and uses the STARTTLS command to transparently encrypt almost right after start.

- If you want to use SSL (and not the STARTTLS method, as described above, which is actually "the way to go"), select "SSL" as the "Method. In this case, SSL is active from very beginning, and hence you should choose a corresponding port. A default value is 993.

- Finally, an insecure method of connecting is having the "TCP" option set, but the "STARTTLS" not checked. Chances are that the server disallows login over this method, and when Trojita detects that, it transparently sets up a STARTTLS-protected channel for you.

So, in short, please make sure that the hostname, method and port number are correct. If you don't mind sharing them here, please post them so that others can try.
I have tried several configurations (with/without STARTTLS) and at first I get "The QProcess is having issues: No such file or directory", and after trojita restart I get the same error as I did before.

The configuration is quite simple IMAP: localhost:1143 SMTP:localhost:1025 - both non encrypted.

I had to remove the trojita configuration from the config directory. BTW, it contains my password unencrypted. Since I know that QT provides the config read/write framework - I think that they should add an API for encrypted fields.

Update: Exact error string

Update 2: I managed to overcome the "No such file" error, so now I will check the rest of the functionality...

Last edited by damagedspline; 2011-01-09 at 09:17.
 
Posts: 20 | Thanked: 54 times | Joined on Sep 2010
#12
Originally Posted by damagedspline View Post
I have tried several configurations (with/without STARTTLS) and at first I get "The QProcess is having issues: No such file or directory", and after trojita restart I get the same error as I did before.
The QProcess error is what happens when you configure Trojita to use a pipe to a process for communication. You typically don't want to use that on a mobile client.

The configuration is quite simple IMAP: localhost:1143 SMTP:localhost:1025 - both non encrypted.
So your IMAP proxy runs on the N900 itself, right?

Anyway, the desktop version contains a logging widget for tracing the IMAP communication, it's IMAP -> Show IMAP Protocol Log. I don't know if the Maemo builds offer that feature, too, but it could shed some light into what's going on here.

So, if your settings are what you describe, you should use the "TCP" method, do *not* enable STARTTLS and use address localhost and port 1143. If that didn't work, having a log would be very helpful.

I had to remove the trojita configuration from the config directory.
I'm lost here -- you removed the configuration in order to do what?

BTW, it contains my password unencrypted. Since I know that QT provides the config read/write framework - I think that they should add an API for encrypted fields.
I'm going to disappoint you, but there is no way around requiring a plaintext password. If the password was saved "encrypted", Trojita would either have to ask for a decryption password (that's what a lot of other applications do, they typically call that a "master password") or have the password for decrypting the "encryption" embedded in the code. The latter would only provide a false sense of security, as anyone could trivially decrypt the password without any effort.
 
Posts: 329 | Thanked: 505 times | Joined on Jul 2008 @ Israel
#13
Originally Posted by jkt View Post
So your IMAP proxy runs on the N900 itself, right?
Yes.
Originally Posted by jkt View Post
So, if your settings are what you describe, you should use the "TCP" method, do *not* enable STARTTLS and use address localhost and port 1143. If that didn't work, having a log would be very helpful.
OK, this may sound strange, but every time I start trojita, the IMAP port reset to 143.
Originally Posted by jkt View Post
I'm lost here -- you removed the configuration in order to do what?
I have set the account for auto connection so when trojita starts it try to connect with the incorrect port (143) and then show the SSL error that won't go away unless I reset the config and then restart it - again pressing Done when the error message appear will keep reshowing it and won't allow closing trojita.

After handling the issue above, I get "connection handle closed" error after the sync takes a while, does it has a timeout for the connection?

Originally Posted by jkt View Post
I'm going to disappoint you, but there is no way around requiring a plaintext password. If the password was saved "encrypted", Trojita would either have to ask for a decryption password (that's what a lot of other applications do, they typically call that a "master password") or have the password for decrypting the "encryption" embedded in the code. The latter would only provide a false sense of security, as anyone could trivially decrypt the password without any effort.
Figured this much, but it can still be done by using a public key (trojita) and a private key (user) combination.

Thanks.
 
Posts: 20 | Thanked: 54 times | Joined on Sep 2010
#14
Originally Posted by damagedspline View Post
OK, this may sound strange, but every time I start trojita, the IMAP port reset to 143.
Thanks for reporting this, there's been a bug in the settings dialog. I've just fixed this in git, but have no idea when is anyone going to update the Maemo package.

After handling the issue above, I get "connection handle closed" error after the sync takes a while, does it has a timeout for the connection?
This part got completely rewritten and Maemo packages do not contain the new code yet, as far as I know.

Figured this much, but it can still be done by using a public key (trojita) and a private key (user) combination.
I've already tried to explain that you have to safely store some secret somewhere. Using username as a secret is certainly worthless.
 

The Following User Says Thank You to jkt For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 19:22.