Is it necessary to use Mailgun?

Not sure what you mean by this. I use gsuite with my domain and I have sendgrid sending discourse emails under the subdomain forum.example.com