简单的Java邮件SMTP主机

huangapple go评论55阅读模式
英文:

Simple Java Mail SMTP host

问题

我正在使用Simple Java Mail API来从我的Spring Boot应用程序发送电子邮件。该应用程序的所有者曾经是我的同事,但现在不在与我共事。在我的application.properties文件中,我有以下配置:

simplejavamail:
  smtp:
    host: 172.28.94.229
    port: 25
  javaxmail:

问题是,我无法理解这是什么主机?我的电子邮件发送到哪台服务器?这是Simple Java Mail提供的内容吗?但我在他们的文档中找不到任何相关信息。

英文:

I am using Simple Java Mail API in order to send emails from my Spring Boot application. The app's owner was my colleague who doesn't work with me now. In my application.properties file I have the following config

simplejavamail:
  smtp:
    host: 172.28.94.229
    port: 25
  javaxmail:

The question is that I can't understand what host is this? Which server my emails go to? Is this something provided by Simple Java Mail, but I couldn't find anything in their documentation.

答案1

得分: 1

这个IP地址在互联网上不可公开路由,而是保留并用于私有或本地网络。供您参考,以下IPv4地址空间不可用于互联网路由:

  • 10.0.0.0/8 IP地址范围:10.0.0.0 – 10.255.255.255
  • 172.16.0.0/12 IP地址范围:172.16.0.0 – 172.31.255.255
  • 192.168.0.0/16 IP地址范围:192.168.0.0 – 192.168.255.255

您可以尝试以下命令:

telnet 172.28.94.229 25

看看是否会超时(表示该IP/端口上没有服务在监听)或者您是否已连接到某个服务。

如果这个IP/端口存在并且您成功建立连接,那么您应该向您公司的系统管理员请求有关该SMTP服务器的更多信息。

如果您无法连接,可能这只是一个模拟/虚拟的SMTP服务器,不是真实的。

英文:

This IP address is not publicly routable on the Internet but is reserved and used for private or local networks.
For you information the following IPv4 address spaces are not Internet routable:

  • 10.0.0.0/8 IP addresses: 10.0.0.0 – 10.255.255.255
  • 172.16.0.0/12 IP addresses: 172.16.0.0 – 172.31.255.255
  • 192.168.0.0/16 IP addresses: 192.168.0.0 – 192.168.255.255

You can try the following command

telnet 172.28.94.229 25

and see if you get a timeout (meaning that no service is listening on that IP/Port) or you are connected to some service.

If this IP/Port exists and you get a connection opened, then you should ask your company's system admin for more information on that SMTP server.
If you cannot get connected, maybe this is just a mock / not real SMTP server.

huangapple
  • 本文由 发表于 2020年10月7日 14:17:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/64238242.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定