cjcmay 发表于 2015-9-15 11:02:17

postfix中recipient/client/sender/helo四者的区别<转载>

  postfix在main.cf中用下面四个做限制,那么这四者到底有什么区别?

[*]smtpd_recipient_restrictions
[*]smtpd_client_restrictions
[*]smtpd_sender_restrictions
[*]smtpd_helo_restrictions
  首先得明白recipient, client, sender, helo的意思:

[*]recipient 就是指收件人,即RCPT TO阶段的收件人
[*]client指的是连接到postfix的客户机的ip地址,这里包含了ip地址及ip反解
[*]sender就是来信人,即MAIL FROM的内容
[*]helo就是HELO阶段,由客户机发送过来的helo主机名
  这4个restriction就是对上述4个特征内容进行限制的。区别就不言而明了,至于说执行的次序,这个和SMTP命令产生的顺序是一样的,首先是CONNECT阶段(client),然后发送HELO(helo),再是MAIL FROM(检查sender),再到RCPT TO(检查recipient)。
  smtpd_xxx_restrictions可以配置的规则请看:
http://www.postfix.org/postconf.5.html#smtpd_recipient_restrictions
  转载请注明:爱开源 &raquo; postfix中recipient/client/sender/helo四者的区别
页: [1]
查看完整版本: postfix中recipient/client/sender/helo四者的区别<转载>