If avast uses port 110 and SpamPal uses port 9110, mozilla account should be set to
Server name: localhost
Port: 9110
Username: username#popservername@localhost