Questions tagged [exchange-server]

Questions about automation and APIs related to Microsoft's Enterprise level messaging server.

Microsoft Exchange Server is the server side of a client–server, collaborative application product developed by Microsoft. It is part of the Microsoft Servers line of server products and is used by enterprises using Microsoft infrastructure products. Exchange's major features consist of electronic mail, calendaring, contacts and tasks; support for mobile and web-based access to information; and support for data storage.

Use this tag on programming questions related to the use of this product - questions on installation, maintenance and configuration are better asked on Server Fault, while questions on the use and configuration of Outlook or other email clients are better directed to Super User.

See also:

4797 questions
10
votes
2 answers

Why should I convince developers to use port 587 for all SMTP communication?

There is a growing trend to use port 587 for all client to MTA communications. It's in a standards track RFC: http://www.ietf.org/rfc/rfc2476.txt My question is "Why?". Why have 2 instances of a SMTP server running on the same server, if they both…
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
10
votes
6 answers

Creating Tasks for other users using Exchange Web Services (EWS) Managed API

As an "EWS Managed API Newbie", I'm having some problems finding examples and documentation about creating and managing Tasks. I've managed to create a task for myself without a problem. However, I really need to be able to do the following - if…
Chris Roberts
  • 18,622
  • 12
  • 60
  • 67
10
votes
1 answer

Is the ampersand sign a valid character for an Exchange email address?

I am trying to find out if the ampersand character "&" is a valid character for a Microsoft Exchange email address. I know it is valid according to the RFC but I am thinking that exchange has a subset of valid characters. …
Greg Finzer
  • 6,714
  • 21
  • 80
  • 125
10
votes
2 answers

com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender

i am trying to send email from an application email (exchange server) and appear for the user as it was sent from another email using javamail, i am using the following code: public void sendEmail(String from, String to, String subject, String…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
10
votes
3 answers

Exchange Web Services: Finding emails sent to a recipient

I'm using Exchange Web Services to connect to a mailbox and look for messages matching certain criteria, using FindItems with a SearchFilter. I can get emails in a mailbox filtering on 'from' email address like this: var service = new…
mattk
  • 1,335
  • 1
  • 14
  • 19
10
votes
9 answers

JavaMail Exchange Authentication

I'm trying to use Exchange authentication from my app using JavaMail to do this. Could some one give me a guide to do this? After authentication I need to send mails that's the main reason that I'm using JavaMail. All the links that I found talks…
10
votes
3 answers

Getting Exchange Appointments by ICalUid?

So I'm creating Exchange (2007) Appointments with a given ICalUid: var app = new Appointment(svc); app.ICalUid = id; app.Subject = "Test Appointment"; app.Recurrence = new Recurrence.DailyPattern(DateTime.Now,…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
9
votes
1 answer

Import Email from AD Mailbox

We have an old legacy SQL 2000 server (the last in the farm) – We’ve been unable to get rid of this server as it uses xp_findnextmsg, xp_readmail etc to monitor a mailbox (via mapi) and import all email to that address into a database. The database…
HeavenCore
  • 7,533
  • 6
  • 47
  • 62
9
votes
3 answers

Message submission rate for this client has exceeded the configured limit?

I have a for loop which calls some code sending emails. I get the following run-time error: Service not available, closing transmission channel. The server response was: 4.4.2 Message submission rate for this client has exceeded the configured…
intrigued_66
  • 16,082
  • 51
  • 118
  • 189
9
votes
1 answer

How do I query effective permissions on an Active Directory Object?

I'm trying to programmatically determine whether the current user has certain permissions on a given Active Directory object (specifically in this case, I'm trying to determine whether the user has the "Send As" permission for another Exchange user…
Oliver Giesen
  • 9,129
  • 6
  • 46
  • 82
9
votes
1 answer

Dealing with EWS throttling policies

What is an effective way of dealing with EWS throttling policies? I'm attempting to read every email in my mailbox as well as download all attachments. The issue I'm encountering is that Exchange will often return an exception saying The server…
gcso
  • 2,315
  • 3
  • 28
  • 50
9
votes
6 answers

Powershell command to hide user from exchange address lists

I'm trying to write powershell script which hides user from exchange lists. I was able to find following command: Set-Mailbox -Identity [user id here] -HiddenFromAddressListsEnabled $true And it doesn't give me an error message, and when I run the…
Vova Zaycev
  • 258
  • 1
  • 3
  • 11
9
votes
7 answers

How remove accents in PowerShell?

I have a script which creates users in Microsoft Exchange Server and Active Directory. So, though it's commmon that user's names have accents or ñ in Spain, I want to avoid them for the username to not to cause any incompatibilities in old…
Antonio Laguna
  • 8,973
  • 7
  • 36
  • 72
9
votes
5 answers

Download attachments using Exchange Web Services Java API?

I am writing a Java application to download emails using Exchange Web Services. I am using Microsoft's ewsjava API for doing this. I am able to fetch email headers. But, I am not able to download email attachments using this API. Below is the code…
NareshPS
  • 103
  • 1
  • 1
  • 4
9
votes
1 answer

Graph API calls to OnPremise Exchange only works in Playground

Our setup is an on-premise Exchange Server which is accessible over the graph api. https://learn.microsoft.com/en-us/graph/hybrid-rest-support We run in the issue, that our token is only "partial" working. And a token created by "Graph-Playground"…