Quantcast
Channel: Exchange Server Development forum
Viewing all 7132 articles
Browse latest View live

Email Delivery Delay

$
0
0

Hi All

We are using single box exchange server 2010. At present users are complaining that they are not been able to receive internal emails. After restarting the server all users received emails. C drive is of 30 GB partition which has 1.82 GB free space. Is it related to space issue on C drive? Is there any way to make some space to let it work.

Please help in this regards


[EWS] Search archive

$
0
0

I am investigating the best method to search the archive mailbox using EWS.

My first idea was to use FindFolder with IdOnly, Traversal=Deep and ParentFolderId=archivemsgfolderroot, then use the result to issue a FindItem call to perform a paged search.
I have some concerns about the Performance though, as there can easily be several 100 Folders. I also dislike having to create two web Service calls.

Search Folders seem to be another Option, but look like they would be more for a repeated/persistent search.

Any Option i am overlooking here?
Server Version would be 2013, but 2010 might also be a target, depending on feasability.


Need attachment file name which had sent or received in entire days

$
0
0

Hi Friends

I need your help for getting information on exchange mailbox user who had sent or received  mails along with attachment file name for entire day.

Basically I get the information of entire mails which had received or sent in all days but I am unable to get the information about attachment file name.

Please do the needful.


Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

Publishing Exchange 2013 / 2007 Coexistense with TMG and Kerberos Contrained Delegation for Outlook Anywhere

$
0
0

We are in the process to migrate from Exchange 2007 CCR Cluster to Exchange 2013 DAG. We publish OWA, EAS and Outlook Anywhere and use a TMG for that purpose.

Now we would like to publish Outlook anywhere (OA) with Ntlm and Kerberos Constrained Delegation on the TMG, where we do a Preauthentication. This works fine for Mailboxes on EX13, but not for EX07 MBX.

Is there any way that we can do that, I mean publishing OA with NTLM (Kerberos Constrained Delegation) on the TMG for Mailboxes on EX13 and on EX07.

Basic Authenticaton works in this OA coexistence szenario but not NTLM with Kerberos.

Any advice would be appreciated.

Best regards - Bueschu


Bueschu

Connecting remotely

$
0
0

I am doing a project with Active Directory and I am having trouble:

In Visual Studio I can create a new account in Active Directory successfully. After that, I want to enable email on a Exchange Server. That works when both the program and that Exchange server are on the same computer.

But when I install my program on a User Computer and the Exchange Server is on another computer, I can not connect to the Exchange Server.

I found on Google a possible solution that I don't fully understand:

PSCredential credential = new PSCredential("Administrator@domain.local", securePwd);
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri
      ("http://exchangetestbox:5985/wsman"),"http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential);
connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Kerberos;

Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);

How do I get the URI variable? I also do not understand: liveIdconnectionUri

Exchange 2013 Installation won't start

$
0
0

I got SBS 2011 Server with installed domain and Exchange 2010 installed, named "SBS".

I have 2nd DC installed on 2012 R2 Standard in the same domain, named "server-04". It is completely updated.

Both DCs work OK, replicate to each other with no issues.

I am trying to install Exchange 2013 SP1 as a second Exchange server (in order later to get rid of the first one - 2010) on a 2nd DC "server-04".

To install Exchange, I use an admin account that got membership in: Domain Admins, Enterprise Admins, Schema Admins, Organizational Management and Exchange Servers. However, Prerequisite Analysis stops the installation with an issue. I tried to restart the server, but the same issue came up again. The issue is:

"Error:
You must be a member of the 'Organization Management' role group or a member of the 'Enterprise Admins' group to continue.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.GlobalServerInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedBridgeheadFirstInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedCafeFirstInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedFrontendTransportFirstInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedMailboxFirstInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install or upgrade the first Client Access server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedClientAccessFirstInstall.aspx

Error:
You must use an account that's a member of the Organization Management role group to install the first Mailbox server role in the topology.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.DelegatedUnifiedMessagingFirstInstall.aspx

Error:
Setup encountered a problem while validating the state of Active Directory: Active Directory operation failed on . The supplied credential for 'ABCS\abcs' is invalid.  See the Exchange setup log for more information on this error.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.AdInitErrorRule.aspx

Error:
Either Active Directory doesn't exist, or it can't be contacted.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.CannotAccessAD.aspx

