Jump to content

Recommended Posts

Posted

Hi,

I am currently trying to configure dual delivery with exchange and gmail and have run into an issue that won't allow me to send email from an exchange mailbox to an alias google sub domain.

 

I have successfully validated our primary domain with google and set up an alias sub domain (g.mydomain.co.uk) which receives email from other email addresses without issue however when I send an email from within our exchange organisation I get a #554 5.4.4 SMTPSEND.DNS.NonExistentDomain; nonexistent domain ## error from our exchange server.

 

Anyone have any ideas what the issue might be? I have tried adding accepted domains and a send connector in exchange but it doesn't make any difference.

 

Thanks in advance

Posted
Can you resolve the g.mydomain.co.uk from your internal DNS? (typically see this if someone has mydomain.co.uk as an internal DNS zone and forgets MX records)
Posted
No cannot resolve g.mydomain.co.uk internally and yes we have mydomain.co.uk as an internal zone. So do I need to add an internal MX record for g.mydomain.co.uk pointing to the google MX servers?
Posted
No cannot resolve g.mydomain.co.uk internally and yes we have mydomain.co.uk as an internal zone. So do I need to add an internal MX record for g.mydomain.co.uk pointing to the google MX servers?

Yeah pretty much.

Posted

Yep, or instead of having the full domain.co.uk zone internally consider using more specific ones like http://www.domain.co.uk and intranet.domain.co.uk so "unmatched" entries rely on your DNS forwarders (upstream DNS). (whereas what is happening now is unmatched entries return null because well, there's nothing there)

 

If you have a long list of entries in your mydomain.co.uk zone you probably want to just go ahead and add the g.domain.co.uk mx record to match what you did for your public DNS.

Posted

Thanks for your help so far.

I am now able to send to a g.mydomain.co.uk email address from within the exchange organisation however my issue now is I have created a test gmail account that doesn't have an exchange mailbox and I can send to it using the g.mydomain.co.uk email alias from anywhere but I cannot send from the test account back to an exchange recipient using the primary mydomain.co.uk email addresses and I cannot send to it using the primary domain mydomain.co.uk.

Hope that make sense.

 

Any ideas?

 

Thanks

Posted

I'm not entirely 100% I follow that description but I thinks it's an internal relay/ authoritative domain quesiton.

 

By default, in exchange if [email protected] doesn't exist (because it's in gmail) then exchange will say 'recipient doesn't exist'. You need to change that domain to 'internal relay'. This means, if you send to [email protected] and it doesn't exist in exchange, it will attempt to send it elsewhere over whatever route it can find.

 

however, you do not want to do the same in gmail (to allow [email protected] to sent to [email protected]) as non existant email addresses will end up looping.

 

This feels a bit like a 'wouldn't start here' problem, what is your actual goal?

Posted

Basically you are not doing dual delivery but split delivery (dual is mail is sent to both johnsmith@emailserver1 and johnsmith@emailserver2)

You need to create a contact in exchange with the [email protected]domain address for it to route to the other address. You can also setup exchange to be an internal relay rather than authoritative with a smart connector to gmail's server but in the interim you may want to create the contact. Both methods need a contact to me created tbh.

  • Thanks 1
Posted

My goal at this stage is to remove student emails from exchange and create gmail accounts for students. Would it be better to create these mailboxes using a subdomain configuring their primary email address as student.mydomain.co.uk rather than trying to create an alias to the main domain?

 

These are the NDR/errors I get:

Sending from my exchange address to test school gmail account (using primary domain mydomain.co.uk) #550 4.4.7 QUEUE.Expired; message expired ##

Sending from my exchange address to test school gmail account (using g.mydomain.co.uk) Now working ok after creating internal mx record.

Sending from school gmail test account to my exchange email ([email protected]) you are not in mydomain.co.uk error.

Sending from personal gmail account to school test gmail account (mydomain.co.uk) Not received

Sending from personal gmail account to school test gmail account (g.mydomain.co.uk) works ok.

 

