How to forward mail to an external email address

In Exchange Server 2003, mail for a recipient can be forwarded to an alternate recipient by modifying the recipient’s Delivery Options in ADUC | recipient -> properties | Exchange General tab.

Screenshot: Delivery Options to auto forward email to an alternate recipient in Exchange 2003
Figure 1: Use Delivery Options to auto forward email to an alternate recipient in Exchange 2003

If you need to forward mail to an external email address, you can’t simply type the address in the Forward to: field on the Delivery Options page. A (mail-enabled) Contact needs to be created in AD first, and Delivery Options modified to point to the Contact.

Forwarding mail to an external address in Exchange 2010 and Exchange 2007

In Exchange 2010/2007, these tasks remain the same. However, instead of using ADUC to accomplish them, you use the EMC or the Shell (aka “EMS“). The new term for a Contact is MailContact.

1 Create a MailContact

Create a MailContact using the EMC:

  1. Expand Recipeint Configuration | Mail Contact
  2. In the Action pane, click New Mail Contact
  3. To create a new Contact object, leave the default (New Contact) selected | click Next
  4. Type First name, Last name
  5. Click Edit to add the external email address
  6. Click New to complete creation of new MailContact

Alternatively, use the Shell to create a new MailContact:

New-MailContact -Name “Foo User” -ExternalEmailAddress “[email protected]

Next, we set the recipient’s Delivery Options to deliver to the alternate recipient.

2 Forward mail for a recipient to the MailContact

Now that we have a MailContact created for the external recipient’s email address, we can forward mail for the Exchange recipient to the MailContact. To configure mail forwarding using the EMC:

  1. Expand Recipeint Configuration | Mailbox | select mailbox | properties | Mail Flow Settings tab | Delivery Options
  2. Under Forwarding address, select Forward to
  3. Click Browse to select the MailContact
    Screenshot: Delivery Options -< Forwarding Address in Exchange 2007
    Figure 2: Modifying Delivery Options to forward email to an alternate recipient
  4. Optional: If a copy of the message needs to be delivered to both the external recipient and the original recipient’s mailbox, select the Deliver message to both forwarding address and mailbox

To configure mail forwarding using the Shell:

Set-Mailbox “Joe Adams” -ForwardingAddress “[email protected]

To deliver a copy to the mailbox (in addition to the external email address – equivalent of step 4 above):

Set-Mailbox “Joe Adams” -ForwardingAddress “[email protected]-DeliverToMailboxAndForward $true

Listing users with forwarding enabled

This command lists mailboxes with auto forwarding enabled:

Get-Mailbox | where {$_.ForwardingAddress -ne $null} | ft name,forwardingaddress

Automatic forwarding and Remote Domains

Remote Domains define a bunch of settings, such as message formats, character sets, and OOFs for messages sent to specified domains outside your Exchange organization. The default Remote Domain setting for the address space * (the asterisk character) applies to all external domains except the ones for which you’ve created a Remote Domain for.

Screenshot: Remote Domain properties
Figure 3: The Allow automatic forward setting for remote domains only impacts client-side automatic forwarding using mechanisms like Inbox Rules, and is disabled by default.

The Allow automatic forward setting for remote domains applies only to client-side forwarding using mechanisms like Inbox Rules. For instance, if a user creates a rule in Microsoft Outlook to automatically forward mail to an external email address, the default setting (for address space *) doesn’t allow it. To enable automatic client-side forwarding of mail to external addresses, select the Allow automatic forward checkbox in a remote domain’s properties | Format of original message sent as attachment to journal report tab (Yes, in Exchange 2007 the tab is mislabeled. It is the “Message Formats” tab… :).

Server-side email forwarding configured by an administrator, as shown in this post, is not impacted by this setting.

Written by

Bharat Suneja

