I have an application in my server (Windows Server 2012 Stanrdard x64) that sends mails with smtp.office365.com with port 587.

I authorized only input HTTP connections and I blocked all output connections except protocol TCP with port 587 but this doesn't work. The mails aren't sended.

What rules I have to configure in order that the mails are sended ?

Thanks