On 07-09-2021 7:44 pm, Viktor Dukhovni wrote:

You don't need restriction classes for these specific cases,
they can be used directly:

    /etc/postfix/recipient_access:
         joe@my.domain       permit
         jane@my.domain      reject_unknown_sender_domain,
                             reject_unknown_client_hostname,
                             reject_unknown_helo_hostname


Thank you, i think that will work.
I assume i can return that from an sql query as a single string like

     SELECT restrictions FROM rules WHERE email=%s

And in sql the restrictions column can store
"reject_unknown_sender_domain,reject_unknown_client_hostname"

Reply via email to