Thanks so far.

  • 4 weeks later...
Posted (edited)

So I am now revisiting this issue after doing some other summer jobs and I have made a bit of progress.

I have created the exchange mail contact for a student as chaplic suggests above and can now send to this gmail test student account using test [email protected] from an exchange user however when I try to reply to this email from within gmail I get the following error:

554 5.7.1 [email protected]: sender address rejected: you're not in mydomain.co.uk

 

Any ideas how I can get around this?

 

Thanks

Edited by jhaigh
Posted

A little progress:-)

Just had a look at that and email is a mandatory field so I am guessing that's not possible.

I am wondering if there is a setting in either exchange or my ISP dns settings that will allow emails with the same domain name that are essentially coming from google servers i.e. outside the exchange organisation to be accepted?

Posted

You cannot do anything in DNS/ isp to have what you want. You must point the mail to a single system and configure that up to route how you want.

 

Entering the email address is fine, we are basically saying ‘accept email and then forward it on’

 

However, it looks like google suggests a thing called split delivery

 

https://support.google.com/a/answer/2685650?hl=en.

 

Which will also achieve it and if it’s their preferred route, so much the better

Posted

I'm currently running a hybrid install of Exchange with a split delivery where the studetns accounts live on Google.

 

Split worked fine with accounts on my exchange box but when they are migrated to the cloud they fail with unknown account. I'm having to create mail contacts for all students, I've tested this on one account and as soon as I create the contact mail flow begins (although I am still gettting an error in Outlook saying the adress is no longer valid)

 

Not sure if I will still need to do this when i decomission my Exchange box.

 

Only got exams results to go out tonight so all is fine.:)

Posted
I am certain it is possible. I have a spare gmail and o366 tennant, if you can hold on about 2 weeks I will setup, if you have not solved already.
Posted

Any help appreciated.

 

I can't help thinking it is something to do with exchange thinking that the email is illegitimate as it is essentially coming from an email address (@mydomain.co.uk) which is the main exchange email domain but from outside the exchange organisation i.e. from google servers. Authentication?

Posted

That’s the size of it. As a default Both gmail and exchange have a directory and will look that up to see if the mailbox exists, and if it doesn’t then nondeliver the email.

 

In exchange (under mail flow I think, currently sat by a pool and missus might get upset if I whip out my laptop 😀) we can change the domain type to be ‘internal relay’ instead of ‘authoriative’ which basically says ‘hey, if you cannot find a mailbox for this email then just send it thru whatever route you know’. I don’t think there is an exact equivalent in gmail.but you wouldn’t want to set it because anyone sending an email to typo@yourdomain would cause a mail loop.

Posted
That’s the size of it. As a default Both gmail and exchange have a directory and will look that up to see if the mailbox exists, and if it doesn’t then nondeliver the email.

 

In exchange (under mail flow I think, currently sat by a pool and missus might get upset if I whip out my laptop 😀) we can change the domain type to be ‘internal relay’ instead of ‘authoriative’ which basically says ‘hey, if you cannot find a mailbox for this email then just send it thru whatever route you know’. I don’t think there is an exact equivalent in gmail.but you wouldn’t want to set it because anyone sending an email to typo@yourdomain would cause a mail loop.

 

Thats how mine was setup.. but when you go to hybrid i changes.

 

The connectors are created in O365 to talk to the onsite exchange server, if it doens find the contact it drops it.. you can't change the connector type. Still can email Google on the exchage box, just not migrated mailboxes.

Posted

I don’t mean connector, assume you are talking about the ‘outbound to guid’

 

Mail flow-> accepted domains

 

Will list all domains. Pick the domain in question and change to internal relay

  • 1 month later...
Posted

I had the same problem but with Thunderbird. I was looking for a program to settle this issue and found one. It also helped me to migrate thunderbird to outlook browse this page. Luckily, it has all the necessary features under one umbrella and enables users to move email archives of any size. BTW, there are also products for Gmail. Hope, it will help you!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...