To connect to my IMAP I need in Gnus `smtpmail-stream-type 'starttls` and `smtpmail-smtp-service 587`. I am not aware of an equivalent for .mairixrc.