Warning:
Installing Exchange Server on a domain controller will elevate the permissions for Exchange Trusted Subsystem to domain administrators.
For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.WarningInstallExchangeRolesOnDomainController.aspx
"

Can someone advise here, please?

Michael

Stamping archive tag on specific folder via EWS

$
0
0

Hi,

I'm configuring an retentiontag for archiving a specific folder after 2 days.
I'm performing this via EWS.

The goal is to stamp a specific folder (called "TESTFOLDER" that's available within every mailbox), with a personal tag I created.

So far I've modified the script I've found here :
http://blogs.msdn.com/b/akashb/archive/2012/12/07/stamping-archive-policy-tag-using-ews-managed-api-from-powershell-exchange-2010.aspx?CommentPosted=true#commentmessage

1) created a personal tag called "1_Day_move_to_Archive"
2) Changed some settings of the code (EWS version, paths, etc.)
3) configured my account with impersonation rights. (to my own mailbox)
4) Inserted the GUID of the created tag into the script
5) Changed this value "$oFolder.SetExtendedProperty($RetentionFlags, 16)" to "$oFolder.SetExtendedProperty($RetentionFlags, 8)"
16 specifies ExplicitArchiveTag, 8 specifies personaltag >> I tried both settings here

Now when I run the script I don't get any errors thrown, and I get the prompt that the policy is stamped.
When I check afterwards via outlook/owa, I don't see any change however.

I already forced the folder assistant to run, but it also doesn't change anything.

Anyone knows what might be wrong?

 

 


# The script requires the EWS managed API, which can be downloaded here:
# http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1
# This also requires PowerShell 2.0
# Make sure the Import-Module command below matches the DLL location of the API.
# This path must match the install location of the EWS managed API. Change it if needed.

[string]$info = "White"                # Color for informational messages
[string]$warning = "Yellow"            # Color for warning messages
[string]$error = "Red"                 # Color for error messages
[string]$LogFile = "C:\Temp\Log.txt"   # Path of the Log File

function StampPolicyOnFolder($MailboxName)
{
 Write-host "Stamping Policy on folder for Mailbox Name:" $MailboxName -foregroundcolor $info
 Add-Content $LogFile ("Stamping Policy on folder for Mailbox Name:" + $MailboxName)

#Change the user to Impersonate
 $service.ImpersonatedUserId = new-object Microsoft.Exchange.WebServices.Data.ImpersonatedUserId([Microsoft.Exchange.WebServices.Data.ConnectingIdType]::SmtpAddress,$MailboxName);

 #Search for the folder you want to stamp the property on
 $oFolderView = new-object Microsoft.Exchange.WebServices.Data.FolderView(1)
 $oSearchFilter = new-object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.FolderSchema]::DisplayName,$FolderName)
 $oFindFolderResults = $service.FindFolders([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot,$oSearchFilter,$oFolderView)

if ($oFindFolderResults.TotalCount -eq 0)
 {
       Write-host "Folder does not exist in Mailbox:" $MailboxName -foregroundcolor $warning
       Add-Content $LogFile ("Folder does not exist in Mailbox:" + $MailboxName)
 }
else
 {
       Write-host "Folder found in Mailbox:" $MailboxName -foregroundcolor $info

       #PR_ARCHIVE_TAG 0x3018 – We use the PR_ARCHIVE_TAG instead of the PR_POLICY_TAG
       $ArchiveTag = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition(0x3018,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::Binary);

       #PR_RETENTION_FLAGS 0x301D
       $RetentionFlags = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition(0x301D,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::Integer);

       #PR_ARCHIVE_PERIOD 0x301E - We use the PR_ARCHIVE_PERIOD instead of the PR_RETENTION_PERIOD
       $ArchivePeriod = New-Object Microsoft.Exchange.WebServices.Data.ExtendedPropertyDefinition(0x301E,[Microsoft.Exchange.WebServices.Data.MapiPropertyType]::Integer);

       #Change the GUID based on your policy tag
       $ArchiveTagGUID = new-Object Guid("{7d71ddd7-061a-473e-8b92-033e126bbcb0}");

       #Bind to the folder found
       $oFolder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$oFindFolderResults.Folders[0].Id)

       #Same as that on the policy - 16 specifies that this is a ExplictArchiveTag -- EDIT (also tried with value 8 > personal tag)
       $oFolder.SetExtendedProperty($RetentionFlags, 16)

       #Same as that on the policy - Since this tag is disabled the Period would be 0 -- We choose 1, since we want to archive after 1 day
       $oFolder.SetExtendedProperty($ArchivePeriod, 2)

       $oFolder.Update()

       Write-host "Retention policy stamped!" -foregroundcolor $info
       Add-Content $LogFile ("Retention policy stamped!")
 }

 $service.ImpersonatedUserId = $null
}


#Change the name of the folder. This is the folder the properties will be stamped on.
$FolderName = "TESTFOLDER"

Import-Module -Name "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll"

$service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2010_SP1)

# Set the Credentials
$service.Credentials = new-object Microsoft.Exchange.WebServices.Data.WebCredentials("MyAccount","MyPassword","MyDomain")

# Change the URL to point to your cas server
$service.Url = new-object Uri("https://owa.customer.int/EWS/Exchange.asmx")

# Set $UseAutoDiscover to $true if you want to use AutoDiscover else it will use the URL set above
$UseAutoDiscover = $false

#Read data from the UserAccounts.txt.
#This file must exist in the same location as the script.

import-csv UserAccounts.txt | foreach-object {
    $WindowsEmailAddress = $_.WindowsEmailAddress.ToString()

    if ($UseAutoDiscover -eq $true) {
        Write-host "Autodiscovering.." -foregroundcolor $info
        $UseAutoDiscover = $false
        $service.AutodiscoverUrl("$WindowsEmailAddress", {$true})
        Write-host "Autodiscovering Done!" -foregroundcolor $info
        Write-host "EWS URL set to :" $service.Url -foregroundcolor $info

    }
    #To catch the Exceptions generated
    trap [System.Exception]
    {
        Write-host ("Error: " + $_.Exception.Message) -foregroundcolor $error;
        Add-Content $LogFile ("Error: " + $_.Exception.Message);
        continue;
    }
    StampPolicyOnFolder($WindowsEmailAddress)
}

 

PowerShell-EWS How to use .Forward Method of EmailMessage Class

$
0
0

Hello, 

im new to PowerShell and EWS and would like to know how to forward an E-Mail with the .Forward Method of the EmailMessage Class.

Is it possible to also forward an Email with an FileAttachment?

I already have access to the Messages i want to forward but i cant figure out how to .Forward these Messages.

Thank you for your help

Greetings 

Ingo


Unable to find OWA logon failures in security log

$
0
0
After I fail to authenticate in Outlook Web App, I could not find the logon failure events from the security log in CAS 2010 server. Please advise.

Have an NTLM authentication

$
0
0

I am developing an application to receive email from Exchange server via EWS,  which is a NON-personal email.

Below is my source code and the logs,  any comments would be highly appreciated.

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);

service.setTraceEnabled(true);

ExchangeCredentials credentials = new WebCredentials(confMng.getUserID(), confMng.getPassword());
service.setCredentials(credentials);

service.setUrl(new URI("https://HOST/EWS/exchange.asmx"));
Mailbox delegateMailbox = new Mailbox( confMng.getEmail() );
   Folder inbox = Folder.bind( service, new FolderId( WellKnownFolderName.Inbox,
       delegateMailbox ) );   
   ItemView view = new ItemView(10);
   FindItemsResults<Item> findResults = service.findItems(inbox.getId(), view);