64 Comments

  1. Murray Wall

    Why not just modify the TargetAddress field in Active directory user with smtp:[email protected] This will send all mail to this user bypassing the mailbox.

  2. Bharat Suneja

    Afaik, simply adding the external email address to targetAddress attribute doesn’t work. (Need to test further, but this is what the initial tests reveal).

    It also doesn’t help if you want to deliver to the addressed recipient *and* the alternate recipient (whether internal or external).

  3. Delboy

    Can I use this to forward emails to a server and port number?

    Will it show up with the original header information?

  4. Bharat Suneja

    – Messages will be forwarded to the external mail host responsible for that domain/email address.
    – This has no connection with message routing. Send Connectors determine how messages are routed to an external domain/address space.
    – Yes, original headers are preserved.

  5. Anonymous

    is there a way to list the forwarding enabled accounts in 03?

    similar to “get-mailbox”

  6. Anonymous

    Bharat
    Would like to know whether there any options available for forwarding a copy of the send mails from a set of users to a monitoring account (Say administrator’s email account). We need it to be done as discreet as possible to track the activities of certain sales executives who are believed as manipulating selling prices.
    Scripts, third party tools which could be installed at the server side would be a great help for us.

  7. Bharat Suneja

    @Anonymous: Which version of Exchange server?

    You could use Journaling.
    – In Exchange 2003/2000, Journaling is per Mailbox Database. You will end up journaling all mailboxes on the Database.
    Overview of Exchange Server 2003 Journaling

    – In Exchange 2007, you can journal selectively.
    Overview of Journaling
    How to Create a New Journal Rule

    If you’re on Exchange Server 2007, you can use Transport Rules to send a copy of messages to the desired recipient.
    Overview of Transport Rules

    On either version, you can assign Full Access permissions and access the mailbox using OWA or Microsoft Outlook.
    HOW TO: Grant Full Mailbox Access permission

  8. Anonymous

    Well done!

  9. Anonymous

    How can I forward e-mail to more then two recepient?

  10. Bharat Suneja

    @Anonymous from March 18: You can forward to a Distribution Group, and add the external recipients to the Distribution Group.

    Note, to add external recipients to a Distribution Group, you need to create them as Contacts first.

    1. Evan

      Bharat,
      Does this method apply when needing to forward email to 1 external recipient and 1 internal recipient as well? If not, what’s the best way to accomplish that?

      1. Bharat Suneja Author

        Internal recipients already exist in the GAL. You can create a contact for the external recipient and then create a Distribution Group with both internal and external recipients. Configure forwarding to the new group.

  11. Anonymous

    Thanks Bharat, I am able to forward e-mail to more than two recipients.

  12. Anonymous

    MS Exhange Transport services is in STARTING status, any idea what might cause this exception. I restarted the server couple of times.

  13. Harlekin

    Hello, I have followed the instructions but still cannot get it to work.

    I have selected the option to deliver message to both forwarding address and mailbox. When I send a test mail it arrives fine at the mailbox but doesn’t get forwarded. Then, a minute or so later, a NDR shows up at the mailbox. It gives me the following error “#550 5.7.1 Unable to relay”

    I have been scouring the net for a solution but haven’t found anything. Do you guys have any thoughts?
    (It’s Exchange 2007 and we have a 2-server org with one internal and one front end)

    Cheers

  14. Anonymous

    I followed the above but I’m getting NDR’s with “#550 5.7.1 Unable to relay “

    Any ideas? I’m using Exchange 2007 btw…

  15. Anonymous

    very nice article

  16. claudio

    In Exchange 2007 there is not Delivery Option in Mail Follow Settings under Mail Contact, there is in normal Contact…

  17. Anonymous

    Hi Bharat, nice article.

    I have tried the forwarding to another recipient and it works fine.
    But the forwarding to Distribution Group doesnt work if initial email was sent from external source.

    'Received-SPF: None (my server name.my domain name)'
    my [email protected] does not designate permitted sender hosts.'

    Thanks

  18. Anonymous

    QUOTE "Hi Bharat, nice article.

    I have tried the forwarding to another recipient and it works fine.
    But the forwarding to Distribution Group doesnt work if initial email was sent from external source.

    'Received-SPF: None (my server name.my domain name)'
    my [email protected] does not designate permitted sender hosts.'

    Thanks"

    I am also gettting this error (Exch 2003) when forwarding from external emails and as smtp.enta.net will not relay emails from non authorised senders.

    HAs anyone got a solution for this??

  19. Mohan Reddy

    Hi Bharat: Nice Article.

    I am trying to implement the following on Exchange 2007 Hub Transport Rule :

    The rule is as following:

    From Users Inside the Organization
    and Sent to Users Inside the organization
    Redirect the message to External SMTP Address
    and Silently drop the message.

    I have tried to catch individual users and redirect to external SMTP address works but the Inside to Inside doesn't seem to work.

    Any help is highly appreciated.

  20. Bharat Suneja

    @Mohan Reddy: Can you provide more details of what you're trying to accomplish and what doesn't work? If I read the rule correctly, it shouldn't work.

  21. Mohan Reddy

    Hi Bharat, Thanks for your Reply.

    I want to Redirect all the internal messages of domain ( i.e from [email protected] to [email protected] ) to an external SMTP address.

    From Users Inside the Organization
    and Sent to Users Inside the organization
    Redirect the message to External SMTP Address
    and Silently drop the message.

    The above rule doesn't seem to work to accomplish the task.

  22. Anonymous

    How can I use this same command to do multiple users? This is good if you go user by user. If you want to setup mail forwarding for 100 users, it'll take awhile.

  23. Bharat Suneja

    @Anoymous from September 15th: The shell is designed for automation and performing bulk operations!

    You can get recipients such as mailboxes using Get-Mailbox (or corresponding Get-* cmdlet) and pipe to Set-Mailbox (or corresponding Set-* cmdlet). For example, for mailboxes in an OU: Get-Mailbox -organizationalunit "People" | Set-Mailbox -ForwardingAddress "[email protected]" -DeliverToMailboxAndForward $true.

    There are examples of this across many posts on this blog – for example, check Applying Managed Folder Policy to more than one user. You can get recipients/mailboxes by server, mailbox database, OU, etc.

    Or use the -Filter parameter with recipient cmdlets to specify a filter. The properties you can use to filter are covered in Filterable Properties for the -Filter Parameter in Exchange 2007 SP1 and SP2.

    Once you get the mailboxes you want to apply a change to, pipe them to Set-Mailbox.

    If you haven't come across it already, I'd highly recommend reading Using the Exchange Management Shell in Exchange 2007 docs.

  24. Anonymous

    Thanks Bharat.

    In my situation, I have mailbox users and also forwarding contacts made for those mailboxes. For example [email protected] needs to forward to [email protected], [email protected] needs to forward to [email protected] and so forth.

    Can you please tell me the syntax i should use to perfom that operation?

    I have 500 users I need to setup forwarding for since our company is breaking off of our parent company….so we need our email to forward.

  25. Anonymous

    Hello Bharat

    I work for a small charity which has our own Exchange 2003 server.

    We have some committee members and a Res Home for which we have set up users and contacts to enable them to give out email addresses with our domain name so we can collect them (check for virus and spam) then forward them onto their private email addresses.

    I have set the users up to forward the mail to their contact which has the details of their private email.
    When we send mail from internal users the mail gets routed correctly to them.
    The problem comes when mail comes in from external sources, our Exchange server sorts it correctly then tries to send it out again but gets an NDR message saying that the smtp server we send it out via does not accept mail. (Error 5.5.0 521).

    ie if our domain is (domain.org.uk)
    mail from [email protected] to [email protected] works
    mail from [email protected] to [email protected] is rerouted to [email protected] OK
    mail from [email protected] to [email protected] is rerouted to [email protected] but fails to be sent and NDR produced.

    Any ideas how to allow this relay to take place (sorry, tries to explain as best as possible)

  26. Anonymous

    hi, i tried using the DL to forward mails to internal and external users. Only internal users receive the mail. what could have gone wrong? thanks

  27. Anonymous

    I am able to forward email to an address using Set-Mailbox with -ForwardingAddress. How can I UNFORWARD email using the command line?

  28. Anonymous

    I figured it out! Set-Mailbox -ForwardingAddress $nul

  29. Bharat Suneja

    @Anonymous from Jan 5, 2010: You set forwarding address to null:
    Set-Mailbox foo -ForwardingAddress $null

    @Anonymous from Nov 10, 2009: Is auto-forwarding enabled for remote domains?

  30. Anonymous

    Hi Bharat

    What about forwarding NDRs?
    I configured forwarding to an internal distribution list. Everything works fine, except incomming non delivery reports. These NDRs are not forwarded to the distribution list. Is that behavior by design? Can I change that?

    Regards
    Peter

  31. Anonymous

    Hi Bharat,
    we have space Quota for our user. so when mailbox is full server automatically bounce such emails with out notifying user.
    i want to know whether it is possible that when server bounce an email, he also forward it to a special account?

    Regards
    Ralf

  32. Anonymous

    Hello,
    the article says: "2. Under Forwarding address, select the Forward to checkbox".

    How do I activate and deactivate this checkbox for "Foo User"? I would like to change just this checkbox, anything else shoud remain the same.

    best regards
    arno

  33. Anonymous

    Hello Bharat,

    could you show how to enable/disable the "Forward to" checkbox using the Exchange Management Shell?

    regards
    arno

  34. Anonymous

    Hello Bharat,
    sorry for posting twice, it just did not appear on the website fast enough :(

    Can you demonstrate how to enable/disable forwarding using a script for Exchange 2003 (Active Directory)?

    For Exchange 2007 it would be for disabling:
    set-mailbox -identity [email protected] -ForwardingAddress $null
    enabling:
    Set-Mailbox -Identity John -DeliverToMailboxAndForward $true -ForwardingAddress [email protected]
    (http://technet.microsoft.com/en-us/library/bb123981(EXCHG.80).aspx)

    regards
    arno

  35. Anonymous

    OK I've set up "Foo User" and the "forward" works fine, "Foo User" is also a member of a "Distribution Group" "All Foo Users". Will the "Forward" to "Foo User" also recognise that he\she is a member of "All Foo Users" and therefore "Forward" those emails also?

    Thanks

  36. Anonymous

    Hi Bharath,

    Very informative and nice post. I have Exchange 2003 and my requirement is that I'm able to forward to an external contact but I don't want to preserve the original message headers. For example, if [email protected]'s emails are forwarded to external mail contact [email protected] then the mail headers show the mail was sent to [email protected]. In fact instead of auto forward it should be like sending a copy of the mail to [email protected]

    Thanks & Regards

  37. Ilias Tsapsidis

    Great article, did exactly what I needed. Many Thank!

  38. Rone

    Hi Bharat

    i have 100 user need to forward thier external emails to outside email i have created 100 contact, can you please help in automate the forwarding steps.

    yhanks

  39. Brian

    Hi I tried this and setup a forward to my gmail address. I never get the email. If I set it to an internal accountworks fine. Any ideas?

    1. Bharat Suneja Author

      Anything in message tracking log? SMTP Send log?

  40. Chris

    Hi guys same issue as Brian up there. I tried setting this up to forward to gmail and it never arrives. What could be the issue?

  41. WK

    I had to restart the Exchange Transport service to get it to work.

    1. Bharat Suneja Author

      It’s not required to restart transport service to make this work.

  42. Mitchell

    We’re moving from a Sendmail server to an Exchange 2013 configuration. On the sendmail system, I have a couple of addresses that are not active A/D accounts, and I’d like to avoid creating A/D accounts for them. However, I’d still like to forward any incoming messages to these non A/D accounts to other external addresses. Is there a process I can use to handle this? Or is it required that the accounts exist in A/D before I can forward their respective messages?

  43. Steffen

    Hello,

    I want to disable forwarding only to external adresses. I unchecked the “Allow automatic forwarding” in the Hub Transport to “*” Remote Domain. I run Exchange 2010.
    But now, I cannot forward mails to internal addresses. I only want to disable it for external.

    Is there a solution for my problem?

    Thanks :)

    1. Bharat Suneja Author

      If you disable forwarding to remote domains, it should no disable forwarding to internal recipients.

  44. […] If you need to forward mail to an external email address, you can’t simply type the address in the Forward to: field on the Delivery Options page. A … I run Exchange 2010. But now, I cannot forward mails to internal addresses. I only want to disable it for external. Is there a solution for … – read more […]

  45. Ysauro Rossette

    Enabling this causes waste espace in the drive where is mounted Exchange 2007? and can delete “forwarded copy of the emails to external accounts in my server?
    Thansk for your help

Leave a Comment

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