Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: 198.61.253.48 (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. [198.61.253.48]. 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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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