Is it necessary to use Mailgun?

That’s the correct way to implement email. The user here was attempting to use the gsuite SMTP relay to send email from their discourse instance, which is explicitly prohibited by Google. Previously they tried to use a third party relay to send email from the gsuite domain rather than a subdomain, which would prevent gsuite from receiving verification emails.