AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-109997

Josh's questions

Martin Hope
Josh
Asked: 2013-11-05 09:04:16 +0800 CST

尽管端口被阻塞,但传入的 SMTP 邮件如何传递

  • -1

我设置了一个 MX 邮件服务器,尽管端口 25 被阻止,但一切正常,我很困惑为什么我能够使用此设置接收电子邮件,以及如果我这样设置可能会产生什么后果。以下是详细信息:

  • 通过端口 25 和 587 与 SMTP 的连接都通过我的本地网络可靠地连接。
  • 通过端口 25 与 SMTP 的连接被外部 IP 阻止(ISP 阻止了该端口)。
  • 通过端口 587 从外部 IP 连接到提交 SMTP 是可靠的。
  • 从 gmail、yahoo 和其他一些地址发送的电子邮件都在送达。我还没有找到无法将邮件发送到我的 MX 的电子邮件提供商。

因此,在端口 25 被阻塞的情况下,我假设其他 MTA 服务器回退到端口 587,否则我无法想象邮件是如何接收的。我知道 25 端口不应该被阻塞,但到目前为止它可以工作。是否有无法使用的邮件服务器?我在哪里可以找到更多关于它是如何工作的?

- 编辑

更多技术细节,以验证我没有遗漏一些愚蠢的东西。显然,在下面的文字记录中,我已经用 example.com 替换了我的实际域。

# DNS MX record points to the A record.
$ dig example.com MX +short
1 example.com
$ dig example.com A +short
<Public IP address>

# From a public server (not my ISP hosting the mail server)
# We see port 25 is blocked, but port 587 is open
$ telnet example.com 25
Trying <public ip>...
telnet: Unable to connect to remote host: Connection refused
# Let's try openssl
$ openssl s_client -starttls smtp -crlf -connect example.com:25
connect: Connection refused
connect:errno=111


# Again from a public server, we see port 587 is open
$ telnet example.com 587
Trying <public ip>...
Connected to example.com.
Escape character is '^]'.
220 example.com ESMTP Postfix
ehlo example.com
250-example.com
250-PIPELINING
250-SIZE 10485760
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-BINARYMIME
250 CHUNKING
quit
221 2.0.0 Bye
Connection closed by foreign host.

以下是收到来自 gmail 的消息时邮件日志中的一部分:

postfix/postscreen[93152]: CONNECT from [209.85.128.49]:48953 to [192.168.0.10]:25
postfix/postscreen[93152]: PASS NEW [209.85.128.49]:48953
postfix/smtpd[93160]: connect from mail-qe0-f49.google.com[209.85.128.49]
postfix/smtpd[93160]: 7A8C31C1AA99: client=mail-qe0-f49.google.com[209.85.128.49]

日志显示在端口 25 上与本地 IP 建立了连接(我没有进行任何端口映射,因此它也是公共 IP 上的端口 25)。看到这一点,我推测端口 25 上的 ISP 块仅在从未知的 IP 地址建立连接时才会发生。邮件服务器。还有其他理论吗?

email
  • 2 个回答
  • 3171 Views
Martin Hope
Josh
Asked: 2012-06-27 07:06:26 +0800 CST

Apple 文件共享无法连接

  • 1

运行 OSX Lion Server (10.7.4),Apple 文件共享服务大约每周一次停止让客户端连接到其共享。在客户端上,我们将看到一个对话框,提示“连接到服务器时出现问题”。浏览服务器时,我们根本看不到共享。客户端还运行最新的 OSX (10.7.4)

在 /var/log/system.log 中,我们看到如下条目:

6 月 26 日 08:38:22 w3 AppleFileServer [20511]:收到带有无效 client_id 157 的消息

6 月 26 日 08:42:11 w3 AppleFileServer [20511]:收到带有无效 client_id 165 的消息

6 月 26 日 08:42:21 w3 AppleFileServer [20511]:收到带有无效 client_id 174 的消息

其中 20511 似乎是 pid,并且 client_id 似乎随着每次失败的尝试而递增。

/Library/Logs/AppleFileService/AppleFileService[Access|Error].log 中没有任何内容跳出来

重启服务解决问题:

serveradmin 停止 afp && serveradmin 启动 afp

所以我添加了一个脚本来使用定期服务每天执行此操作。但是,我们仍然大约每周遇到一次这个问题。

mac-osx afp
  • 1 个回答
  • 1465 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve