I use my own mailserver, set on the usual POP3 port of 110. I also use YahooPops to download e-mail from my Yahoo! account. This is set on Port 111. I have set up Avast to run on port 112.
Assuming that my username is "loopy" and that my password is "password" (which they're not, BTW), I connect to port 112 and use a username of "loopy#localhost:111" and the usual password. This works, but I have noticed when a large number of e-mails come in, every so often, rather than sending a single command to a line, separated by a line return, Avast seems to send more than one and does not separate them properly. I thought it might have something to do with YahooPops! but I tried bypassing Avast and my mailserver downloaded all the e-mails perfectly.
If I have confused you, here's what I think is happening:
USER loopy#localhost:111
PASS password
LIST
RETR 1<CR><LF>
DELE 1<CR><LF>
[Repeat above two lines until]
RETR 18<CR><LF>
DELE 18<CR><LF>
RETR 19<CR>
DELE 19
[Hangs here]