Solved

Exchange 2010 0 5.7.1 - Can't Relay and Client does not have permissions to send as this sender

Posted on 2014-04-18
9
1,867 Views
Last Modified: 2014-04-21
Hello,
I am having some issues getting my Exchange server to allow me to relay.  I am running a single stand-alone exchange 2010 server.

The way this works - I have my voice mail server (Windows server 2012).  When a VM is left, an email is generated and sent to a defined address in my PBX.  As long as the user is in my email domain, no problem.  The problem arises when I attempt to send to an external domain (testing with gmail).

So, the VM server utilizes IIS 6.0 and the SMTP virtual server.  The basic setup for the PBX is to set a SmartHost in the outbound delivery.   Here I define my Exchange server.

For relay, I decided NOT to just open up the relay, but to authenticate.  Easy enough. I've created a whole new AD account and created a mailbox for it.  In IIS 6 on the VM server, I created new remote domain "gmail.com" and edited ti's properties.  I entered my Exchange server as the smart host.  I went ahead and setup integrated Windows authentication and put in the username and password of the newly created user.

Runing my tests result in a 5.7.1 user does not have permissions to send to this mailbox, and I can confirm that we are authenticating (by running wireshark on both the VM server and the exchange server).
0
Comment
Question by:JamesonJendreas
[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
  • 4
  • 4
9 Comments
 
LVL 25

Expert Comment

by:-MAS
ID: 40008839
Try ticking anonymous users in the defaut receive connector properties
0
 
LVL 1

Author Comment

by:JamesonJendreas
ID: 40008858
I'll give it a go, but I would perfer to authenticate.  Note, I am getting pass authentication

Here is the TCP stream via wireshark (note I have scrubbed out my domain and other sensitive information)


220 cas.DOMAIN.SCRUBBED Microsoft ESMTP MAIL Service ready at Fri, 18 Apr 2014 07:53:50 -0700
EHLO HQ.DOMAIN.SCRUBBED
250-cas.DOMAIN.SCRUBBED Hello [<VM Server IP>]
250-SIZE 10485760
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH NTLM LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
AUTH NTLM [SCRUBBED]==
334 [AUTH SCRUBBED]==
235 2.7.0 Authentication successful
MAIL FROM:<USER.SCRUBBED@DOMAIN.SCRUBBED> SIZE=1138
250 2.1.0 Sender OK
RCPT TO:<MYTEST@gmail.com>
250 2.1.5 Recipient OK
BDAT 1138 LAST
Received: from mail pickup service by HQ.DOMAIN.SCRUBBED with Microsoft SMTPSVC;
. Fri, 18 Apr 2014 07:53:51 -0700
thread-index: Ac9bFgKvUbmIVIogSfi6ttO7Hn8TLg==
Thread-Topic: ShoreTel voice message from Jameson Jendreas, 6062 for mailbox 6094
From: "ShoreWare Voice Mail" <USER.SCRUBBED@DOMAIN.SCRUBBED>
To: <MYTEST@gmail.com>
Subject: ShoreTel voice message from Jameson Jendreas, 6062 for mailbox 6094
Date: Fri, 18 Apr 2014 07:53:50 -0700
Keywords: {"SHORETEL_INFO":"VMSync","DN":"6094","ID":"7WCES8C66","WAV":false,"GUID":"1367ea77-c79d-4e05-ad2c-128276c59f74"}
Message-ID: <B9B52EA3D2D04B229DC5F6A3342E9EDD@DOMAIN.SCRUBBED>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.2.9200.16384
X-OriginalArrivalTime: 18 Apr 2014 14:53:51.0155 (UTC) FILETIME=[02CED030:01CF5B16]
You have received a voice mail message from Jameson Jendreas, 6062 for mailbox 6094.
Message length is 00:00:02. Message size is 19 KB.
550 5.7.1 Client does not have permissions to send as this sender
QUIT
221 2.0.0 Service closing transmission channel
0
 
LVL 1

Author Comment

by:JamesonJendreas
ID: 40008871
Actually, Anonymous Users is already checked.
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 25

Expert Comment

by:-MAS
ID: 40008882
0
 
LVL 1

Author Comment

by:JamesonJendreas
ID: 40008896
So that was my next thought actually, essentially I need to add another NIC to my exchange server.  It's a virtual server, so while that isn't hard, it'll require going through extra change control so I can't do it right now.  Once approved, then that'l likely be the solution.
0
 
LVL 25

Expert Comment

by:-MAS
ID: 40008933
But you dont need to wait for the second NIC.
You can configure the current IP and try without user work interruption. if its successful then do as you wish.

Furthermore you are allowing the IP of the other server not the exchange server.
So it doesn't make difference if you do it now or later as you are allowing a non-mail server to relay through your mail server
0
 
LVL 3

Accepted Solution

by:
bmurray-vb earned 250 total points
ID: 40009423
If you already have anon checked on that connector, make sure you run this EMS command to seal the deal.

Get-ReceiveConnector "Name Of The Connector" | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "Ms-Exch-SMTP-Accept-Any-Recipient"
0
 
LVL 25

Assisted Solution

by:-MAS
-MAS earned 250 total points
ID: 40010014
@bmurray-vb
The above command is there in the URL provided.

Anyway thanks for highlighting the command as that is part which does the main job.
0
 
LVL 1

Author Comment

by:JamesonJendreas
ID: 40012624
OK - I ended up going about this a little different (and still not too sure why this works this way and not using self sending).

I ended up creating a new account (NOT the account with the mailbox).  I gave that account send-as rights for the email box.  I then setup my SMTP virtual server on the voice mail server to authenticate using the newly created account that had send-as rights for the mailbox,

It makes little sense to me as why if I attempt to authenticate using the actual user account tied to the mailbox, especially since I checked to ensure it had self-send permissions.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2012 R2 SChannel Error 57 100
Master DC completely died 15 75
Migrate calendar from 2003 to 2016 12 48
script to trace the email in Office365 4 52
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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