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

How to search emails from custom folder of mailbox users in Exchange Online Server using EWS SOAP operations

$
0
0

Hi Glen,

I have written python code to connect to exchange online server to find out emails from folders like (inbox, drafts and so on) of mailbox user. For searching emails in custom folder on users mailbox, my request SOAP xml does not work.

My request xml is as below

<?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:xsd="http://www.w3.org/2001/XMLSchema">

                <soap:Body>

                    <FindItem Traversal="Shallow" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">

                        <ItemShape>

                            <BaseShape xmlns="http://schemas.microsoft.com/exchange/services/2006/types">IdOnly</BaseShape>

                        </ItemShape>

                        <IndexedPageItemView MaxEntriesReturned="500" BasePoint="Beginning" Offset="0" />

                        <Restriction>

                                <And xmlns="http://schemas.microsoft.com/exchange/services/2006/types">

                                    <IsGreaterThanOrEqualTo xmlns="http://schemas.microsoft.com/exchange/services/2006/types">

                                    <FieldURI FieldURI="item:DateTimeCreated"  />

                                    <FieldURIOrConstant>

                                        <Constant Value="2013-10-20T00:00:00Z" />

                                    </FieldURIOrConstant>

                              </IsGreaterThanOrEqualTo>

                                    <IsLessThan xmlns="http://schemas.microsoft.com/exchange/services/2006/types">

                                    <FieldURI FieldURI="item:DateTimeCreated" />

                                    <FieldURIOrConstant>

                                        <Constant Value="2013-11-28T00:00:00Z" />

                                    </FieldURIOrConstant>

                              </IsLessThan>

                                 </And>

                          </Restriction>

                        <ParentFolderIds>

                            <DistinguishedFolderId Id="inbox" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"/>

                        </ParentFolderIds>

                    </FindItem>

                </soap:Body>

            </soap:Envelope>

This xml works perfectly for standard mailbox folders like inbox, drafts. But for finding out emails from custom mailbox folders, we need to write <FolderId Id="" ChangeKey=""> under ParentFolderIds tag in above xml. I tried this, but it is not working.

Can you please help me out here? Or what should be the request XML to search emails from a custom mailbox folder? Please suggest

Thanks,

Manoj


OOF Auto Reply "Loops" when addressed to internal invalid recipients

$
0
0

Out of Office Auto Reply "Loops" when addressed to internal invalid recipients - only when SMTP Connector is configured

Has anyone had this problem in the past and resolved? 


Steps to reproduce:

I added an SMTP Connector to route mail through a designated smart host. Previously I had no SMTP connectors configured.

The following scenario happens:

1- A NULL (Fake/Invalid) internal sender sends an email to an internal recipient (we have many of these in our organization that send mail, generally from a service or application, however, it's also a concern for spoofing sender addresses)

2- If the internal recipient has their out of office enabled, it responds to the null sender

The auto response addressed to the null sender causes a continuous loop (verified through message tracker).

Message Tracker Shows:

SMTP: Store Driver: Message Submitted from Store 

SMTP: Message Submitted to Advanced Queuing 
SMTP: Started Message Submission to Advanced Queue 
SMTP: Message Submitted to Categorizer 
SMTP: Message Categorized and Queued for Routing 
SMTP: Message Queued for Local Delivery 
SMTP: Message Delivered Locally to invalid address @ internal domain .com
SMTP: Store Driver Submitted Message to MTA 
SMTP: Store Driver: Message sumitted from Store 
SMTP: Message Submitted to Advanced Queuing 
SMTP: Started Message Submission to Advanced Queue 
SMTP: Message Submitted to Categorizer 
SMTP: Message Categorized and Queued for Routing 
SMTP: Message Queued for Local Delivery 
SMTP: Message Delivered Locally to invalid address @ internaldomain .com
** The above "loop" repeats approximately 6 times per minute. 

Problems: 

-There is no NDR generated

- The transaction log grows at an exponential rate as more and more "loops are created by users who have their out of office enabled and begin auto replying to the null senders.

- Additional CPU, memory and swap space is consumed.

- After a period of time, the mailstore dismounts for unknown cause - possibly due to file space, memory resources unavailable, cpu unavailable...

Temporary Resolution:

When the connector is deleted, the message sender immediately receives an NDR that the message was unable to be delivered and the "loop" stops.

Environment:

Server 2003 R2 Standard SP2

Exchange 2003 Enterprise


Migrate of exchange server 2003 to exchange server 2010

$
0
0
when migrate exchange server 2003 to exchange server 2010 , how can delete system attendant, system mailbox and SMTP?

Exchange server 2003 mobile clients can't connect.

$
0
0

I'm having problems getting emails from my exchange server 2003 to any mobile. (tried android and iphone as well as testexchangeconnectivity). This problem started when I realized we have a virus on one computer in the network and I installed Microsoft security essentials which found some non active viruses. (we have roaming desktop and docs, it was in a users desktop folder). I'm getting the following in event viewer under server activesync event 3005

Unexpected Exchange mailbox Server error: Server: [fs1.afirs.LOCAL] User: [Mody@Afirs.com] HTTP status code: [409]. Verify that the Exchange mailbox Server is working correctly.

as well as

Source LoadPerf event id 2006

LastCounter and LastHelp values of performance registry is corrupted and needs to be updated. The first and second DWORDs in Data Section are the original values while the third and forth DWORDs in Data Section are the updated new values.

For more information, see Help and Support Center at

Following is where testexchangeconnectivity loses it.

An ActiveSync session is being attempted with the server.
 Errors were encountered while testing the Exchange ActiveSync session.
 
Additional Details
 
Elapsed Time: 100299 ms.
 
Test Steps
 
Attempting to send the OPTIONS command to the server.
 The OPTIONS response was successfully received and is valid.
 
Additional Details
 
Headers received:
Pragma: no-cache
Public: OPTIONS, POST
Allow: OPTIONS, POST
MS-Server-ActiveSync: 6.5.7638.1
MS-ASProtocolVersions: 1.0,2.0,2.1,2.5
MS-ASProtocolCommands: Sync,SendMail,SmartForward,SmartReply,GetAttachment,GetHierarchy,CreateCollection,DeleteCollection,MoveCollection,FolderSync,FolderCreate,FolderDelete,FolderUpdate,MoveItems,GetItemEstimate,MeetingResponse,ResolveRecipients,ValidateCert,Provision,Search,Notify,Ping
Content-Length: 0
Date: Thu, 28 Nov 2013 02:25:00 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Elapsed Time: 92 ms.
Attempting the FolderSync command on the Exchange ActiveSync session.
 The test of the FolderSync command failed.
 
Additional Details
 
Exception details:
Message: The operation has timed out
Type: System.Net.WebException
Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.Exchange.Tools.ExRca.Extensions.RcaHttpRequest.GetResponse()
Elapsed Time: 100206 ms.

Exchange 2010 folder names

$
0
0

Hello

I am running Exchange Server 2010, in english of course. On of my client computers had Vista in english and Office in Czech language. Therefore the main folders in Outlook got czech names for inbox, outbox, sent,.. I need them to be named in english. So I reinstalled Office for english version and I thought it will be enough but it is still in czech. I have also tried to change language in owa but it did not make any difference.

Could you please help me with that renaming ?

thank you

J.

Exchange mail forwarding

$
0
0

Hello

I have a situation like this. I was asked to do the settings for a mailbox user@company.com so that incoming mail would recieve not only this user, but copies of all incoming mail would also be sent touser2@xyz.com and user3@abc.com . Could you please advise me how to do this settings ? I thought of distribution group but this way I would have to disable theuser@company.com mailbox, wouldn`t I ?

thank you for your replies


exhange 2013 cu1 update error

$
0
0

cu1 upadti geçmeye çalışırken şöyle bir hata alıyorum nasıl düzeltirim acaba?

Error:
The following error was generated when "$error.Clear(); 
install-ExchangeSchema -LdapFileName ($roleInstallPath + "Setup\Data\"+$RoleSchemaPrefix + "schema1.ldf")

" was run: "There was an error while running 'ldifde.exe' to import the schema file 'C:\Windows\Temp\ExchangeSetup\Setup\Data\PostExchange2003_schema1.ldf'. The error code is: 8207. More details can be found in the error file: 'C:\Users\murats\AppData\Local\Temp\ldif.err'".

Script to disable Preview Pane in OWA

$
0
0

Hi,

  I believe that this question has been asked previously but they didn't seem to come to a satisfactory conclusion.  Can you tell me if there is a script which will set the Preview Pane to not display by default in OWA?  We are using Exchange Server 2010.  I had asked previously if it could be done via Microsoft Exchange Server or via a GPO.  The respondent said that it wasn't but it may be possible to do it via a script.  I know that we can simply change the view in OWA but my manager wants to find a way to change the default behaviour for everyone (we want to make it look more like gmail but we don't want to go with OWA Light because we still want to be able to format the text in the emails using HTML).

Many thanks for any advice you can offer,

Justin.


Active Sync Issue in Exchange 2003

$
0
0

Log --> HTTP/1.1 RPC_OUT_DATA /rpc/rpcproxy.dll?Mail.XYZ.com:6004 - 1 Connection_Dropped DefaultAppPool

We have three Serve two Mailbox Clustered and one frond end CAS for Owa, Oma & ActiveSync.

When we restart the IIS it works but after some 4-5 hrs stops responding for Active Sync only.

Thanks

Vinod

Unhandled Exception "Could not find any available Domain Controller"

$
0
0

Hi,

I keep on having exchange 2010 loosing contact to domain controllers.

"Unhandled Exception "Could not find any available Domain Controller.". EventID 1. Once I restart the sever, this error disappear and reappear again after a few days.

When I run AD setting, the result shows as below. Update version is currently as at 14.02.0342.003. And boths DCs have 100% uptime.

PS C:\> Get-ADServerSettings | fl

RunspaceId                                : 9392eb25-bcdc-462e-816b-2d5626c572a5

DefaultGlobalCatalog                      : DC2.com.au

PreferredDomainControllerForDomain        : {}

DefaultConfigurationDomainController      : dc1.com.au

DefaultPreferredDomainControllers         : {DC2.com.au}

UserPreferredGlobalCatalog                :

UserPreferredConfigurationDomainController :

UserPreferredDomainControllers            : {}

RecipientViewRoot                         :

ViewEntireForest                          : True

WriteOriginatingChangeTimestamp           : False

WriteShadowProperties                     : False

Identity                                  :

IsValid                                   : True

Could you please help as this exchange server has our management team and their outlook keep on going offline.

Thanking you in advance.

Cheers,

Pwint

EX 2010 - Track down with user is spamming

$
0
0

Hello,

I have a spamming problem where users are authenticating to the exchange server which is allowing spam to be sent.

I know in EX2003 you could enable authentication logging and see it in event logs. Is there something similar i can do in EX2007-2010 to see whos authenticating?

My Exchange is installed on VM successfully but I am unable to open EMC

$
0
0

The following Error occurred when retrieving user information for "abc\administrator' :

The operation Couldn't be performed because object 'S-1-5-21-............' Couldn't be found on 'dc.abc.com' it was running the command 'Get-LogonUser'

I am able to create mailboxs & database using powershell but EMC is unable to Initialize.

Please Help.......

Best Regards

Mahars

IMAP C# Attachment

$
0
0
Hi,

I need to access our email sever using IMAP, read for new emails, extract its attachments. How can I achieve this using C# code.

One or more recipients are invalid while sending EMAIL

$
0
0

Am using Microsoft Exchange WebServices API to send email via exchange server. some times its not accepting the email recipients,but when i copy the same recipients and sent from outlook, the outlook able to send for that same addresses. and am receiving the Un-deliverable notice. but why i cant send via EWS API, Do i need to enable something while sending email?

Error :

Microsoft.Exchange.WebServices.Data.ServiceResponseException: One or more recipients are invalid. at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary() at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.Execute() at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalCreateItems(IEnumerable1 items, FolderId parentFolderId, Nullable1 messageDisposition, Nullable1 sendInvitationsMode, ServiceErrorHandling errorHandling) at Microsoft.Exchange.WebServices.Data.Item.InternalCreate(FolderId parentFolderId, Nullable1 messageDisposition, Nullable1 sendInvitationsMode) at Microsoft.Exchange.WebServices.Data.EmailMessage.InternalSend(FolderId parentFolderId, MessageDisposition messageDisposition)

SMTP coexist Exch2010 & Exch2003

$
0
0

hi,

I've perform a Exch2010 installation coexist with Exch2003. 

Our org. is using Internet Email (pop & smtp) to send and receive email using Outlook.

Previously all Outlook is pointing to Exch2003 (mailsvr), and now after Exch2010 get in, we point to the new server (exchsvr), 

problem happen that some user need to change the smtp back to mailsvr in order to send email to external domain, but some user able to send email to external if the smtp point to exchsvr.

why doest it happen? 


Edge subscription issue between two edge node and hub node

$
0
0

Hello All,

I need help about edge subscription issue. I have two egde server and two CAS HUB server. I need know how to configure edge subscription. Could you please give me the suggestions that how can I configure the edge subscription about that scenario. Please suggest me.

Thanks,

Parvez


Adding distribution lists and email reports as attachments using Exchange EWS managed API.

$
0
0

I am not able to send a mail which has a email report (read/delivery... receipts) and distribution list as an attachment. I am using the AddItemAttachment<> API as mentioned in the sample application present on MSDN.

For example I tried  the following ways -

  • When I try to use ContactGroup as the template class in the method, it fails with the error -"Items of type ContactGroups are not supported as attachments" , when I call the final SaveAndSend.
EmailMessage email = new EmailMessage(service);
email.ToRecipients.Add("user@contoso.com");
ItemAttachment<ContactGroup> itemAttachment = email.Attachments.AddItemAttachment<ContactGroup>();
email.SendAndSaveCopy();
  • If I try to add the attachment with the Item class as the template class  and then manually change the message class, it fails with the error-"Operation would change object type, which is not supported", when I call the final SaveAndSend. I have also tried to set the extended MAPI property PR_MESSAGE_CLASS
EmailMessage email = new EmailMessage(service);
email.ToRecipients.Add("user@contoso.com");
ItemAttachment<Item> itemAttachment = email.Attachments.AddItemAttachment<Item>();
itemAttachment.Item.ItemClass = "IPM.DistList";
email.SendAndSaveCopy();
  • If I try add the attachment with the Item class and then do not manually change the the class, the final SaveAndSend succeeds but the attachment is created as a sticky note.
EmailMessage email = new EmailMessage(service);
email.ToRecipients.Add("user@contoso.com");
ItemAttachment<Item> itemAttachment = email.Attachments.AddItemAttachment<Item>();
email.SendAndSaveCopy();

I am facing a similar problem with email reports (I use method 2 and try to change the message class manually). I am using Exchange 2013 CU2 on a Win 2012 server. Can someone suggest the correct method?

Thanks.


- NYA

Import-CSV, ForEach - PowerShell ISE = cmdlet not recognized

$
0
0

I've been reviewing the other related threads and have yet to find an answer. I'm sure there are some extra braces or quotes that I'm missing. The script prompts for the location of each CSV, whose path gets passed as a variable to be used by Import-CSV. It doesn't get past that point and presents an error stating it doesn't recognize thecmdlet.

The script is here: http://pastebin.com/PnWXqhPv
The error is here: http://pastebin.com/Pg1Ehb0d

I can pass on the CSV files, but they effectively are structured as so:

--
tenant-mailboxes.csv

DisplayName,SamAccountName,UserPrincipalName,FirstName,LastName,Password,Alias
John Doe,john.doe,john.doe@mbu.ca,John,Doe,,john.doe

--
tenant-distribution-groups.csv

DisplayName,Alias
MBU Info,info.mbu

--
tenant-mail-contacts.csv

DisplayName,ExternalEmailAddress,FirstName,LastName,Alias
John Doe,johndoe@externaldomain.com,John,Doe External,john.doe.external

Activesync issues exchange 2010

$
0
0

Hi

Facing problem in activesync (exchange 2010)

I checked internally it's showing the below error 

Can someone help me for solve the below

[PS] C:\Windows\system32>Test-ActiveSyncConnectivity -ClientAccessServer CHNEXCH01 -URL "https://chnexch01.astraglobal.l
ocal/Microsoft-server-activetsync" -MailboxCredential (get-credential design)

The -URL and -ClientAccessServer arguments are mutually exclusive.
    + CategoryInfo          : InvalidArgument: (:) [Test-ActiveSyncConnectivity], ApplicationException
    + FullyQualifiedErrorId : 78AFAC63,Microsoft.Exchange.Monitoring.TestMobileSyncConnectivity


Thanks 

The specified object was not found in the store

$
0
0
Hi,

I am facing a weird problem since last 2 days. I have a mailbox, where I try to delete all mail/calendar items using EWS.
The cleanup code used to work fine until sometime back. But for the last two days, whenever I run this code, I am getting the following message.

The specified object was not found in the store.

The calendar item does exist in the mailbox (which I can verify by logging into Outlook and seeing it there)
This happens at random (most of the times i get the error, but sometimes it goes through)

I have been breaking my head to figure out what is going on... Do any one of you have any suggestions for me??
Is it something happening from Outlook side, where two servers are out of sync or something of that sort??

Please help.

M
Viewing all 7132 articles
Browse latest View live


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