a little more precisions...
Avast automatically monitors all connections to port 110, eg. pop.myisp.com:110, but in your case there is no connection to port 110, instead 11110 is being used. So firstly you'll have to add PopRedirectPort=110,11110. Now avast will redirect (monitor) both 110 and 11110 ports.
OK, that's fine... I didn't understand what "PopRedirectPort" meant. Now I do. But it isn't so easy to understand that Avast support two scan modes :
- "Listen" which is needing a login as "nick#pop.server.com" (and Avast log itself to "pop.server.com" with the login "nick" / maileur send "nick#pop.server.com" to "127.0.0.1:110")
- "Redirect" which simply catch the stream from normal maileurs configuration (maileur send "nick" directly to "pop.server.com")
Your connections are directed to localhost:11110, but under standard setup localhost is ignored and not monitored. So secondly you need to add IgnoreLocalhost=0.
But for the "Redirect" method I had to uncheck "ignore local communications". And the "Listen" method needs this to be checked.
There is no need to force avast listen on two ports for whatever reason - as you are suggesting in your original post.
But in my mind, Avast do it (what I wanted) finally : it scans more than one ports with the "redirect" method.
And in fact, it could be nice to force Avast to "listen" to 2 (or more) ports : because with the "Redirect" method, if Avast doesn't work (for any reason : not lauched, crashed, blocked...), the maileur does pop emails, but without Avast scan !
And it seems to be impossible to use "Listen" and "Redirect" simultaneously (or am I a stupid boy ?, that's a 50% / 50% :-)
Finally, if you have problems starting the SSL Tunnel service, please use Control Panel / Administrative Tools / Services, there you can change the status from stopped to started.
That was an artefact of my silly mind. When windows start up, stunnel do error like "Error resolving 'pop.gmail.com': Neither nodename nor servname known (EAI_NONAME) / Cannot resolve 'pop.gmail.com:995' - delaying DNS lookup". And when connected, it doesn't show any "OK messages", but it works fine !
If any is interresting in, I can post here my 3 confs files (thunderbird, avast, stunnel)