It is surely possible.
- Create a service account. Use the username and password for the mail account and select type as Static.
- Create an OSB Proxy service of Messaging Service Type. On Protocol configuration page, select email as the protocol and provide the details.
- In the Message flow you can make the necessary transformations using Xquery
- Call any service that you wish to call using either Routing, Service Callout or Publish.