This might be the solution you're looking for then. I don't know if the relay host portion will work against POP or IMAP logins.
Setup Relay Host Port and SMTP Authentication Client in Postfix
http://wingloon.com/2008/06/21/setup-relay-host-port-and-smtp-authentication-client-in-postfix/Enabling SASL authentication in the Postfix SMTP client
http://www.postfix.org/SASL_README.html#client_sasl