简体   繁体   English

用于在IBM BlueMix上部署的用于连接到SMTP服务器的应用程序的静态ip

[英]Static ip for application deployed on IBM BlueMix for connecting to SMTP Server

I have deployed an application on IBM BlueMix. 我已经在IBM BlueMix上部署了一个应用程序。 The application needs to use a smtp server for sending emails. 该应用程序需要使用smtp服务器发送电子邮件。 The smtp server will only allow requests from a static ip. smtp服务器将仅允许来自静态ip的请求。 As the application is on the cloud, it may not always have a static ip. 由于应用程序在云中,因此它可能并不总是具有静态IP。 In IBM Bluemix there is a service called as Statica, however that is as per the example only for http and https requests. 在IBM Bluemix中,有一个称为Statica的服务,但是根据示例,该服务仅适用于http和https请求。 How can we get a static ip for the application to connect to a smtp server? 我们如何获得用于应用程序连接到SMTP服务器的静态IP?

Your best best for something like this would probably be to use an SMTP server that accepts some kind of login credentials - having the source IP be static is probably not going to be a tenable solution if you're running an app in the CloudFoundry apps on BlueMix. 最好的办法可能是使用SMTP服务器接受某种登录凭据-如果您要在CloudFoundry应用程序上运行某个应用程序,则将源IP静态化可能不会是一个可行的解决方案。 BlueMix。

If you need a static IP, I'd consider running your apps in the container service, or on a virtual. 如果您需要静态IP,我会考虑在容器服务或虚拟服务中运行您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM