简体   繁体   English

我应该在带有netcat的端口25上看到电子邮件吗?

[英]Should I see email on port 25 with netcat?

Assuming I have a domain forwarded properly to a box (ie, I can see a webpage on the box from the outside world) If I use netcat to listen on some ports from a ssh session: 假设我已经将一个域正确转发到了一个盒子(即,我可以从外界看到盒子上的一个网页)如果我使用netcat来监听ssh会话中的某些端口:

nc -l 587

nc -l 25

and send mail to the server user@mydomain.com 并将邮件发送到服务器user@mydomain.com

I should see the beginning of the handshake in the send attempts? 我应该在发送尝试中看到握手的开始吗? I know my ISP does not block port 25 because I can see a browser header with netcat if I go to http://mydomain.com:25 我知道我的ISP不会阻止端口25,因为如果我转到http://mydomain.com:25,可以看到带有netcat的浏览器标头

Tons of things could be going wrong: 大量的事情可能出了问题:

1) SMTP requires the server talk first, so the email sender is probably waiting for your server to say something. 1)SMTP需要首先与服务器对话,因此电子邮件发件人可能正在等待您的服务器发声。

2) If you're not running a valid mail server, email senders may mark your host as unresponsive and backoff for several hours before retrying. 2)如果您没有运行有效的邮件服务器,则电子邮件发件人可能将您的主机标记为无响应,并且退避了数小时,然后重试。

3) If you just changed your DNS, it may take hours/days for that to propagate. 3)如果您只是更改了DNS,则可能要花几个小时/天才能传播出去。 (Not everyone respects TTL, especially low ones.) (并非所有人都尊重TTL,尤其是低TTL。)

4) Some servers are configured to drop mail if the source or destination SPF isn't set up properly. 4)如果未正确设置源SPF或目标SPF,则将某些服务器配置为丢弃邮件。 (To encourage everyone to use SPF.) Try adding a SPF record. (鼓励所有人使用SPF。)尝试添加SPF记录。 (And make sure your MX record is correct.) (并确保您的MX记录正确。)

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

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