Discourse connects to the SMTP server but fails to send email through it

What is the hostname that Discourse uses to send mail?
Does it use forum.somedomain.com?
or
Does it use mail.forum.somedomain.com?