免费注册 查看新帖 |

Chinaunix

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

[Mail] 请教:mx记录的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-03 13:45 |只看该作者 |正序浏览
如果一个邮件系统有多个mx记录,出现下面情况会如何投递?

abc.com.             86400   IN      MX      10 mx1.abc.com.
abc.com.             86400   IN      MX      20 mx2.abc.com.
abc.com.             86400   IN      MX      20 mx3.abc.com.
abc.com.             86400   IN      MX      10 mx4.abc.com.
abc.com.             86400   IN      MX      10 mx5.abc.com.


比如发信服务器选择发到mx1,而mx1挂掉了,发信服务器会向另一个优先级为10的服务器投递,还是发送到优先级为20的服务器,再由20的邮件服务器转发给其他优先级为10的服务器呢?

论坛徽章:
0
16 [报告]
发表于 2006-08-09 13:33 |只看该作者
啊?2821里不是说974被废除了么?
那这段话
If a matching record is found, all records at that preference level and higher-numbered ones MUST be discarded from consideration.
具体到底是啥意思啊?

论坛徽章:
0
15 [报告]
发表于 2006-08-07 13:18 |只看该作者
可能的顺序应该是

1)mx1,mx4,mx5 或者 mx4,mx5,mx1 ,或者 mx5,mx1,mx4

2)然后是 mx2,mx3 或者 mx3,mx2

[ 本帖最后由 ailms 于 2006-8-7 13:22 编辑 ]

论坛徽章:
0
14 [报告]
发表于 2006-08-07 13:13 |只看该作者
If a matching record is found, all records at that preference level and higher-numbered ones MUST be discarded from consideration.


这个和 lz 的问题不是同一个意思,而是指如何防止 mail loop 的

论坛徽章:
0
13 [报告]
发表于 2006-08-07 12:54 |只看该作者
恩,在RFC2821中确实提到了“ If a matching record is found, all records at that preference level and higher-numbered ones MUST be discarded from consideration. ”而且“It obsoletes RFC 821, RFC 974, and updates RFC 1123 ”
看来应该是按abel兄说的这样,谢谢!

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
12 [报告]
发表于 2006-08-07 10:17 |只看该作者
原帖由 ailms 于 2006-8-7 09:38 发表
这就是 RFC974 中摘出来的


  1. RFC 2821

  2.    Multiple MX records contain a preference indication that MUST be used
  3.    in sorting (see below).  Lower numbers are more preferred than higher
  4.    ones.  If there are multiple destinations with the same preference
  5.    and there is no clear reason to favor one (e.g., by recognition of an
  6.    easily-reached address), then the sender-SMTP MUST randomize them to
  7.    spread the load across multiple mail exchangers for a specific
  8.    organization.
复制代码

http://www.rfc-editor.org/cgi-bin/rfcsearch.pl?searchwords=rfc2821&opt=All+fields&num=25&format=ftp&orgkeyword=974&filefmt=txt&search_doc=search_all&match_method=prefix&abstract=absoff&keywords=keyoff&sort_method=newer

Obsoletes RFC821, RFC974, RFC1869, RFC10
Errata

论坛徽章:
0
11 [报告]
发表于 2006-08-07 09:38 |只看该作者
这就是 RFC974 中摘出来的

Note that
   multiple MXs may have the same preference value.  In this case, all
   MXs at with a given value must be tried before any of a higher value
   are tried.  In addition, in the special case in which there are
   several MXs with the lowest preference value,  all of them should be
   tried before a message is deemed undeliverable.

论坛徽章:
0
10 [报告]
发表于 2006-08-07 09:33 |只看该作者
写错了,是974

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
9 [报告]
发表于 2006-08-07 09:32 |只看该作者
794 ?

论坛徽章:
0
8 [报告]
发表于 2006-08-07 09:28 |只看该作者
RFC794
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP