On Mon, Mar 28, 2016, at 04:25 PM, Viktor Dukhovni wrote:
> ratineer.com. 600 IN NS kilmer-dns2.synapp.io
>
> main.cf:
> smtpd_client_restrictions =
> check_ns_access pcre:${config_directory}/ns-access.pcre
>
> smtpd_restriction_classes = no_mta_wk
>
> no-mta-wk =
> reject_unknown_client,
> check_client_access pcre:${config_directory}/no-mta-wk.pcre
>
> ns-access.pcre:
> /\.synapp\.io$/ no_mta_wk
>
> no-mta-wk.pcre:
> /^mta-wk-\d/ REJECT -Your reject message here-
well THAT'S pretty cool!
Thanks for the example -- learning something new about restriction classes!
Question about hyphen vs underscore --
In your example you use
no-mta-wk =
IIUC, that's not referenced above. Should that be
no_mta_wk =
?
Thanks.