2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.canResponseHaveBody(int)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authorization required
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - enter HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Supported authentication schemes in the order of preference: [NTLM]
2014-11-27 22:47:46,151 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] INFO - NTLM authentication scheme selected
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Using authentication scheme: ntlm
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Authorization challenge processed
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authentication scope: NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCredentials(AuthScope)
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Retry authentication
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - Should NOT close connection in response to directive: Keep-Alive
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.isResponseAvailable()
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authenticating with NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCredentials(AuthScope)
2014-11-27 22:47:46,161 [org.apache.commons.httpclient.params.HttpMethodParams] DEBUG - Credential charset not configured, using HTTP element charset
2014-11-27 22:47:46,171 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - HttpMethodBase.addRequestHeader(Header)
2014-11-27 22:47:46,171 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Attempt number 1 to process request
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.execute(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequest(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.generateRequestLine(HttpConnection, String, String, String, String)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "POST /EWS/exchange.asmx HTTP/1.1[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.ExpectContinueMethod] DEBUG - enter ExpectContinueMethod.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - Adding Host request header
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.cookie.CookieSpec] DEBUG - enter CookieSpecBase.match(String, int, String, boolean, Cookie[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.addContentLengthRequestHeader(HttpState, HttpConnection)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Content-type: text/xml; charset=utf-8[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "User-Agent: ExchangeServicesClient/0.0.0.0[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Accept: text/xml[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Keep-Alive: 300[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Connection: Keep-Alive[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,181 [httpclient.wire.header] DEBUG - >> "Accept-Encoding: gzip,deflate[\r][\n]"
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,181 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Content-Length: 626[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Authorization: NTLM TlRMTVNTUAABAAAAARIAAAgACAAgAAAAAAAAAAAAAABBTUVSSUNBUw==[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "Host: autodiscover.mbusa.com[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.print(String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.writeLine()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[])
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.write(byte[], int, int)
2014-11-27 22:47:46,191 [httpclient.wire.header] DEBUG - >> "[\r][\n]"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.writeRequestBody(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.PostMethod] DEBUG - enter PostMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.getRequestContentLength()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.PostMethod] DEBUG - enter PostMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - enter EntityEnclosingMethod.hasRequestContent()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getRequestOutputStream()
2014-11-27 22:47:46,191 [httpclient.wire.content] DEBUG - >> "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><soap:Header><t:RequestServerVersion Version="Exchange2007"></t:RequestServerVersion></soap:Header><soap:Body><m:GetFolder><m:FolderShape><t:BaseShape>AllProperties</t:BaseShape></m:FolderShape><m:FolderIds><t:DistinguishedFolderId Id="inbox"></t:DistinguishedFolderId></m:FolderIds></m:GetFolder></soap:Body></soap:Envelope>"
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.methods.EntityEnclosingMethod] DEBUG - Request body sent
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.flushRequestOutputStream()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.readLine()
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,191 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "HTTP/1.1 401 Unauthorized[\r][\n]"
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseHeaders(HttpState,HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HeaderParser.parseHeaders(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readLine(InputStream, String)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpParser] DEBUG - enter HttpParser.readRawLine()
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Server: Microsoft-IIS/8.0[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "request-id: b329c930-2b63-4bf1-b61f-5c7f489f254b[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "WWW-Authenticate: Negotiate[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "WWW-Authenticate: NTLM[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "X-Powered-By: ASP.NET[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "X-FEServer: DE35S004EXC23[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Date: Fri, 28 Nov 2014 03:47:46 GMT[\r][\n]"
2014-11-27 22:47:46,361 [httpclient.wire.header] DEBUG - << "Content-Length: 0[\r][\n]"
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.processResponseHeaders(HttpState, HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpState, HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.readResponseBody(HttpConnection)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpConnection] DEBUG - enter HttpConnection.getResponseInputStream()
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodBase] DEBUG - enter HttpMethodBase.canResponseHaveBody(int)
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authorization required
2014-11-27 22:47:46,361 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - enter HttpMethodBase.processAuthenticationResponse(HttpState, HttpConnection)
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Using authentication scheme: ntlm
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.auth.AuthChallengeProcessor] DEBUG - Authorization challenge processed
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Authentication scope: NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Credentials required
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] DEBUG - Credentials provider not available
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpMethodDirector] INFO - Failure authenticating with NTLM <any realm>@autodiscover.mbusa.com:443
2014-11-27 22:47:46,362 [microsoft.exchange.webservices.data.EwsTraceListener] DEBUG - EwsResponseHttpHeaders - <Trace Tag="EwsResponseHttpHeaders" Tid="1" Time="2014-11-28 03:47:46Z">
401 null
WWW-Authenticate : NTLM
X-FEServer : DE35S004EXC23
Date : Fri, 28 Nov 2014 03:47:46 GMT
Content-Length : 0
request-id : b329c930-2b63-4bf1-b61f-5c7f489f254b
X-Powered-By : ASP.NET
Server : Microsoft-IIS/8.0


</Trace>

2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [microsoft.exchange.webservices.data.EwsTraceListener] DEBUG - EwsResponseHttpHeaders - <Trace Tag="EwsResponseHttpHeaders" Tid="1" Time="2014-11-28 03:47:46Z">
401 null
WWW-Authenticate : NTLM
X-FEServer : DE35S004EXC23
Date : Fri, 28 Nov 2014 03:47:46 GMT
Content-Length : 0
request-id : b329c930-2b63-4bf1-b61f-5c7f489f254b
X-Powered-By : ASP.NET
Server : Microsoft-IIS/8.0


</Trace>

2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
2014-11-27 22:47:46,362 [org.apache.commons.httpclient.HttpState] DEBUG - enter HttpState.getCookies()
microsoft.exchange.webservices.data.ServiceRequestException: The request failed. The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:62)
at microsoft.exchange.webservices.data.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:147)
at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:354)
at microsoft.exchange.webservices.data.ExchangeService.bindToFolder(ExchangeService.java:377)
at microsoft.exchange.webservices.data.Folder.bind(Folder.java:54)
at microsoft.exchange.webservices.data.Folder.bind(Folder.java:113)
at com.emc.launchpad.Main.main(Main.java:53)
Caused by: microsoft.exchange.webservices.data.ServiceRequestException: The request failed. The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:674)
at microsoft.exchange.webservices.data.SimpleServiceRequestBase.internalExecute(SimpleServiceRequestBase.java:50)
... 6 more
Caused by: microsoft.exchange.webservices.data.HttpErrorException: The remote server returned an error: (401)Unauthorized
at microsoft.exchange.webservices.data.ServiceRequestBase.getEwsHttpWebResponse(ServiceRequestBase.java:724)
at microsoft.exchange.webservices.data.ServiceRequestBase.validateAndEmitRequest(ServiceRequestBase.java:669)
... 7 more

Exchange Online Management cmdlets return Display Name instead of Identity

$
0
0

Hello,

We've got an issue when managing our Exchange Online environment using remote PowerShell.

We use Exchange management cmdlets to manage Exchange Online mailboxes. When we run, for example, theGet-MailboxPermission or Get-RecipientPermission cmdlets, it returns Display Names of the users with mailbox rights. Previously, when we initially tested remote PowerShell with Exchange Online, the cmdlets returned theIdentity property, which is unique and worked well for us. However, currently the cmdlets return theDisplay Name, which is not unique and causes us issues. For example, in our environment there can exist two or more users with the same Display Name (see highlighted on the screenshot):


In cases when only one of the users is granted a permission, we cannot distinguish programmatically, which of the 2 users this is. Also, we cannot run cmdlets, such asGet-SecurityPrincipal, to get more info about the principals who are granted the permission.

Is it possible to get the old behavior of the cmdlets back so that they return the uniqueIdentity instead of the non-unique Display Name? Or how do we workaround this?

EWS Digitally signed emails have empty body after upgrade from Exchange 2007 SP1 to Exchange 2013

$
0
0

we have a problem with upgrade from Exchange 2007 SP1 to Exchange 2013. We are using ews to get emails from specific folder. Code looks like this:

privateList<Item>GetAllItems(string folderId){Folder inbox =Folder.Bind(m_Exchange, folderId);List<Item> m_ListOfItems =newList<Item>();ItemView itemView =newItemView(int.MaxValue);FindItemsResults<Item> items = inbox.FindItems(itemView);foreach(Item item in items){
            item.Load();
            m_ListOfItems.Add(item);}return m_ListOfItems;}

Our problem with Exchange 2013 is when the email is digitally signed, in this case email body is empty. For other emails its just fine for both plaintext/html email types. Also this code works well even for digitally signed emails on Exchange 2007 SP1.

Is anybody familiar with this problem?

Thanks.

Outlook Anywhere Exchange 2003

$
0
0

Does anyone have the rpcnofrontend.zip file or the executable so that I can setup Outlook Anywhere on Exchange 2003 without having to dive into the registry myself? Apparently this tool has worked wonders but it appears as though it has since been taken down. I need to activate Outlook Anywhere successfully so that the migration of mailboxes from Exchange 2003 to Outlook 365 can move successfully. (apparently, Outlook Anywhere has to be fully functional for this to happen).

Client does not have permission to send as this sender

$
0
0

We have a CRM web application hosted on a server. When a user launches the site, the site provides facility to the customer to send the query into the system using the email. The website provides the filed for the customer to enter customer’s email ID. The customer email address is used by the system to send the response back.

 

We are doing a new implementation for SMTP authentication for the emails send into the contact center using a public website. The flow of the system to use the SMTP authentication is:

  1. Customer launches the website.
  2. Customer chooses to send the his/her query using the email from the website.
  3. Website asks for the customer’s address, so that the query can be answered back to the provided email address say customer@gmail.com .
  4. We have an account configured on the MS-Exchange 2010 say support@system.com
  5. So before sending the email the website system performs the SMTP Authentication using the credentials of support@system.com  
  6. Now the system creates the email MIME using the email address provided by the customer on the website i.e. say customer@gmail.com.
  7. After successful SMTP authentication for the address   support@system.com system starts sending the email.
  8. Here we are facing the issue:

