Solved

Exchange 2013 - Forwarding To External SMTP Address Not Working

Posted on 2015-01-07
8
162 Views
Last Modified: 2015-01-19
Exchange 2013 install and trying to get email retained in the users Exchange mailbox *and* get a copy forwarded to an external email address. The external account is not receiving the email. It is hitting the internal Exchange mailbox for the user.

Stepped through the following article, entering this command via EMS:

=====
Set-Mailbox -Identity "test" -DeliverToMailboxAndForward $true -ForwardingSMTPAddress "test@external.com"

http://technet.microsoft.com/en-us/library/dd351134%28v=exchg.150%29.aspx
=====

My output to the above command shows:

ForwardingSmtpAddress: smtp:test@external.com
DeliverToMailboxAndForward: True

=====

Also reviewed this article which basically states the same PS command to enable this feature:
http://www.techieshelp.com/exchange-2013-forward-email-to-external-contact/

All looks simple enough, but is not working. Appreciate any assistance -
0
Comment
Question by:hwtech
  • 4
  • 3
8 Comments
 
LVL 20

Accepted Solution

by:
Satya Pathak earned 250 total points
ID: 40535723
0
 
LVL 63

Assisted Solution

by:Simon Butler (Sembee)
Simon Butler (Sembee) earned 250 total points
ID: 40535828
You need to check message tracking to see whether the message is actually being passed out or not.
The way that Exchange does automatically forwarding means that it is actually possible the messages get blocked by the remote server. The messages appear to be spoofed by Exchange, so if the original source of the message and the destination are using anti-spoofing measures, then the email can be rejected.
Message Tracking will tell you if Exchange is sending the email out or not.

Simon.
0
 

Author Comment

by:hwtech
ID: 40536425
On the message tracking, I'm not seeing it. If I check the internal acct *test@domain.com* for an email object that, when received on the account, is forwarded to external acct *test@external.com* using:

=====
Get-MessageTrackingLog -Sender test@domain.com -Recipients test@external.com
=====

.....I don't see the subject email listed in the resultant output.

If I generate a new email from internal *test@domain.com* and send to external *test@domain.com* - I DO see it in the resultant output using the above command.

Still learning my way around EX-2013, but can I assume that the forwarding function is not working?
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 40537633
Stepping back a bit...

If you run

get-mailbox -identity user.name | select identity, ForwardingSmtpAddress

Does the forward show?

If you send an email internally to the internal recipient, does it forward to the external recipient?

Simon.
0
 

Author Comment

by:hwtech
ID: 40537796
Was incorrect on the MessageTrackingLog command format noted earlier:

Get-MessageTrackingLog -Sender test@domain.com -Recipients test@external.com

The section highlighted in bold, was the internal Exchange user acct mailbox that was to do the forwarding (thinking this was the acct doing the actual forwarding to the external acct) - WRONG.

Changed that section of the command to the *originating* email acct that initiated the email  (my business account that I was doing all this testing with) - the remainder of the command syntax staying the same - I then get intelligible output to this issue.

There's a sequence of EventID's, with the last EventID of "DROP" - I've not gotten to the point of deciphering each of these ID's and their meaning, but I'm guessing DROP was doing exactly that, as the email was never received on the forwarded acct destination.

Per the linked articles in SatyaPathak, I wasn't clear if a mail-enabled contact required to be setup or not for each of these forwarding accts.  So I began with just this command which got me working:

set-remotedomain Default -AutoForwardEnabled $true

What I'm not clear on is if enabling this *remotedomain* has in any way compromised the security on this Exchange server.  Will need to do some reading.
0
 
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 40537950
"set-remotedomain Default -AutoForwardEnabled $true"

There is no need to run that command.

It would allow anyone in your environment to configure a rule to automatically forward an email to an external recipient. Not only is that a security risk, but also puts your server at risk of an email loop.

Simon.
0
 

Author Comment

by:hwtech
ID: 40538541
Appreciate that bit of info. I'll need to on/off that setting and test forwarding function operations. That's what got me working initially, at least that's what it appears.
0
 

Author Closing Comment

by:hwtech
ID: 40557660
Sorry for delay in followup. Closing as haven't had a chance yet for followup on this issue. Appreciate the assistance.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question