unfortunately i try to configure the whitlisting in the smtpd_(client|sender|recipient)_restrictions without success so far. The basic spam protection is quite restrictive and for certain clients, senders and recipients I want to skip some checks. Nevertheless, these mails go through the following processes, here explained by the example of smtpd_client_restrictions:
smtpd_restriction_classes = permissive, …
permissive = permit
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_client_hostname,
reject_unknown_reverse_client_hostname,
check_client_access mysql:/etc/postfix/conf/wl_clients.cf,
check_client_access mysql:/etc/postfix/conf/bl_clients.cf,
check_client_access cidr:/etc/postfix/conf/postfix_client_access.cidr,
check_policy_service unix:private/policyd-spf,
check_policy_service inet:192.168.164.1:12525,
pcre:/etc/postfix/conf/postfix_prepend-clientIP.pcre
In the table of wl_clients.cf, for example, the client "provider.tld" has the action "OK" or "permissive" and the mails are still checked by the policyd-weight, which I actually want to avoid for them. For the corresponding clients everything should be done with an OK in the smtpd_client_restrictions and then they should go through the smtpd_sender_restrictions and smtpd_recipient_restrictions.
It also doesn't work if I put everything concerning white-/blacklisting into the smtpd_recipient_restrictions. The mails go through all steps up to the further transport. Strangely enough, the REJECT works without any problems. Do I use a wrong keyword or is the concept not set up correctly? Thank you very much for your help!