Is it doable using the Office 365 API?

Hi!

I need to do the following: For each email that is sent or received in an Office 365 account, I need to intercept those incoming/outgoing emails and analyze and replace the attachments. Is it doable using Office 365 API? Else, which is the technology I should use?

Thanks

July 16th, 2015 8:01am

Hi Pablo,

As far as I know, unless you what the SMTP gateway on-premises you can't do that.

What you are looking for are doable using Transport agents, but they are not supported in Office 365 or Exchange Online.

Transport agents in Exchange 2013:

https://msdn.microsoft.com/en-us/library/office/dd877026(v=exchg.150).aspx

This is listing all available options across both(some are not availabe online):

Exchange Online and Exchange 2013 development:

Create custom solutions for email, calendar, contacts, and other items that are stored in Exchange Online or on an Exchange 2013 server. You can use Exchange Web Services (EWS), Autodiscover, mail apps for Office, or other APIs to develop your applications.

Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 8:43am

Thanks Satyajit,

I well know transport agent but they are for on-permises servers.

I want a solution for Office 365 users.

See this solution:

https://www.exclaimer.com/exclaimer-cloud/signatures-for-office-365/technical

See that at step 3 it says:

Each email sent passes from Office 365 and is routed to one of Exclaimers regional Azure servers using a start point connector set up in Office 365. This is a standard Microsoft Office 365 protocol for configuring mail flow. Our Azure setup is designed to provide a high-availability, load balanced service. As the servers are based in around the world, the service stays within Microsoft datacenters that are local to you. This guarantees that no email ever leaves the Microsoft Cloud infrastructure.

So I guess there should be a way of doing it...

Thanks

July 16th, 2015 10:05am

Hi Pablo,

What is shared is basically similar to what I said in the first line.

"unless you 'have' the SMTP gateway on-premises you can't do that." When I say on-premises I mean you have something on which you have larger control, just like on-premises.

The article you shared is using Azure VMs on Clould which is more like a Virtual machine, hence they have full control of the data that is going in and out. Processing is not done inside O365, but outside it.

IaaS Azure Cloud is in Microsoft, but it gives way more access and control than O365 which is more of SaaS.

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 2:25am

Thanks Satyajit,

So what I could do is to write a Transport Agent that will run in an on-premise server ( can be an Azure server) that will handle all incoming emails... the "chain" Office 365 to redirect the emails to my server that will analyze and replace all attachments, and that's all?

Is it just as simple as writing a simple Transport Agent and the connect point does the remaining?

Thanks

July 17th, 2015 10:28am

Hi Pablo,

Where does your users mailbox resides in. If on premises and you already have a SMTP gateway inplace to handle incoming email, then it should not be much of a problem.

But if you users are in O365, then is going to be a costly and complicated affair to "intercept those incoming/outgoing emails and analyze and replace the attachments". You should be looking for some available SMTP gateway services that can help you achieve that. Using Azure VMs or other services just to do this is going to be damn expensive.

You should ask a question, based on the exact requirement like what do you want to "intercept and replace in those incoming/outgoing emails", maybe it is doable using something else in EOP already.

Free Windows Admin Tool Kit Click here and download it now
July 20th, 2015 12:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics