主题: postfix安装后测试发送邮件结果总是connection refused
centos 5.5
postfix 2.3。用yum安装的。关闭了selinux和防火墙。
服务器的名字是mail.test2051.com
MX记录执向了A记录
# dig test2051.com mx +short
10 mail.test2051.com.
# ping mail.test2051.com
PING mail.test2051.com (10.0.101.232) 56(84) bytes of data.
64 bytes from test2051.com (10.0.101.232): icmp_seq=1 ttl=64 time=0.027 ms
正是邮件服务器自己。说明dns设置是正确的。
postfix已经启动
# /etc/init.d/postfix status
master (pid 238 is running...
使用下面的命令用root帐户给root发一个邮件,结果失败了。。。
[root@mail ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.test2051.com ESMTP Postfix
ehlo mail.test2051.com
250-mail.test2051.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:root@test2051.com
250 2.1.0 Ok
rcpt to:root@test2051.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:mmm
123456
.
250 2.0.0 Ok: queued as BDB80D708A
quit
221 2.0.0 Bye
Connection closed by foreign host.
查看队列:
[root@mail ~]# postqueue -p
BDB80D708A 375 Mon Mar 14 02:29:34 root@test2051.com
(connect to mail.test2051.com[10.0.101.232]: Connection refused)
root@test2051.com
用postfix flush或者是postqueue -f都没法发出去。。。。求问该如何解决。