Thunderbird - SpamPal - Avast with SSL
1. Installing and preparing STUNNEL:
Download OPENSSL for Windows from: http://www.slproweb.com/products/Win32OpenSSL.html
Download STUNNEL for WIndows from: http://www.stunnel.org/download/binaries.html
and install both.
In the folder where you have installed stunnel (e.g. C:\Programme\stunnel), you will create its configuration file.
So launch your notepad and type the following (adapt it if necessary) in a blank document:
# stunnel.conf # 2007-07-24, chhaas # Certificate/key is needed in server mode and optional in client mode # The default certificate is provided only for testing and should not # be used in a production environment cert = stunnel.pem # key = stunnel.pem # Some performance tunings socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 # Authentication stuff # verify = 2 # Don't forget to c_rehash CApath # CApath = certs # It's often easier to use CAfile # CAfile = certs.pem # Don't forget to c_rehash CRLpath # CRLpath = crls # Alternatively you can use CRLfile # CRLfile = crls.pem # Some debugging stuff useful for troubleshooting #debug = 7 #output = stunnel.log # Use it for client mode # We're running as a client to SSLify the GMX POP connection client=yes # Service-level configuration # [pop3s] # accept = 995 # connect = 110 # [imaps] # accept = 993 # connect = 143 # [ssmtp] # accept = 465 # connect = 25 #[https] # accept = 443 # connect = 80 # TIMEOUTclose = 0 # POP3 service, listens on localhost:11110 [gmx-pop3s] accept=127.0.0.1:11110 connect=pop.gmx.net:995 #or the SSL port of your Secure POP server if you use another service. # SMTP service, listens on localhost:11025 [goneo-smtps] accept=localhost:11025 connect=smtp.goneo.de:465 #or the SSL port of your Secure SMTP server if you use another service. # vim:ft=dosini
Save this file in the same folder as the stunnel.exe (C:\Programme\stunnel) 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 stopor manage it using the standard windows console for services):
stunnel.exe -install
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.
2. Setting SpamPal:
In Options - Connections, add Ports for:
a) „normal“ POP3:
Reiter "Einstellungen" - POP3 (bestimmter Server-Name) - lokale Port-Nummer: 110 - Server-Name: pop.myserver.com
b) „secure“ POP3s:
Reiter "Einstellungen" - POP3 (bestimmter Server-Name) - lokale Port-Nummer: 995 - Server-Name: localhost:11110
c) „normal“ SMTP:
Reiter "Einstellungen"
- SMTP (bestimmter Server-Name)
- lokale Port-Nummer: 25
- Server-Name: mail.myserver.com
d) „secure“ SSMTP:
Reiter "Einstellungen" - SMTP (bestimmter Server-Name) - lokale Port-Nummer: 2465 - Server-Name: smtp.goneo.de Reiter "Optionen" - Empf�nger von verschickten E-Mails auf die Auto-Whitelist - F�ge Received: Header in E-Mail ein
3. Setting the mail client:
I will assume that you have two kind of POP accounts, one normal (christoph@myserver.com) and one secured (chhaas@gmx.de).
a) „normal“ POP3:
- Server: pop.myserver.com
- Port: 110
b) „secure“ POP3s:
- Server: localhost
- Port: 995
c) „normal“ SMTP:
- Server mail.myserver.com
- Port: 25
d) „secure“ SSMTP:
- Server: localhost
- Port: 465
4. Setting Avast.ini:
As you probably know, this file sits in Aavastfolder\data subfolder.
C:\Programme\Alwil Software\Avast4\DATA\avast4.ini
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,11110
SmtpRedirectPort=25,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).
adapted from: http://forum.avast.com/index.php?topic=10428.0
← index