[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

forwarding email of users to external accounts

Hi,
I need configure the forwarding of mails of a user to a external account.
How do it in Exchange 2010 Server, not in Outlook Client? Without a rule transport for each user, no create contacts, only in powershell o EMC.
I have to do it with 300 users (one to one) and I need know the faster option.
0
techosi
Asked:
techosi
  • 5
  • 2
  • 2
  • +1
2 Solutions
 
Alan HardistyCo-OwnerCommented:
@techosi,

This can be achieved using Powershell to automate the 300 accounts you have to amend by amending the following script:

Set-Mailbox -Identity "Username" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress user@externaladdress.com

If you copy / paste that into notepad, amend the "Username" and the "user@externaladdress.com" for each user, you can then copy / paste the entire notepad content into Powershell and stand back while it gets to work.

The "username" part can also be the actual users email address e.g., user@yourdomain.com

For reference:
http://technet.microsoft.com/en-us/library/bb123981(v=exchg.141).aspx

Alan
0
 
techosiAuthor Commented:
Thanks Alan

I received error in field -ForwardingAddress , if in this place I put -ForwardingsmtpAddress?
0
 
Alan HardistyCo-OwnerCommented:
Please check my initial comment - I've amended it since it was initially posted.

Alan
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
techosiAuthor Commented:
Yes, done as indicated. but no I´m receiving the forwarding to the external account :(
0
 
Alan HardistyCo-OwnerCommented:
Please restart the Microsoft Exchange Transport Service and try again.
0
 
Alan HardistyCo-OwnerCommented:
Makes sure you also run the following command:

Set-RemoteDomain -Identity Default -AutoForwardEnabled $true

Change Default to match the name of your Remote Domain Name (which is Default by default!).
0
 
Diwakar SharmaCommented:
In a text file add all display names or aliases and run below command.

get-content "path of input file" | Set-Mailbox -ForwardingAddress user@externaladdress.com -DeliverToMailboxAndForward $true

Make sure allow automatic forward in default remote domain tab is checked.
0
 
jerseysamCommented:
Create a new contact (external email address)

Then go to exchange manager.
Recipients,
Mailboxes,
Choose the person you wish to forward mails for,
Properties,
Delivery options
Enable forwarding

Then browse tot eh new contact you have set up (the external email address)
0
 
Diwakar SharmaCommented:
Create a contact for external user user@externaladdress.com

In a text file add all display names or aliases whose forwarding need to be set and run below command.

get-content "path of input file" | Set-Mailbox -ForwardingAddress user@externaladdress.com -DeliverToMailboxAndForward $true

Make sure allow automatic forward in default remote domain tab is checked.
0
 
Alan HardistyCo-OwnerCommented:
You don't need to create an external contact - it can be done via Powershell as long as the AutoForward setting is set.

Alan
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now