How to setup Gsuite SMTP relay on Office 365?

%3CLINGO-SUB%20id%3D%22lingo-sub-217918%22%20slang%3D%22en-US%22%3EHow%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-217918%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20tell%20me%20how%20to%20setup%20G-Suite%20SMTP%20relay%20(smtp-relay.gmail.com%20)%20on%20Office%20365%3F%20This%20is%20to%20relay%20outgoing%20emails%20from%20Office%20365%20through%20G-Suite.%20We%20are%20migrating%20from%20Office%20365%20to%20GSuite.%20The%20MX%20records%20are%20now%20pointing%20to%20Google.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-217918%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESMTP%20Relay%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-223580%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-223580%22%20slang%3D%22en-US%22%3Esmtp-relay.gmail.com%20rejected%20your%20message%20to%20the%20following%20email%20addresses%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYour%20message%20wasn't%20delivered%20because%20the%20recipient's%20email%20provider%20rejected%20it.%3CBR%20%2F%3E%3CBR%20%2F%3Esmtp-relay.gmail.com%20gave%20this%20error%3A%3CBR%20%2F%3EMail%20relay%20denied%20%5B2a01%3A111%3Af400%3A7e14%3A%3A201%5D.%20Invalid%20credentials%20for%20relay%20for%20one%20of%20the%20domains%20in%3A%20(as%20obtained%20from%20HELO%20and%20MAIL%20FROM).%20Email%20is%20being%20sent%20from%20a%20domain%20or%20IP%20address%20which%20isn't%20registered%20in%20your%20G%20Suite%20account.%20Please%20login%20to%20your%20G%20Suite%20account%20and%20verify%20that%20your%20sending%20device%20IP%20address%20has%20been%20registered%20within%20the%20G%20Suite%20SMTP%20Relay%20Settings.%20For%20more%20information%2C%20please%20visithttps%3A%2F%2Fsupport.google.com%2Fa%2Fanswer%2F6140680%23maildenied%20p6-v6sm1401705itf.7%20-%20gsmtp%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20I%20need%20to%20whitelist%20something%20on%20the%20Google%20side.%20Please%20let%20me%20what%20to%20whitelist%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-219186%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-219186%22%20slang%3D%22en-US%22%3E%3CP%3ESame%20scenario%2C%20I%20was%20wondering%20if%20setting%20to%20Internal%20Relay%2C%20instead%20of%20Authoritative%20and%20also%20setting%20up%20a%20connector%20to%20route%20to%20G-Suite%20is%20the%20solution%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fmail-flow-best-practices%2Fmanage-accepted-domains%2Fmanage-accepted-domains%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fexchange%2Fmail-flow-best-practices%2Fmanage-accepted-domains%2Fmanage-accepted-domains%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218306%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218306%22%20slang%3D%22en-US%22%3EI%20have%202%20domains%20with%20mail%20accounts%20hosted%20in%20Office%20365.%20I%20am%20going%20to%20migrate%20this%20to%20G-suite.%20The%20MX%20is%20now%20pointing%20to%20G-Suite%20and%20I%20have%20setup%20dual-delivery%20on%20G-suite%20and%20the%20incoming%20mails%20are%20getting%20in%20both%20mailboxes.%20Now%20I%20wanted%20to%20make%20sure%20that%20the%20outgoing%20mails%20from%20Office%20365%20mailboxes%20are%20routed%20back%20through%20the%20G-Suite.%20So%20the%20mails%20that%20are%20sent%20from%20O365%20mail%20accounts%20will%20be%20available%20on%20the%20sent%20items%20of%20the%20respective%20Gmail%20accounts.%20I%20want%20to%20set%20this%20to%20avoid%20the%20delta%20migration.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-218036%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-218036%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20might%20want%20to%20try%20explaining%20what%20exactly%20you%20are%20trying%20to%20achieve%20here%2C%20with%20details.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148052%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20setup%20Gsuite%20SMTP%20relay%20on%20Office%20365%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148052%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F167387%22%20target%3D%22_blank%22%3E%40vishnu%20vishnu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20the%20same%20setup%20and%20problem%20as%20yours.%26nbsp%3B%20Have%20you%20already%20resolved%20the%20issue%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,


Please tell me how to setup G-Suite SMTP relay (smtp-relay.gmail.com ) on Office 365? This is to relay outgoing emails from Office 365 through G-Suite. We are migrating from Office 365 to GSuite. The MX records are now pointing to Google.

5 Replies

You might want to try explaining what exactly you are trying to achieve here, with details.

I have 2 domains with mail accounts hosted in Office 365. I am going to migrate this to G-suite. The MX is now pointing to G-Suite and I have setup dual-delivery on G-suite and the incoming mails are getting in both mailboxes. Now I wanted to make sure that the outgoing mails from Office 365 mailboxes are routed back through the G-Suite. So the mails that are sent from O365 mail accounts will be available on the sent items of the respective Gmail accounts. I want to set this to avoid the delta migration.

Same scenario, I was wondering if setting to Internal Relay, instead of Authoritative and also setting up a connector to route to G-Suite is the solution?

 

https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/manage-accepted-domains/manage-ac...

smtp-relay.gmail.com rejected your message to the following email addresses:



Your message wasn't delivered because the recipient's email provider rejected it.

smtp-relay.gmail.com gave this error:
Mail relay denied [2a01:111:f400:7e14::201]. Invalid credentials for relay for one of the domains in: (as obtained from HELO and MAIL FROM). Email is being sent from a domain or IP address which isn't registered in your G Suite account. Please login to your G Suite account and verify that your sending device IP address has been registered within the G Suite SMTP Relay Settings. For more information, please visithttps://support.google.com/a/answer/6140680#maildenied p6-v6sm1401705itf.7 - gsmtp

If I need to whitelist something on the Google side. Please let me what to whitelist?

Hi @vishnu vishnu 

 

I have the same setup and problem as yours.  Have you already resolved the issue?