我正在尝试在我的 freebsd 7 虚拟主机上设置邮件服务器。但是当我尝试发送或接收电子邮件时,日志文件告诉我一些关于连接被拒绝像这样:
Feb 8 17:54:42 vps-id2247 postfix/error[29886]: 2A9E044A96F: to=<[email protected]>, relay=none, delay=2165, delays=2165/0.01/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
防火墙配置
add allow ip from any to any via lo0
add allow icmp from any to any
add allow tcp from any to me dst-port 22 in
add allow tcp from me 22 to any out
add allow tcp from any to me dst-port 21 in
add allow tcp from me 21 to any out
add allow tcp from any to me dst-port 80 in
add allow tcp from me 80 to any out
add allow tcp from any to me dst-port 25 in
add allow tcp from me 25 to any out
add allow tcp from any to me dst-port 110 in
add allow tcp from me 110 to any out
add allow udp from any to me dst-port 53 in
add allow udp from me 53 to any out
add allow tcp from any to me dst-port 53 in
add allow tcp from me 53 to any out
add allow tcp from any to me dst-port 443 in
add allow tcp from me 443 to any out
add allow tcp from any to me dst-port 10000 in
add allow tcp from me 10000 to any out
add allow tcp from any to me dst-port 143 in
add allow tcp from me 143 to any out
add allow tcp from any to me 49152-65535 in
add allow tcp from me 49152-65535 to any out
add allow ip from any to any out keep-state
add deny ip from any to any
因此,为了表明它不是防火墙,我想知道这些设置是否良好。
请注意,我正在使用标准端口(25、143)并在端口 25 上进行 telnet,尽管域名 url 显示“hello”。