Step-by-step Starting with Exchange 2010 SP1 multi-tenant: Sending and receiving emails


This tutorial is part of 4 parts tutorial on Exchange 2010 multi-tenancy support
Part 1: Installation of Exchange 2010 SP1 in hosting mode
Part 2: Creating and deleting Organizations in Exchange 2010 SP1 hosting mode
Part 3: Managing Organization in Exchange 2010 SP1 hosting mode
Part 4: Sending and receiving emails in Exchange 2010 SP1 hosting mode

Well I didn’t think I would dedicate one post for just “sending/receiving emails” in Exchange 2010 hosting mode however I didn’t know where to fit this part so here goes the 4th, and last, part of this tutorial “Step by step starting with Exchange 2010 SP1 multi-tenant”

Receiving email

It is well known that if your exchange 2007/2010 is internet facing you will need to add “Anonymous” to the permission groups of the “Default Receive Connector” on your Hub transport server. Exchange 2010 running in hosted mode is no exception however there is no Exchange Management Console anymore to do this change so we will need to do it through powershell by running the following command. Of course don’t forget to replace “Exchange” by your Hub server name.

Set-ReceiveConnector -PermissionGroups 'AnonymousUsers, ExchangeUsers, ExchangeServers, ExchangeLegacyServers' -Identity 'Exchange\Default Exchange'

Sending emails

Sending external emails

We also know that Exchange 2007 / 2010 will not send external emails before creating a send connector, so we will create on using powershell also.

To create a Send connector using DNS MX for routing. You will also need to replace “Exchange” by the name of your Hub server

new-SendConnector -Name 'To Internet' -Usage 'Custom' -AddressSpaces 'SMTP:*;1' -IsScopedConnector $false -DNSRoutingEnabled $true -UseExternalDNSServersEnabled $false -SourceTransportServers 'Exchange'

To create a Send connector using smarthost relay for routing. You will also need to replace “Exchange” by the name of your Hub server and 1.1.1.1 by the IP of the smarthost

new-SendConnector -Name 'Using SmartHost' -Usage 'Custom' -AddressSpaces 'SMTP:*;1' -IsScopedConnector $false -DNSRoutingEnabled $false -SmartHosts '[1.1.1.1]' -SmartHostAuthMechanism 'None' -UseExternalDNSServersEnabled $false -SourceTransportServers 'Exchange'

Sending Inter-Organization emails

Well this is where things are new! I started by simply sending an email between 2 users in different organizations and, instead of reaching its destination, it went directly to the unreachable queue !

21

What does it mean?
Well it means that Users in different organizations are treated as completely independent, the user will not be resolved “locally” in Active Directory and delivered it will use the send connectors just like any other alien domain.

How to solve this?
Well I am sure there are a lot of ways to do this but, since I am in a lab environment with only one server I have created a send connector for all the organizations smtp domains and set it to use the loopback IP address as smart-host connector

new-SendConnector -Name 'TestOrg' -Usage 'Internal' -AddressSpaces 'SMTP:testorg.com;1','SMTP:lab.com;1' -IsScopedConnector $false -DNSRoutingEnabled $false -SmartHosts '[127.0.0.1]' -SmartHostAuthMechanism 'None' -UseExternalDNSServersEnabled $false -SourceTransportServers 'Exchange'

Conclusion

Well congratulations, if you made it that far you should have now a fully functional Exchange 2010 SP1 hosted environment. I hope this was of help.


This tutorial is part of 4 parts tutorial on Exchange 2010 multi-tenancy support
Part 1: Installation of Exchange 2010 SP1 in hosting mode
Part 2: Creating and deleting Organizations in Exchange 2010 SP1 hosting mode
Part 3: Managing Organization in Exchange 2010 SP1 hosting mode
Part 4: Sending and receiving emails in Exchange 2010 SP1 hosting mode

I have been working in IT consultancy and solution integration since 1998 and I consider myself lucky to be, one in a few, making a living out of my passion. I am also member of the famous Experts Exchange (profile here) online community where I try my best to share what I have learned along the road.

