免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5636 | 回复: 10
打印 上一主题 下一主题

[Mail] centos创建邮件服务器(postfix+dovecot) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-05-19 12:57 |只看该作者 |倒序浏览
我发邮件可以发但收邮件收不到,不知怎么回事,请大家帮帮忙
我用
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[11893]: 69F8DA0E4F: conversation with mx.b-io.co[54.225.159.193] timed out while receiving the initial server greeting
May 19 12:48:35 mail postfix/smtpd[11883]: connect from mail.linshan2014.com[172.16.30.122]
May 19 12:49:24 mail postfix/smtp[11902]: A0EDDA0E41: conversation with mx.b-io.co[54.225.159.193] timed out while receiving the initial server greeting
May 19 12:49:32 mail postfix/smtpd[11883]: 8F5AFA0E4C: client=mail.linshan2014.com[172.16.30.122]
May 19 12:49:49 mail postfix/cleanup[11929]: 8F5AFA0E4C: message-id=<20140519044932.8F5AFA0E4C@mail.linshan2014.com>
May 19 12:49:49 mail postfix/qmgr[2733]: 8F5AFA0E4C: from=<root@mail.linshan2014.com>, size=395, nrcpt=1 (queue active)
May 19 12:50:18 mail postfix/smtp[11856]: E9341A0E4E: to=<postfix@mx.b-io.co>, orig_to=<postfix@mx.b-io.co.>, relay=mx.b-io.co[107.22.249.250]:25, delay=940, delays=35/0.01/905/0, dsn=4.4.2, status=deferred (conversation with mx.b-io.co[107.22.249.250] timed out while performing the EHLO handshake)
May 19 12:52:01 mail postfix/smtpd[11883]: disconnect from mail.linshan2014.com[172.16.30.122]
May 19 12:52:57 mail postfix/smtp[11893]: 69F8DA0E4F: conversation with mx.b-io.co[23.21.240.230] timed out while performing the EHLO handshake

论坛徽章:
7
荣誉版主
日期:2011-11-23 16:44:17子鼠
日期:2014-07-24 15:38:07狮子座
日期:2014-07-24 11:00:54巨蟹座
日期:2014-07-21 19:03:10双子座
日期:2014-05-22 12:00:09卯兔
日期:2014-05-08 19:43:17卯兔
日期:2014-08-22 13:39:09
2 [报告]
发表于 2014-05-19 13:47 |只看该作者
在外面,比如某网吧机器上,如果mx记录能正确解释就能收到邮件。

论坛徽章:
0
3 [报告]
发表于 2014-05-19 13:54 |只看该作者
我的mx记录正确吗,你帮我看看

论坛徽章:
0
4 [报告]
发表于 2014-05-19 13:59 |只看该作者
我在var/spool/mail/中可以看到邮件,但在/home/1/user/Maildir/中看不到邮件,我用root@mail.linshan2014.compostfix@mail.linshan2014.com

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
5 [报告]
发表于 2014-05-19 15:36 |只看该作者
/etc/postfix/main.cf
home_mailbox:该参数设置邮箱路径与用户目录有关,也可以指定要使用的邮箱风格。
/etc/dovecot.conf
mail_location中这个参数,核对一下

论坛徽章:
0
6 [报告]
发表于 2014-05-19 15:47 |只看该作者
我设定main.cf中的home_mailbox=Maildir/
然后我设定/etc/dovecot.conf
中mail_location== maildir:/home/1/%u/Maildir
但是我还是不能通过telnet 172.16.30.122 110得到我的邮件啊

论坛徽章:
7
荣誉版主
日期:2011-11-23 16:44:17子鼠
日期:2014-07-24 15:38:07狮子座
日期:2014-07-24 11:00:54巨蟹座
日期:2014-07-21 19:03:10双子座
日期:2014-05-22 12:00:09卯兔
日期:2014-05-08 19:43:17卯兔
日期:2014-08-22 13:39:09
7 [报告]
发表于 2014-05-19 16:14 |只看该作者
楼主你的域名在互联网上没有记录,已经试过了。申请一个域名,才能收邮件。

论坛徽章:
0
8 [报告]
发表于 2014-05-19 16:25 |只看该作者
在内网中发送邮件,不用申请域名吧?

论坛徽章:
7
荣誉版主
日期:2011-11-23 16:44:17子鼠
日期:2014-07-24 15:38:07狮子座
日期:2014-07-24 11:00:54巨蟹座
日期:2014-07-21 19:03:10双子座
日期:2014-05-22 12:00:09卯兔
日期:2014-05-08 19:43:17卯兔
日期:2014-08-22 13:39:09
9 [报告]
发表于 2014-05-19 16:33 |只看该作者
内网不用,但是刚看了下你的测试,你发送到别人的邮箱,你自己怎么能收到?而且也没发成功。

论坛徽章:
0
10 [报告]
发表于 2014-05-19 16:43 |只看该作者
我自己给自己发也不能收到啊,root@mail.linshan2014.comroot@mail.linshan2014.com发,
日志:


May 19 16:41:40 mail postfix/smtpd[13441]: connect from mail.linshan2014.com[172.16.30.122]
May 19 16:42:35 mail postfix/smtpd[13441]: 0D45AA0E50: client=mail.linshan2014.com[172.16.30.122]
May 19 16:42:38 mail postfix/qmgr[13385]: 8F5AFA0E4C: from=<root@mail.linshan2014.com>, size=395, nrcpt=1 (queue active)
May 19 16:42:55 mail postfix/cleanup[13446]: 0D45AA0E50: message-id=<20140519084235.0D45AA0E50@mail.linshan2014.com>
May 19 16:42:55 mail postfix/qmgr[13385]: 0D45AA0E50: from=<root@mail.linshan2014.com>, size=401, nrcpt=1 (queue active)
May 19 16:42:55 mail postfix/local[13449]: 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[13385]: 0D45AA0E50: removed
May 19 16:42:58 mail postfix/smtpd[13441]: disconnect from mail.linshan2014.com[172.16.30.122]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP