最新消息:

postfix中recipient/client/sender/helo四者的区别

mail admin 4440浏览 0评论

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

  1. smtpd_recipient_restrictions
  2. smtpd_client_restrictions
  3. smtpd_sender_restrictions
  4. smtpd_helo_restrictions

首先得明白recipient, client, sender, helo的意思:

  1. recipient 就是指收件人,即RCPT TO阶段的收件人
  2. client指的是连接到postfix的客户机的ip地址,这里包含了ip地址及ip反解
  3. sender就是来信人,即MAIL FROM的内容
  4. 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

转载请注明:爱开源 » postfix中recipient/client/sender/helo四者的区别

您必须 登录 才能发表评论!