Peter Ledbrook
asked this on April 13, 2011 01:51
Hi,
I've been asked on my blog posting whether it's possible to send e-mail via an external service provider such as Amazon or Gmail. But this raises the more general question of what requests are allowed from applications deployed on Cloud Foundry? Port 80 requests seem fine, but what about others? SMTP on port 25 for example.
Thanks,
Peter
Comments
Currently outbound access is limited to http and https through proxies. The proxy information will be in the environment for your application under http_proxy, https_proxy, and no_proxy.
We will continually look on ways to improve the product and the service, so please keep the feedback coming.
For Java applications, the common proxy system properties are predefined (http.proxyHost, http.proxyPort, https.proxyHost, etc)
But how should we send mails then?
This is bothering me too and a blocker :-(
It would be nice if cloudfoundry got an smtp service working soon. In the meantime we could always use something like the rest api here:
http://elasticemail.com/api-documentation
But it would be better to just be able to use javamail...
I have a Spring Integration application that I would like to deploy to Cloud Foundry where the application accepts incomming requests on a port other than port 80. Is this possible with Cloud Foundry?
Hi Ted,
Please note that for spring applications a tomcat container is provided and configured and you will not
have control over which port the container is listening on. You application in the configured url
(typically <appname>.cloudfoundry.com) can received traffic on http (80) and https (443) and
cloudfoundry infrastrcuture (front-ends and router) will route the traffic to your application.
Best Regards,
-senthil
Is there a way to disable http(80)?
Peter,
There isn't a way to disable HTTP. One option is to inspect for SSL http headers in your app, and redirect the user to https if they don't exist.
To see the difference in http headers compare:
http://gho-env.cloudfoundry.com/
https://gho-env.cloudfoundry.com/
Specifically: