Is docker hostname the same as the subdomain for email setup?

Hi im wondering if im supposed to use the discourse hostname i put in app.yml to setup my mailgun account.
is it the same or are they supposed to be different sub domains?

I’m using cloudflare for dns and mailgun for email, ive enabled the cf template but cant seems to get the dns to verify or send any emails

can anyone give me a general outline of a good setup to use?

not sure to use mail.domain.com, email.domain.com, post.domain.com, discourse,domain.com etc…

Mail should be from forum.example.com so you should enter it that way. This is what mailgun recommends, and is also what the Discourse default setup assumes.

so the hostname of discourse and email subdomain are the same? thx

Changing the domain on my docker instance after the initial installation doesn’t change the domain used for emails. Is this a feature or bug? What if I’d like to send emails from domain.com rather than discourse.domain.com.