centos创建邮件服务器(postfix+dovecot)
我发邮件可以发但收邮件收不到,不知怎么回事,请大家帮帮忙我用
nslookup
》set type=mx
>linshan2014.com
Server: 202.97.224.69
Address: 202.97.224.69#53
Non-authoritative answer:
linshan2014.com.com mail exchanger = 10 mx.b-io.co.
Authoritative answers can be found from:
exit
然后:telnet 172.16.30.122 25
mail from:root@mail.linshan2014.com
rcpt to: postfix@mx.b-io.co.
data
.......
quit
然后再 telnet 172.16.30.122 110
查邮件,结果为 :+ok 0 messages;
日志如下:
May 19 12:47:56 mail postfix/smtp: 69F8DA0E4F: conversation with mx.b-io.co timed out while receiving the initial server greeting
May 19 12:48:35 mail postfix/smtpd: connect from mail.linshan2014.com
May 19 12:49:24 mail postfix/smtp: A0EDDA0E41: conversation with mx.b-io.co timed out while receiving the initial server greeting
May 19 12:49:32 mail postfix/smtpd: 8F5AFA0E4C: client=mail.linshan2014.com
May 19 12:49:49 mail postfix/cleanup: 8F5AFA0E4C: message-id=<20140519044932.8F5AFA0E4C@mail.linshan2014.com>
May 19 12:49:49 mail postfix/qmgr: 8F5AFA0E4C: from=<root@mail.linshan2014.com>, size=395, nrcpt=1 (queue active)
May 19 12:50:18 mail postfix/smtp: E9341A0E4E: to=<postfix@mx.b-io.co>, orig_to=<postfix@mx.b-io.co.>, relay=mx.b-io.co:25, delay=940, delays=35/0.01/905/0, dsn=4.4.2, status=deferred (conversation with mx.b-io.co timed out while performing the EHLO handshake)
May 19 12:52:01 mail postfix/smtpd: disconnect from mail.linshan2014.com
May 19 12:52:57 mail postfix/smtp: 69F8DA0E4F: conversation with mx.b-io.co timed out while performing the EHLO handshake 在外面,比如某网吧机器上,如果mx记录能正确解释就能收到邮件。 我的mx记录正确吗,你帮我看看 我在var/spool/mail/中可以看到邮件,但在/home/1/user/Maildir/中看不到邮件,我用root@mail.linshan2014.com到postfix@mail.linshan2014.com /etc/postfix/main.cf
home_mailbox:该参数设置邮箱路径与用户目录有关,也可以指定要使用的邮箱风格。
/etc/dovecot.conf
mail_location中这个参数,核对一下 我设定main.cf中的home_mailbox=Maildir/
然后我设定/etc/dovecot.conf
中mail_location== maildir:/home/1/%u/Maildir
但是我还是不能通过telnet 172.16.30.122 110得到我的邮件啊 楼主你的域名在互联网上没有记录,已经试过了。申请一个域名,才能收邮件。 在内网中发送邮件,不用申请域名吧? 内网不用,但是刚看了下你的测试,你发送到别人的邮箱,你自己怎么能收到?而且也没发成功。 我自己给自己发也不能收到啊,root@mail.linshan2014.com向root@mail.linshan2014.com发,
日志:
May 19 16:41:40 mail postfix/smtpd: connect from mail.linshan2014.com
May 19 16:42:35 mail postfix/smtpd: 0D45AA0E50: client=mail.linshan2014.com
May 19 16:42:38 mail postfix/qmgr: 8F5AFA0E4C: from=<root@mail.linshan2014.com>, size=395, nrcpt=1 (queue active)
May 19 16:42:55 mail postfix/cleanup: 0D45AA0E50: message-id=<20140519084235.0D45AA0E50@mail.linshan2014.com>
May 19 16:42:55 mail postfix/qmgr: 0D45AA0E50: from=<root@mail.linshan2014.com>, size=401, nrcpt=1 (queue active)
May 19 16:42:55 mail postfix/local: 0D45AA0E50: to=<root@mail.linshan2014.com>, relay=local, delay=60, delays=60/0.01/0/0.07, dsn=2.0.0, status=sent (delivered to mailbox)
May 19 16:42:55 mail postfix/qmgr: 0D45AA0E50: removed
May 19 16:42:58 mail postfix/smtpd: disconnect from mail.linshan2014.com
页:
[1]
2