Author Topic: Stunnel 'server is down' error  (Read 21277 times)

0 Members and 1 Guest are viewing this topic.

Offline Jorolat

  • Full Member
  • ***
  • Posts: 101
    • Evolution, Psychology and Social Psychology
Stunnel 'server is down' error
« on: June 06, 2005, 07:20:17 AM »
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:

# 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=pop.gmail.com:995 #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=smtp.gmail.com:465 #or the SSL port of your Secure SMTP server if you use another service.


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

Failed to open configuration file stunnel.conf
 
Syntax:
stunnel [ [-install | -uninstall] [-quiet] [<filename>] ] | -help | -version | -sockets
    <filename>  - 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


Can anyone help please?

Jorolat

Offline sded

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1718
  • Me llamo Ed
Re: Stunnel 'server is down' error
« Reply #1 on: June 06, 2005, 02:54:39 PM »
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.
Windows 7 x64HP-SP1-No UAC, Opera 11.51, Avast! Internet Security 6.0.128, Webroot SecureAnywhere latest beta, Windows FW off, MVPS HOSTS, SAS/MBAM offline, Macrium Reflect just in case ;)

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67247
Re: Stunnel 'server is down' error
« Reply #2 on: June 06, 2005, 03:23:56 PM »
Try to set this way:
Stunnel
# GMail
client=yes

# POP3 service, listens on localhost:11110
[gmail-pop3s]
accept=127.0.0.1:11110
connect=pop.gmail.com:995

# SMTP service, listens on localhost:11025
[gmail-smtps]
protocol=smtp
accept=127.0.0.1:11025
connect=smtp.gmail.com:587


avast settings (<Avast>\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
The best things in life are free.

Offline Jorolat

  • Full Member
  • ***
  • Posts: 101
    • Evolution, Psychology and Social Psychology
Re: Stunnel 'server is down' error
« Reply #3 on: June 06, 2005, 07:59:53 PM »
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! :)

Jorolat

Offline Jorolat

  • Full Member
  • ***
  • Posts: 101
    • Evolution, Psychology and Social Psychology
Re: Stunnel 'server is down' error
« Reply #4 on: June 08, 2005, 09:59:11 AM »
Unfortunately I still get the same error :(

Jorolat

Offline sded

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1718
  • Me llamo Ed
Re: Stunnel 'server is down' error
« Reply #5 on: June 08, 2005, 02:56:26 PM »
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=pop.gmail.com:995

# SMTP service, listens on localhost:11025
[gmail-smtps]
protocol=smtp
accept=127.0.0.1:11025
connect=smtp.gmail.com:587
Windows 7 x64HP-SP1-No UAC, Opera 11.51, Avast! Internet Security 6.0.128, Webroot SecureAnywhere latest beta, Windows FW off, MVPS HOSTS, SAS/MBAM offline, Macrium Reflect just in case ;)

Offline Jorolat

  • Full Member
  • ***
  • Posts: 101
    • Evolution, Psychology and Social Psychology
Re: Stunnel 'server is down' error
« Reply #6 on: June 08, 2005, 03:10:43 PM »
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] [<filename>] ] | -help | -version | -sockets
    <filename>  - 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

Offline sded

  • Avast Evangelist
  • Super Poster
  • ***
  • Posts: 1718
  • Me llamo Ed
Re: Stunnel 'server is down' error
« Reply #7 on: June 08, 2005, 03:51:20 PM »
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?
« Last Edit: June 08, 2005, 03:59:41 PM by sded »
Windows 7 x64HP-SP1-No UAC, Opera 11.51, Avast! Internet Security 6.0.128, Webroot SecureAnywhere latest beta, Windows FW off, MVPS HOSTS, SAS/MBAM offline, Macrium Reflect just in case ;)

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67247
Re: Stunnel 'server is down' error
« Reply #8 on: June 08, 2005, 05:51:19 PM »
Failed to open configuration file stunnel.conf
Check if it is ot named stunnel.conf.txt (which is wrong and the txt could be hidden).
The best things in life are free.