Disable TLS on localhost

is it possible, to disable TLS for connections on localhost.
Id like to run roundcube with imapproxy and postfix with courier, but the imapproxy support for TLS connections is terrible.
I think I have to configure courier to accept connections from localhost without TLS?