Posted in Messaging & Collaboration Tagged with: , ,
23 comments on “Step-by-step Starting with Exchange 2010 SP1 multi-tenant: Sending and receiving emails
  1. Guest says:

    For the inter-org emails, you wrote:

    >>Well I am sure there are a lot of ways to do this but, since I am in a lab environment with only one server I have created a send connector for all the organizations smtp domains and set it to use the loopback IP address as smart-host connector

    Can you think of a better way that's more generic so that we don't have to modify each org every time we add another org domain?

    THanks

    • akhater says:

      well the idea is to have the email reach you hub transport server(s) you can use, for example, a mail relay and the latter will use DNS (MX) for routing and thus this will result in it sending the email back to right where it came from. this should also work

  2. mouhamad says:

    [PS] C:Windowssystem32>Test-OutlookWebServices -ClientAccessServer “web1”

    WARNING: An unexpected error has occurred and a Watson dump is being generated: Failed to find the mailbox. Mailbox =

    ''.

    Failed to find the mailbox. Mailbox = ''.

    + CategoryInfo : NotSpecified: (:) [Test-OutlookWebServices], MailboxNotFoundException

    + FullyQualifiedErrorId : Microsoft.Exchange.Monitoring.MailboxNotFoundException,Microsoft.Exchange.Management.Sys

    temConfigurationTasks.TestOutlookWebServicesTask

  3. Mouhamad says:

    having problems with outlook 2010 sending messages..

    [PS] C:Windowssystem32>get-sendconnector

    Identity AddressSpaces Enabled

    ——– ————- ——-

    To Internet {SMTP:*;1} True

    Using SmartHost {SMTP:*;1} True

    same scenario under 2007 works just fine..

    but using outlook 2010 give me “unable to relay” error message..

    any thoughts would really help??

  4. mahen says:

    Hi I am unable to configure outlook with multi tenant Exchange 2010 SP1. while configuring outlook it gives me error like “Name cannot be matched to a name in address list” . OWA works fine for the same user.

    thanks

  5. mikroland says:

    How can I migrate a mailbox from exchange 2007 into exchange 2010 sp1 tenant host?

    I already have my new 2010sp1 tenant server up and running, I want to move my old exchange mailbox from my old 2007 exchange server (obviously a different organization all together) to the new tenant server. I know I need to use the powershell preparemoverequest.ps1 but I need to detailed guidance on the entire procedure. Anyone done this yet???? Thanks!

  6. mikroland says:

    I am able to move an interorg mailbox to a NON tenant 2010 sp1 server using this procedure:

    Step1

    cd C:program filesmicrosoftexchange serverv14scripts

    $Local = Get-Credential (newdomainadministrator)
    $Remote = Get-Credential (olddomainadministrator)

    Step2

    .Prepare-MoveRequest.Ps1 -Identity mailboxnamesgoeshere -RemoteForestDomainController olddomaincontroller.local -RemoteForestCredential $Remote -LocalForestDomainController newdomaincontroller.local LocalForestCredential $Local -UseLocalObject

    Step3

    New-MoveRequest -Identity mailboxnamesgoeshere -RemoteLegacy -TargetDatabase “Mailbox Database 0534644139” -RemoteGlobalCatalog olddomaincontroller.local -RemoteCredential $Remote -TargetDeliveryDomain “externaldomainname.com” -baditemlimit 10

    step4

    – disconnect mailbox then reconnect to new AD account

    However,
    In tenant mode, since there is no EMC, I cannot perform step 4. Do you know how to disconnect the mailbox and reconnect it to the new AD account?

  7. Btn003 says:

    Hi – Followed your tutorial, but sending Inter-Organization emails brings this error:
    #554 5.4.4 SMTPSEND.DNS.MxLoopback; DNS records for this domain are configured in a loop

    Any idea?

  8. James_deavin says:

    Brilliant Tutorials. Works perfectly. Just one question?

    Oviously this creates different administrators for each organization from which you can manage each organization through ECP/OWA but is there a way to allow organization A to manage organization B through ECP?OWA?

    ie:
    Organization A is the company selling the hosted exchange.
    Organization B is the client who purchased the exchange.

    Staff at Organization A only use the standard OWA/ECP for support can they manage Organization B?

  9. Apkatsarelis says:

    Can you explain the Send Connector configuration in more detail. I have followed your guide, but have a dedicated MX server to receive mail and a dedicated SMTP server to send. I can not get mail to flow between organizations on the hosted exchange. Receive connectors are using IPs of MX server. Send connectors are using IP of SMTP server.

  10. Thanks for an awesome tutorial!
    I've just setup a test environment using this.

    Exchange and Windows servers are pretty new to me, I usually administrate *NIX servers.
    One thing though. What about backups in multi-tenant, what options are there?
    We are planing on setting up a DAG when we are putting it in the production environment, but is there something that let you take backup of all the mailboxes and restore them, and maybe restore single emails? How does this work.

    Thanks for any information I get!

  11. Matthew says:

    Thanks Awesome Tutorial !
    Is there a way to view all send connectors & also how do you remove a send connector ?

  12. Jatinder says:

    Thanks SIr for the Valuable Info, i never thought that i would be ablt to do all this .. Thanks to the tutorial .. my exchange multi setup is running and tested.
    Thanks to u …

  13. Sathesh says:

    Amazing Tutorial — Great One..I appreciate it

  14. Aaron says:

    This is Hands Down, an amazing article. How would I go about enableing SMTP and POP3 settings globaly

  15. Carlos says:

    I am running exchange 2010 SP1 in hosting mode. I need to increase the send/receive size limits. How would I go about doing that without breaking the send/receive connectors?

  16. Zak says:

    Hey sorry to resurrect a thread but im having issues… I have 2 domains at the moment.. Ill label them apples and bananas for arguments sake.

    I have [email protected] and ‘[email protected]

    I also have a domain controller for arguments sake names [email protected]

    3 things.. 

    First thing is when im on the exchange box and run get-accepteddomains I get apples only.. when i run get-accepteddomains ** i get apples and bananas (confuses me) and cant select one as default and one as non default. 

    second thing is when i try and run set-accepteddomain -identity ‘bananas.co.nz’ -name ‘bananas.co.nz’ i get. The operation coudlnt be performed because object bananas.co.nz could not be found on cherriesad.cherries.co.nz. Its as if its not following down the list and checking the Microsoft Exchange Hosted organizations and only looking in the adlist without going further.

    and third thing. (this gets tricky.) When i go to exchange on my phone and set it up i get asked username and password so ill use a(at)apples.co.nz domain: apples.co.nz connects find i have exchange on my phone.. now when i try for bananas i go b(at)bananas.co.nz with domain bananas.co.nz It fails. doesnt connect (i own both of these domains) if i change the domain from bananas.co.nz to apples.co.nz, so it looks like b(at)bananas.co.nz domain:apples.co.nz i get the a(at)apples.co.nz mailbox. not the bananas mailbox.. 

    I understand the names are terrible (they are not the real names) but i am almost literally tearing me hair out over this. ive followed your guide to the letter but alas am stuck and need further help!

    Any assistance is great!

    Zak

  17. Mouhamad says:

    Antoine, this was very helpfull (thank you), this installation has been working for me for over a year.
    but with SP2 out,  just wondering, have you a migration guide?? do i have to rebuild both my exchange and my AD servers???

  18. Nikhil Bhardwaj says:

    what would be mine hub server name getting error while configuring connector.

    The operation couldn’t be performed because object ‘exchange.i2k2networks.locali2k2networks.com’ couldn’t be found on
    ‘exchange.i2k2networks.local’.

  19. Haydar Yılmaz says:

    Thank you, thank you so much.

  20. Haydar Yılmaz says:

    Why don’t you have ads somewhere on page, that I would click some interested

1 Pings/Trackbacks for "Step-by-step Starting with Exchange 2010 SP1 multi-tenant: Sending and receiving emails"
  1. […] Remember that administrator password we have used when we first created our TestOrg in part 1 of this tutorial? Well it is now time to use it … This tutorial is part of 4 parts tutorial on Exchange 2010 multi-tenancy support Part 1: Installation of Exchange 2010 SP1 in hosting mode Part 2: Creating and deleting Organizations in Exchange 2010 SP1 hosting mode Part 3: Managing Organization in Exchange 2010 SP1 hosting mode Part 4: Sending and receiving emails in Exchange 2010 SP1 hosting mode […]

Leave a Reply to Guest Cancel reply

Your email address will not be published. Required fields are marked *

*