Stunnel 'server is down' error

Hi,

I’m trying to get avast to scan gmail using stunnel.

I’ve installed OPENSSL and created a stunnel.conf file as per the instructions at:

http://forum.avast.com/index.php?topic=10428.0

the contents are:

[i]# We’re running as a client to SSLify the GMail POP connection
client=yes

POP3 service, listens on localhost:11110

[gmail-pop3s]
accept=127.0.0.1:11110
connect:995=pop.gmail.com #or the SSL port of your Secure POP server if you use another service.

SMTP service, listens on localhost:11025

[gmail-smtps]
accept=localhost:11025
connect:465=smtp.gmail.com #or the SSL port of your Secure SMTP server if you use another service.[/i]

When I try and run stunnel i get a ‘server is down’ error and the log says:

[i]Failed to open configuration file stunnel.conf

Syntax:
stunnel [ [-install | -uninstall] [-quiet] [] ] | -help | -version | -sockets
- use specified config file instead of stunnel.conf
-install - install NT service
-uninstall - uninstall NT service
-quiet - don’t display a message box on success
-help - get config file help
-version - display version and defaults
-sockets - display default socket options

2005.06.06 06:10:19 LOG3[1144:3784]: Server is down[/i]

Can anyone help please?

Jorolat

In spite of the example, you can’t have the #comments on the same line as the “connect” command. Delete them or move to another line. Fixed in later examples.

Try to set this way:
[b]Stunnel

GMail

client=yes

POP3 service, listens on localhost:11110

[gmail-pop3s]
accept=127.0.0.1:11110
connect:995=pop.gmail.com

SMTP service, listens on localhost:11025

[gmail-smtps]
protocol=smtp
accept=127.0.0.1:11025
connect:587=smtp.gmail.com[/b]

avast settings (\Data\Avast4.ini)
Section [MailScanner] you must have among other settings, these ones:
PopListen=127.0.0.1:110
SmtpListen=127.0.0.1:25
ImapListen=127.0.0.1:143
NntpListen=127.0.0.1:119
PopRedirectPort=110,120,11110
SmtpRedirectPort=25,11025
IgnoreLocalhost=0

Outlook Express settings
Pop3 server: 127.0.0.1
Smtp server: 127.0.0.1
Account name: <gmail name without @gmail.com>
smtp authorization: full gmailname@gmail.com and password
pop3 port: 11110 (uncheck SSL)
smtp port: 11025 (uncheck SSL)
Timeout: 5 minutes

I’ve just got a few minutes online. Thankyou Sded & Tech - I’ll try your suggestions out a bit later - your help is very much appreciated! :slight_smile:

Jorolat

Unfortunately I still get the same error :frowning:

Jorolat

Still sounds like a stunnel.conf syntax error. Take a look at the stunnel log to see what the error message says-usually gives a line number and a problem description. Cut and paste the following from tech into a text editor (notepad) and save the file as stunnel.conf, put it in the same folder as stunnel.exe.

GMail

client=yes

POP3 service, listens on localhost:11110

[gmail-pop3s]
accept=127.0.0.1:11110
connect:995=pop.gmail.com

SMTP service, listens on localhost:11025

[gmail-smtps]
protocol=smtp
accept=127.0.0.1:11025
connect:587=smtp.gmail.com

Thanks for replying sded. I had already tried tech’s info but I did it again & still got the following message (this is all the log says:

Failed to open configuration file stunnel.conf

Syntax:
stunnel [ [-install | -uninstall] [-quiet] [] ] | -help | -version | -sockets
- use specified config file instead of stunnel.conf
-install - install NT service
-uninstall - uninstall NT service
-quiet - don’t display a message box on success
-help - get config file help
-version - display version and defaults
-sockets - display default socket options

2005.06.08 14:07:36 LOG3[2928:3024]: Server is down

That particular message says that stunnel.exe was unable to find the text file stunnel.conf. Check:

  1. stunnel.conf is named correctly
  2. it is in the same folder as stunnel.exe
    Did you install stunnel via a shortcut in your startup folder? Check the properties of the shortcut too, to make sure there are no command line entries with it. And you did use a text editor (notepad), not something like Word?

Check if it is ot named stunnel.conf.txt (which is wrong and the txt could be hidden).