So here are my secret conf files 8)
How to use Thunderbird + Stunnel + Avast…
and How to support Gmail and others accounts simultaneously
My Thunderbird normal account :
* POP
- login “nick1@provider1.com”
- server “pop.provider1.com”
- port “110”
- security protocol : none (“secure connection (SSL)” unchecked and “secure authenticate” unchecked)
* SMTP
- login “nick1@provider1.com” (if necessary, ie if “use with login and password” checked)
- server “smtp.provider1.com”
- port “25”
- security protocol : none (“secure connection (SSL)” unchecked and “secure authenticate” unchecked)
user_pref("mail.account.account1.identities", "id1");
user_pref("mail.account.account1.server", "server1");
user_pref("mail.identity.id1.fullName", "My Nick1");
user_pref("mail.identity.id1.identityName", "Nick1");
user_pref("mail.identity.id1.smtpServer", "smtp1");
user_pref("mail.identity.id1.useremail", "nick1@provider1.com");
user_pref("mail.server.server1.hostname", "pop.provider1.com");
user_pref("mail.server.server1.name", "My Nick1 account (normal)");
user_pref("mail.server.server1.port", 110);
user_pref("mail.server.server1.type", "pop3");
user_pref("mail.server.server1.userName", "nick1@provider1.com");
// user_pref("mail.server.server1.useSecAuth", 0);
// I don't know if this line with another value than 0 or false is supported through Avast (??). I think it is, but I did not test.
user_pref("mail.smtpserver.smtp1.hostname", "smtp.provider1.com");
user_pref("mail.smtpserver.smtp1.port", 25);
user_pref("mail.smtpserver.smtp1.try_ssl", 0);
user_pref("mail.smtpserver.smtp1.username", "nick1@provider1.com");
// this last line could be unnecessary, according to provider1
My Thunderbird gmail account :
* POP
- login “nick2@gmail.com”
- server “127.0.0.1”
- port “11110”
- security protocol : none (“secure connection (SSL)” unchecked and “secure authenticate” unchecked)
* SMTP
- login “nick2@gmail.com” (don’t forget it, in addition to pop login)
- server “127.0.0.1”
- port “11025”
- security protocol : none (“secure connection” : “none” checked)
user_pref("mail.account.account2.identities", "id2");
user_pref("mail.account.account2.server", "server2");
user_pref("mail.identity.id2.fullName", "My Nick2");
user_pref("mail.identity.id2.identityName", "Nick2");
user_pref("mail.identity.id2.smtpServer", "smtp2");
user_pref("mail.identity.id2.useremail", "nick2@gmail.com");
user_pref("mail.server.server2.hostname", "127.0.0.1");
user_pref("mail.server.server2.name", "My Nick2 account (Gmail)");
user_pref("mail.server.server2.port", 11110);
user_pref("mail.server.server2.type", "pop3");
user_pref("mail.server.server2.userName", "nick2@gmail.com");
// user_pref("mail.server.server2.useSecAuth", 0);
// this line does not appears, but it doesn't exists with another value than 0 or false
user_pref("mail.server.server2.realhostname", "127.0.0.1");
// I don't know if this line is usefull. it is the only one "realhostname" line of all my "prefs.js"
user_pref("mail.smtpserver.smtp2.hostname", "127.0.0.1");
user_pref("mail.smtpserver.smtp2.port", 11025);
user_pref("mail.smtpserver.smtp2.try_ssl", 0);
user_pref("mail.smtpserver.smtp2.username", "nick2@gmail.com");
// this last line is really necessary
My stunnel conf :
# We're running as a client to SSLify the GMail POP/SMTP connections
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=127.0.0.1:11025
connect=smtp.gmail.com:587
protocol=smtp
#or the SSL port of your Secure SMTP server if you use another service.
I’m not sure that “protocol=smtp” is really usefull (?), but “protocol=pop(3)” in [gmail-pop3s] seems pop scan to unwork
My Avast conf :
[MailScanner]
Log=20
ShowTrayIcon=1
AutoSetProtection=0
PassThrough=1
Trust=127.0.0.1
AutoRedirect=1
StartSmtp=1
StartPop=1
StartImap=1
StartNntp=1
PopRedirectPort=110,11110
SmtpRedirectPort=25,11025
ImapRedirectPort=143
NntpRedirectPort=119
IgnoreLocalhost=0
IgnoreAddress=
Now everything works together !
It remains to add a anti-Spam if need be