Solved

Mailbox unavailable. The server response was: 5.7.1 Unable to relay - Sending email to Exchange HT/CAS behind Windows NLB

Posted on 2016-07-19
7
193 Views
Last Modified: 2016-08-04
Hi All,

I'm having problem with my server sending email out to external recipient.

Here's my details of Exchange 2010 VMs:

smtp.domain.com - 10.1.1.89 [WIndows NLB for load balancing the HT&CAS servers]
PRODMAIL01-VM - 10.1.1.90 [Hub Transport & Client Access Server]
PRODMAIL02-VM - 10.1.1.91  [Hub Transport & Client Access Server]

When I execute the below Powershell code from the server, the results are varying:


Send-MailMessage -From "sender@server.domain.com" -To "external-recipient@gmail.com" -Subject "Testing email relay using SMTP FQDN address" -Body "This is the body of email..." -SmtpServer "smtp.domain.com" -DeliveryNotificationOption OnFailure -Verbose

Result: Send-MailMessage : Mailbox unavailable. The server response was: 5.7.1 Unable to relay

But when I modify tthe SMTP server to use the HT/CAS server name, all is good:

Send-MailMessage -From "sender@server.domain.com" -To "external-recipient@gmail.com" -Subject "Testing email relay using SMTP FQDN address" -Body "This is the body of email..." -SmtpServer "PRODMAIL01-VM.domain.com" -DeliveryNotificationOption OnFailure -Verbose
and
Send-MailMessage -From "sender@server.domain.com" -To "external-recipient@gmail.com" -Subject "Testing email relay using SMTP FQDN address" -Body "This is the body of email..." -SmtpServer "PRODMAIL02-VM.domain.com" -DeliveryNotificationOption OnFailure -Verbose

I can receive the email with no issue in the GMail mailbox.

So any help would be greatly appreciated.

Thanks,
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 25

Accepted Solution

by:
-MAS earned 250 total points
ID: 41720087
Do you have a internal to external NAT configured on firewall?
If not please configure and check. i.e. NLB IP to external.

I guess you will have to add the mac address of the NLB cluster.
1
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 41720090
MAS, additional information:

I have added the IP address subnet of the server 10.1.1.0/24 in both HT/CAS External Receive Connector.

Cluster Operation is Multicast.
Cluster IP and Ports
Relay settings
Relay Settings 2
is that not enough ?
0
 
LVL 19

Assisted Solution

by:suriyaehnop
suriyaehnop earned 125 total points
ID: 41720114
Are you able to telnet smtp.domain.com 25? Do you able to see the banner
If you use OWA instead if powershell to send out email, does the email send out?
If you want to send an email to external using powrshell, you have to customized the receive connector

http://exchangeserverpro.com/exchange-2013-configure-smtp-relay-connector/
1
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 41720116
Suriya,

Yes, I am able to use the OWA from outside of the office regularly. No issue using OWA.

My Exchange server is 2010 so the article is too new for me :-)

just that this new ERP system cannot send email using the SMTP.domain.com to external email address ?

But for internal email address from the copier, I can receive it to my internal mailbox.
0
 
LVL 19

Assisted Solution

by:suriyaehnop
suriyaehnop earned 125 total points
ID: 41720120
Yes, internal shall work. For external you have to modify the receive connector permission.

You may create a new connector and assign the correct permission, please refer to my url posted earlier
1
 
LVL 7

Author Comment

by:Senior IT System Engineer
ID: 41720144
Suriya, Does it means I need to create External relay (another Receive Connector) ?
because I rather not nodify the existing ones to avoid production issues.
0
 
LVL 30

Assisted Solution

by:Sudeep Sharma
Sudeep Sharma earned 125 total points
ID: 41723344
Hi ITSystemEngineer,

Are you sending the email through some other computer?

Connecting to your Edge server using telnet from the system which is not you CAS? Then what you are getting is fine. Except for the CAS server no other server should be able to relay the emails from your edge server. This is to stop the spam generating from the internal network due to some virus infection.

Thanks
Sudeep
1

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

756 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