[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

Exchange 2013 forwarding to external smtp address not working

Hi all,

Firstly - grrrr at MS for making this so difficult!!

I am trying to forward email from a user to her external email address. I have used the following cmd

Set-Mailbox -Identity "FirstName Surname" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress name@hotmail.com

I do not receive any erros but for it just is not working.

I have tried forwarding to an email address of mine also but this does not work.

1. is there a cmd to see if the forwarding has been set?
2. may I be missing something totally obvious which is causing it not to work?

Thanks
gareth
0
gareth629
Asked:
gareth629
  • 2
1 Solution
 
gareth629Author Commented:
Furhter info

I have tested through the GUI to forward to mailbox, this worked.

I then rerun the cmd and received the following error

Warning: Before your forwarding settings can take effect, yu need to contct your helpdesk and ask them to turn off the forwarding your administrator previoulsy set.

I then ran it again, I received the same error plus being told that the command ran successfully but no changes were made.

ty
g
0
 
Stelian StanCommented:
Try this steps: http://www.techieshelp.com/exchange-2013-forward-email-to-external-contact/#
Also the steps are:
- Create a contact in the Exchange 2013 "Admin Center".
- Then if you want keep a copy of that email, then run:
Set-Mailbox -Identity "User1" -DeliverToMailboxandforward $True -ForwardingSMTPAddress "user@externaldomain.com" -ForwardingAddress "user@externaldomain.com"

Open in new window

- If you don't want to keep a copy of forwarded email then:
Set-Mailbox -Identity "User1" -DeliverToMailboxandforward $False -ForwardingSMTPAddress "user@externaldomain.com" -ForwardingAddress "user@externaldomain.com"

Open in new window

0
 
gareth629Author Commented:
thanks Clonyxlro.

out of curiosity, why is it required to tell the system the external address twice??

thanks
g
0
 
dtisoftCommented:
The "accepted solution" is wrong and the referred web page is seriously incomplete.

Both parameters (ForwardingAddress and ForwardingSmtpAddress), should NOT be used in the same command;

- The use of the parameter ForwardingSmtpAddress is used along with Remote Domain Configuration settings.  In fact, it will only work if AutoForwardEnabled is true in the Remote Domain Configuration settings. (see "Set-Remotedomain -AutoForwardEnabled")

- The use of the parameter ForwardingAddress needs to be used along with a Contact to send to an external address.  (usual MS-Exchange method of creating a contact with an external SMTP address, and forwarding to that contact) --  Please note that since only Mailboxes (no Contacts) are visible in the Mailbox/Delivery Options in the EAC, the use of the Powershell becomes mandatory.


As an example, with the following commands, ForwardingSmtpAddress will work:
set-remotedomain Default -AutoForwardEnabled $true
set-mailbox {targetmailbox} -delivertomailboxandforward $false -ForwardingSmtpAddress {destination@externaldomain.com}

Open in new window


PS: The following link is particularly interesting:  http://hasslauer.com/blog/?p=156

__

Best regards,

M.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

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