我的安全组具有以下内容:

>22 (SSH)   0.0.0.0/0
>80 (HTTP)  0.0.0.0/0
>143 (IMAP) 0.0.0.0/0
>443 (HTTPS)    0.0.0.0/0
>995 (POP3S)    0.0.0.0/0
>465 (SMTPS)    0.0.0.0/0
>25 (SMTP)  0.0.0.0/0

在服务器上运行netstat将显示以下内容:
>Active Internet connections (servers and established)
>Proto Recv-Q Send-Q Local Address           Foreign Address         State
>tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN
>tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN
>tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
>tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
>tcp        0      0 10.211.30.202:44025     194.14.0.125:6667       ESTABLISHED
>tcp6       0      0 :::995                  :::*                    LISTEN
>tcp6       0      0 :::110                  :::*                    LISTEN
>tcp6       0      0 :::143                  :::*                    LISTEN
>tcp6       0      0 :::22                   :::*                    LISTEN
>tcp6       0      0 :::25                   :::*                    LISTEN
>tcp6       0      0 :::993                  :::*                    LISTEN

当我尝试从外界访问该盒子时,我一无所获。
>thedude:~ root$ telnet mail.sd0a.com 25<br />
>Trying 107.20.235.215...<br />
>telnet: connect to address 107.20.235.215: Operation timed out<br />
>telnet: Unable to connect to remote host<br />

是否有人对Amazon EC2实例有任何积极的经验,并将邮件发送到可以正常工作的状态?值得注意的是,通过命令行,邮件似乎可以通过。如果重要的话,系统为Ubuntu 12.04.1 LTS。

最佳答案

可能是您的ISP过滤到端口25/tcp的出站连接,以防止僵尸网络垃圾邮件。

10-07 12:48