Require SSL login to webmail?

I was wondering if there was any way to require SSL login to webmail. That is, can I make http://webmail.domain.com either return an error message, or automatically redirect to https://webmail.domain.com?