> On May 15, 2018, at 11:38 AM, Stefan Bauer <[email protected]> wrote:
>
> I can not think of a way to achieve this.
It is unclear what combination of criteria you want to use.
What naïvely makes sense to me is that the client hosts in
question are to be restricted to a particular sender address
and to particular recipient domains. If so:
main.cf:
cidr = cidr:${config_directory}/
texthash = texthash:${config_directory}/
smtpd_client_restrictions = check_client_access ${cidr}client.cidr
smtpd_restriction_classes = restricted_sender, restricted_rcpt
restricted_sender = check_sender_access ${texthash}restricted-sender
restricted_rcpt = check_recipient_access ${texthash}restricted-rcpt
client.cidr:
192.0.2.1 restricted_sender
restricted-sender:
[email protected] restricted_rcpt, reject
restricted-rcpt:
example.org OK
example.net OK
example.edu OK
Restriction classes can nest.
--
Viktor.