Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: Jorolat on June 06, 2005, 07:20:17 AM

Title: Stunnel 'server is down' error
Post by: Jorolat 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
Title: Re: Stunnel 'server is down' error
Post by: sded 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.
Title: Re: Stunnel 'server is down' error
Post by: Lisandro 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
Title: Re: Stunnel 'server is down' error
Post by: Jorolat 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
Title: Re: Stunnel 'server is down' error
Post by: Jorolat on June 08, 2005, 09:59:11 AM
Unfortunately I still get the same error :(

Jorolat
Title: Re: Stunnel 'server is down' error
Post by: sded 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
Title: Re: Stunnel 'server is down' error
Post by: Jorolat 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
Title: Re: Stunnel 'server is down' error
Post by: sded 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?
Title: Re: Stunnel 'server is down' error
Post by: Lisandro 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).