We currently use Google Apps for receiving emails on our domain. We would like to send all mail to unknown addresses to our Mailgun server for further processing. This seems like a typical "split delivery" case.

I have attempted to create a custom destination (under "Email Routing" in the Google Apps settings) that sends to smtp.mailgun.com. This results in the following error:

Delivered to an SMTP server with IP address: (Not encrypted) Google tried to deliver your message, but it was rejected by the server for the recipient domain smtp.mailgun.org by smtp.mailgun.org. []. The error that the other server returned was: 550 5.7.1 Relaying denied

One thing that is suspicious, is that there is no setting to specify the email/password for the smtp server.

Does anyone know how to accomplish this?


Generally, you need to indicate in the receiving mail server that the sending mail server is trusted (or whitelisted) which is why there is no password.

You need to look to see if Mailgun allows you to specify Google's mail servers as trusted for your mail.

If not, you could have the catch-all forward the mail to an unused account which then uses a filter to forward to an email address at the Mailgun server. Not pretty and subject to sending limits but might achieve your goal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.