VR wrote:
> Is there a limit to how many check_*_access hash, pcre, regex files
> you can have under a given restriction in postfix 2.3?
>
> Not specifically client_restrictions but this is the general idea:
>
> main.cf:
> smtpd_client_restrictions=
> check_client_access hash:/etc/postfix/reject_by_ip
> check_client_access hash:/etc/postfix/reject_by_hostname
> check_client_access hash:/etc/postfix/ok_by_ip
> check_client_access hash:/etc/postfix/ok_by_hostname
>
> Would the above be valid?
It is valid as long as there is whitespace before each new line if
entered above in main.cf.
smtpd_client_restrictions=
  check_client_access hash:/etc/postfix/reject_by_ip
  check_client_access hash:/etc/postfix/reject_by_hostname
  check_client_access hash:/etc/postfix/ok_by_ip
  check_client_access hash:/etc/postfix/ok_by_hostname

First one to give a result wins, all of the rest are ignored in that
restriction class.

Reply via email to