Generally:
server: 127.0.0.1 (and not 127,0,0,1)
username: name#servername

The switch or loggoff do not change the behavior of avast. You can use them both if you configure the email accounts correctly to be scanned by avast.

Welcome to forums :wink: