How to configure stunnel on SuSE 11.1 for Gmail ?

Hello guys.

I use crossover and MS Outlook to connect to my Gmail IMAP account through ssl using stunnel. That is the only possible way I have found so far. It requires OpenSSL and stunnel. OpenSSL cames from SuSE installation cd. Stunnel can be found using SuSE web based software finder. And it can be installed by YAST.
Does anybody know how to configure stunnel? If I try to start stunnel service in runlevel services or xinet under YAST, it gives me /etc/inet.d return 1 error. SuSE does not have /etc/inet.d file required by stunnel. I have not been able to find any information on the issue. If anybody knows what to do, please help. It should be easy. :\

velik26 wrote:
> Hello guys.
>
> I use crossover and MS Outlook to connect to my Gmail IMAP account
> through ssl using stunnel. That is the only possible way I have found so
> far. It requires OpenSSL and stunnel. OpenSSL cames from SuSE
> installation cd. Stunnel can be found using SuSE web based software
> finder. And it can be installed by YAST.
> Does anybody know how to configure stunnel? If I try to start stunnel
> service in runlevel services or xinet under YAST, it gives me
> /etc/inet.d return 1 error. SuSE does not have /etc/inet.d file required
> by stunnel. I have not been able to find any information on the issue.
> If anybody knows what to do, please help. It should be easy. :\

This is my stunnel.conf for smtps to my provider.

$sudo egrep -v “^#|^$” /etc/stunnel/stunnel.conf
client = yes
chroot = /var/lib/stunnel/
setuid = stunnel
setgid = nogroup
pid = /var/run/stunnel.pid
debug = mail.notice
RNDfile = /dev/urandom
[ssmtp]
accept = localhost:465
connect = 194.109.6.53:465

For you the last lines would probably have to be:
[imapd]
accept = localhost:993
connect = imap.gmail.com:993

Not sure if you mean it’s the only way on Linux or the only way with outlook, but certainly it’s not true that it’s the only way with Linux. You can use gmail imaps just fine from Thunderbird.

Thank you for the reply.
How did you make stunnel service start at boot time? There is no /etc/init.d file which is in all configuration “readme” exist. Should I open any port in firewall?

Yes, That is the only the way I have found for MS Outlook so far.

velik26 wrote:
> Thank you for the reply.
> How did you make stunnel service start at boot time? There is no
> /etc/init.d file which is in all configuration “readme” exist.

There is when you install the openSUSE stunnel package.
Information for package stunnel:

$zypper info stunnel
Repository: Main Repository (OSS)
Name: stunnel
Version: 4.16-66
Arch: i586
Installed: Yes
Status: up-to-date
Installed Size: 326.2 K
Summary: Universal SSL Tunnel

$rpm -ql stunnel
/etc/init.d/stunnel
/etc/stunnel
/usr/lib/libstunnel.la
/usr/lib/libstunnel.so
/usr/sbin/rcstunnel
/usr/sbin/stunnel
…]

> Should I open any port in firewall?

No, just e.g. port 993 for imaps

Thank you very much for the help,

All the above commands work fine, but when I type:

telnet 127.0.0.1 143

Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
or

telnet 127.0.0.1 25

Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
220 linux-gnr6.site ESMTP Postfix ------ and stays here forever.

I am missing something simple, but have not been able to figure out what.

Thank you in advance,

Hi
Because it’s sitting there waiting for user input :wink:

Maybe a read here may help?
http://www.simplescripts.de/smtp-check-port-25-telnet-command.htm


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 x86 Kernel 2.6.27.7-9-default
up 1 day 9:39, 2 users, load average: 4.50, 4.45, 4.65
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.22