Yes, avast would automatically scan your pop3/smtp/imap traffic if you have Windows XP\2k.

Well, I don’t know mail proxies too much.
Probably if you read the MailScanner section in avast4.ini file (see ‘Settings’ on my signature) you will be able to ‘redirect’ avast and tweak its behavior. Hope this helps.