End goal is to have different smtpd_*_restrictions per recipient.
I see restriction classes might solve this.
Can you supply more than one class in the access table?

smtpd_restriction_classes = permissive, restrictive1, restrictive2, restrictive3
    permissive = permit
    restrictive1 = reject_unknown_sender_domain
    restrictive2 = reject_unknown_client_hostname
    restrictive3 = reject_unknown_helo_hostname

smtpd_recipient_restrictions =
     check_recipient_access hash:/etc/postfix/recipient_access

/etc/postfix/recipient_access:
    [email protected]       permissive
    [email protected]      restrictive1 restrictive2 restrictive3

I would do this with sql instead of a flat file table and assume it would translate over the same.
If this isn't the answer is there another way to go about this?

Reply via email to