Author Topic: Ssl Email On Cacko 1.22  (Read 3733 times)

fir

  • Newbie
  • *
  • Posts: 32
    • View Profile
Ssl Email On Cacko 1.22
« on: February 21, 2005, 06:50:02 pm »
I am trying to use stunnel to enable SSL email between my Z and my mail server.  I am launching by typing "stunnel .stunnel" in the zaurus home directory.  stunnel immediately exits without any error mesage.  The file .stunnel contains this:

Quote
client = yes

[imap]
accept = localhost:143
connect = mail.myserver.com:993
delay=yes

[smtp]
accept=localhost:25
connect=mail.myserver.com:465
delay=yes

I've set the email client up for unencrypted smtp and imap at localhost.

I've not created an stunnel parameter file before.  Have I done something wrong?  Any idea how to get this working?  (My server does not accept cleartext connections, so this is pretty important to me.)

Btw, I also gave sylpheed a try.  Although the feed describes it as supporting SSL, there was no SSL tab in account config window.

Frank.

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Ssl Email On Cacko 1.22
« Reply #1 on: February 22, 2005, 02:33:34 am »
Please, read Cacko FAQ carefully. It explains how to enable stunnel on Cacko ROM.

fir

  • Newbie
  • *
  • Posts: 32
    • View Profile
Ssl Email On Cacko 1.22
« Reply #2 on: February 22, 2005, 08:52:00 am »
Quote
Please, read Cacko FAQ carefully. It explains how to enable stunnel on Cacko ROM.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68140\"][{POST_SNAPBACK}][/a][/div]
So it does - sorry about that!

This gives rise to two new questions:

1) SMTPS

 It worked fine for imap, but gives a "socket packet error" on sending, and "telnet localhost 25" gives me "Connection closed by foreign host."

After a while, trying to send email gives me "connction refused" instead, and the telnet command still gets the same result as before.

Any ideas?

2) Handling lots of email

I have years worth of email, and get hundreds of new ones each day.  Is there any way to tell the email client not to fetch it all?  Is there any way to tell it to store the email on the SD card?  The Z becomes very unresponsive when I try to download.  It has received thousands of headers, but there are many more.  If I tell it to close, it does so perhaps a minute later.  Perhaps I am swapping?  Any suggestions?

Frank.

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Ssl Email On Cacko 1.22
« Reply #3 on: February 22, 2005, 11:34:20 am »
Quote
Quote
Please, read Cacko FAQ carefully. It explains how to enable stunnel on Cacko ROM.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=68140\"][{POST_SNAPBACK}][/a][/div]
So it does - sorry about that!

This gives rise to two new questions:

1) SMTPS

 It worked fine for imap, but gives a "socket packet error" on sending, and "telnet localhost 25" gives me "Connection closed by foreign host."

After a while, trying to send email gives me "connction refused" instead, and the telnet command still gets the same result as before.

Any ideas?


Didn't you forget to uncomment proper lines in /etc/inted.conf and restart inetd process?  Does remote host actualy repond to smpts connection?

Quote
2) Handling lots of email

I have years worth of email, and get hundreds of new ones each day.  Is there any way to tell the email client not to fetch it all?  Is there any way to tell it to store the email on the SD card?

Have a closer look at Sharp email client, you'll see a combo box to the left top corner...

Quote
The Z becomes very unresponsive when I try to download.  It has received thousands of headers, but there are many more.  If I tell it to close, it does so perhaps a minute later.  Perhaps I am swapping?  Any suggestions?

Let it download all your emails once. Next time it will only download new ones.

fir

  • Newbie
  • *
  • Posts: 32
    • View Profile
Ssl Email On Cacko 1.22
« Reply #4 on: February 22, 2005, 07:01:33 pm »
Quote
Didn't you forget to uncomment proper lines in /etc/inted.conf and restart inetd process?  Does remote host actualy repond to smpts connection?

I uncommented the imap and smtp lines, and left the pop3 line commented.  Imap is now working, but smtp is not.

My server does respond to SMTP over SSL.  For example, I use every day mozilla thunderbird set to connect to port 993 with the "Use secuure connection (SSL)" checkbox enabled.  If I *disable* this then it the server will not accept outgoing email.  That's why it is important to me to get this working.

Quote
Have a closer look at Sharp email client, you'll see a combo box to the left top corner...

That's great!  I changed it to SD.  Does that mean the data already stored in internal flash was moved over?  It took just a few seconds to respond, and didn't tell me what it was doing.

Quote
Let it download all your emails once. Next time it will only download new ones.
I will try again, but what I saw last time was that after a few thousand emails, the network activity monitor applet showed that there was litle or no traffic.  My guess was that the Z was swapping, and would therefor not make much progress.

(I just counted 50 seconds between short bursts of network activity.)

So at the moment, email is working fine as long as I don't want to send or receive any.

fir

  • Newbie
  • *
  • Posts: 32
    • View Profile
Ssl Email On Cacko 1.22
« Reply #5 on: February 23, 2005, 08:33:38 am »
When the downloads got slow again, I ended the program using the X widget.  Ever since then, even after a reboot, when I start the email application it displays a small "Please wait" application and sticks there forever.    

Can I remove some .files and start fresh, or will I lose something necessary if I do that?

Frank.

fir

  • Newbie
  • *
  • Posts: 32
    • View Profile
Ssl Email On Cacko 1.22
« Reply #6 on: February 23, 2005, 10:27:27 am »
Well, more data.  First of all I solved my email hang on start problem with this script:
Code: [Select]
cd ~zaurus
rm -rf Mail
rm -rf Settings/qtmail*
for x in slinbox sloutbox slmtrash slinunrd;do
        rm -rf Applications/dtm/$x.*
        rm -rf /usr/mnt.rom/card/QtPalmtop/dtm/$x.*
done
I'm not sure about the Mail directory - I expect it was created by sylpheed, but I wanted to be sure.  qtmail ran fine after this.

I reconfigured my account and started the download again.  I let it run for quite a while, and it slowly fetched my mail:
Code: [Select]
$ while true;do
> ls -l dtm/slinbox.box
> sleep 60
> done
-rwxrwxrwx    1 zaurus   qpe        934747 Feb 23 14:56 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe        975450 Feb 23 14:57 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe       1129104 Feb 23 14:58 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe       1307628 Feb 23 14:59 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe       1474221 Feb 23 15:00 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe       1543758 Feb 23 15:01 dtm/slinbox.box
-rwxrwxrwx    1 zaurus   qpe       1606012 Feb 23 15:02 dtm/slinbox.box
Looks like about 3K per second.  CPU was maxed, and the load average was over 3.  After 20 or 30 minutes the Z killed the mail app.  Free memory was only about 1 meg at that point, so maybe that was the reason.  Total mail downloaded at that point, a little under 2 megs.

When i restart the application it takes about 5 seconds before it displays my messages, and about 5 seconds to change to a new folder.  It shows as unread some (but not all) messages which I have already read on other machines.  When I tell it to download new messages, I see a small "start connecting" window that stays there, and the size of slinbox.box does not change.

After ten minutes I gave up, and tried to exit the application.  It would not exit.  I had to kill it.

This application seems quite incapable of handling my imap email,and it's downloaded fewer than 6000 messages so far.  Can it be improved?  Is there something better?  surely I am not the only person using IMAP on a Z?

Frank.