While sending the email if the customer’s address is also configured on the same exchange used by the system i.e. exchange on support@system.com is configured  then website system is able to relay or send the email.

If the customer’s address is not configured on the same exchange used by the system where support@system.com is configured then the system is not able to send the email it results into the error of: “Client does not have permission to send as this sender customer@gmail.com.

 

In short if the website performs the  SMTP authentication then it requires the FROM address configured on the same exchange used for the smtp authentication in the email MIME from address.

 

Configuration tries:

  1. As suggested on various forums and at Microsoft tech group we tried following things but no success:
    1. Checked the checkbox “Authenticated Users”  selected “Accept any Sender”.
    2. Created a new relay and given the IP of the machine hosting the website or trying to send the email
    3. Run the command from the EMC “Exchange management console”

Add-AdPermission -Identity "Default Receive Connector" -User "NT AUTHORITY\Authenticated Users" -ExtendedRights ms-Exch-SMTP-Accept-Any-Sender.

 

 

How to configure Outlook Anywhere for 2 node DAG exchange servers

$
0
0

Hello All,

I need help in configuring Outlook Anywhere for Exchange server 2 node DAG.

I have formed the DAG with Exch1 & Exch2. DAG name is dag.bits.com and Internet Facing DNS url is dag.bits.com.

please suggest


TheAtulA


Exchange Server 2013 REST EWS service

$
0
0

Exchange Server 2013 introduces REST EWS service which enables us to retrieve user's photo either from exchange or AD server.

Does it provides this functionality only? Does REST EWS service provide APIs to pull data or items from inbox, calendar, journal and Notes etc?

If yes, then it is not documented on MSDN site.

Can you please confirm if REST EWS service provides all the API which SOAP based EWS service provides? Or does it provide only limited functionality?


EWS Get Unique Emails Every Time i synchronize with inbox Exchange Server

$
0
0

Hi Team,

I want to store top 10 emails in my data base for reference after regular interval of time.

I have a question that how can i check if new getting email already exist in my database, can I use "id"  property of Email message for the conversation, IS this ID is unique for every email message? Or any other parameter that which distinguish one email from other?


Thanks

Gurbax

EWS: delete a meeting occurrence as an attandee: How to send notification?

$
0
0

I have the users Organizer and Attandee.

Organizer creates an appointment/meeting and invites Attandee, who accepts.

Now Attandee deletes the Meeting. In Outlook he gets a popup asking if he wants to notify Organizer.

In EWS i can use DeleteItem with the CalendarItemCreateOrDeleteOperationType, for example SendOnlyToAll.
This works when Organizer calls it. When Attandee calls the Operation there are no Messages sent.

As a second possibility i can use the CreateItem Operation with a CancelCalendarItemType.
The API states "The CancelCalendarItemType class is only applicable to the organizer's calendar item." - so this does not seem to work as Attandee either.

What can i use to notify the Organizer about me (Attandee) not attanding the meeting?
I thought maybe i could create a DeclineItem, but that takes a ReferenceItemId, and we only have the Master ID and OccurrenceIndex. Or would we have to use a GetItem Operation with the Master id and the OccurenceIndex to create a DeclineItem?

I would be thankful for some enlightenment.

Existing Exchange 2010 environment, Exchange 2013 install / upgrade fails

$
0
0

received the following error during the middle of the exchange 2013 installation...

Setup Progress

Step 8 of 15: Mailbox Role: Transport service 100%

Error:
The following error was generated when "$error.Clear(); 
          if ($exsSid -eq $null -or $exsSid -eq "")
          {
            $exsSid = get-ExchangeServerGroupSID -DomainController $RoleDomainController
          }
          start-setupservice -ServiceName MSExchangeADTopology -ServiceParameters $exsSid,$RoleDomainController
        " was run: "Service 'MSExchangeADTopology' failed to reach status 'Running' on this server.".

Only option is to EXIT

Any advice would be appreciated....  Thanks



-mth-

How to Edb to pst?

$
0
0
Hi,

I have the necessity to recover a .edb file into a .pst or other format file, I have only the hard disk with the file.

There is a way to extract the mail from the edb file? Like a trial program or an utility?

Thank you!
Viewing all 7132 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>