- 论坛徽章:
- 0
|
本帖最后由 hhx012 于 2014-10-25 17:21 编辑
环境是这样的,虚拟机安装centos 6.5搭postfix,在虚拟机里面用发邮件到外网邮箱,对方可以正常接收,下面是发邮件过程
[root@localhost ~]# mail a945168@163.com
Subject: fda
fdas
EOT
可是我在同一个子网内找台PC,用telnet到虚拟机上来发邮件,日志显示最后邮件已经从队列里清除,可是对方收不到
以下是发邮件过程
220 mail.masker.net.cn ESMTP Postfix
ehlo fdfd
250-mail.masker.net.cn
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:<root@masker.net.cn>
250 2.1.0 Ok
rcpt to:<a945168@163.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
fdas
da
fda
.
250 2.0.0 Ok: queued as ABE8BA18C8
.
502 5.5.2 Error: command not recognized
quit
221 2.0.0 Bye
遗失对主机的连接。
C:\Users\it>
以下是日志文件信息
Oct 26 00:46:43 localhost postfix/smtpd[1663]: connect from unknown[192.168.1.8]
Oct 26 00:47:04 localhost postfix/smtpd[1663]: ABE8BA18C8: client=unknown[192.168.1.8]
Oct 26 00:47:08 localhost postfix/cleanup[1666]: ABE8BA18C8: message-id=<>
Oct 26 00:47:08 localhost postfix/qmgr[1659]: ABE8BA18C8: from=<root@masker.net.cn>, size=186, nrcpt=1 (queue active)
Oct 26 00:47:08 localhost postfix/smtp[1667]: ABE8BA18C8: to=<a945168@163.com>, relay=163mx02.mxmail.netease.com[220.181.14.147]:25, delay=12, delays=11/0/0.2/0.26, dsn=2.0.0, status=sent (250 Mail OK queued as mx20,RsCowECp60WZY0tUW0Q6CA--.10552S2 1414226841)
Oct 26 00:47:08 localhost postfix/qmgr[1659]: ABE8BA18C8: removed
Oct 26 00:47:23 localhost postfix/smtpd[1663]: disconnect from unknown[192.168.1.8]
以下是postfix配置
[root@localhost ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = masker.net.cn
myhostname = mail.masker.net.cn
mynetworks = 192.168.1.0/24, 168.100.189.0/28, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
麻烦大大帮忙看看,是哪里出问题了。没有搭认证。只是做测试用。谢谢。
解决了。 |
|