Hi,
I think I have developed quite a general solution for configuring a full chain of programs for GMail.
The basic idea has already been suggested in these forums but the instructions were less than complete. I propose here full instructions for configuring the chain of programs in order to let STunnel (an Open Source software) to assume the SSL part of the connection (necessary for the secured POP and SMTP required by GMail).
ThunderBird - Spamhilator-Avast-Stunnel pour GMail
and
ThunderBird - Spamhilator-Avast for non SSL POP
both work now and also SecureSMTP for GMail.
You can easily adapt these instructions for your particular Pop client and SPAM filter.
So, let me draft some sort of a FAQ following my recent experience.
A/ Installing and preparing STUNNEL
Download OPENSSL for Windows from
http://www.slproweb.com/products/Win32OpenSSL.html and install it.
Download STUNNEL for WIndows from
http://www.stunnel.org/download/binaries.html. This an exe file and you can place it on any specific folder (eg. in C:\stunnel).
In the folder where you have copied stunnel, you will create its configuration file.
So launch your notepad and type the following (adapt it if necessary) in a blank document:
# 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.
Save this file in the same folder as the stunnel exe under the name stunnel.conf
Open a windows command window and switch to the folder where stunnel has been placed.
Execute the following command to launch stunnel as a Windows service (you will hence be able to stop or manage it using the standard windows console for services):
stunnelexecutablename -install
stunneexecutablename will be something like stunnel-4.07 (depends on the version you download, 4.07 is the actual stable version)
Now you will observe a new icon (something like a network folder) in the right taskbar and if you double click on the icon, you will be able to open the log window (nothing very interesting will be visible for now). If you have made an error in the configuration file, stunnel will refuse to be launched. In this case check the syntax (comparing with the above one) and the ports numbers of your service.
Now we can configure the mail client.
B/ Setting the mail client.
I will assume that you have two kind of POP accounts, one normal (toto@myserver.com) and one secured (toto2@gmail.com).
I will also assume that your SPAM filter uses the port 120 (like SPAMILATOR) if not, adapt the following instructions.
Configuring the normal POP account.
Server: localhost Port: 120 (for spamilator, adapt it for the port listened by your filter)
username: pop.myserver.com&toto (this is format used by SPAMI, if your filter expects another scheme please adapt it)
Configuring the secure POP account
Server: localhost Port: 120 (for spamilator, adapt it for the port listened by your filter)
username: localhost&toto2&11110
(this is format used by SPAMILATOR, if your filter expects another scheme please adapt it - the last element is the port number that will be listened by STUNNEL - and also by AVAST, see below - in order to be converted to a SSL flow toward pop.gmail.com, as specified in stunnel.conf)
Setting the secure SMTP for GMail:
Server: localhost Port: 11025 (the port listened by STunnel and by AVAST -see below)
User name: toto2
The setting of the normal SMTP is... normal.
We have a last configuration to do.
C/ Setting Avast.ini
As you probably know, this file sits in avastfolder\data subfolder.
You open it in the Notepad and locate and edit (and complete) the following section (leave the rest of the settings as such, I only give here the settings that you should modify; we will just add the ports to listen and the listeneing of these ports on the locahost - IgnoreLocalhost=0):
[MailScanner]
PopRedirectPort=110,1110,1120,11110
SmtpRedirectPort=25,215,225,1025,11025
IgnoreLocalhost=0
AutoRedirect=1
You save this file and now you must now be able to check all your accounts (the first time your mail client will ask you your passwords for the secure connections).
Tell me if this is understandable and if it works for you.
Good luck.
Murat