send mail with imap ?
and SSL authentification : http://www.whoopis.com/howtos/sendmail-auth-howto.html
and sendmail support: http://www.sendmail.org/support