I am looking for an option to enforce an envelope sender address in postfix for selected users, only. E.g., I want to permit user1@example.com to send mails as user1@example.com, only, while all other users shall be able to choose their from addresses freely.
I know I can work with smtpd_sender_login_maps and reject_sender_login_mismatch. But in my attempts, this has enforced envelope sender validation for all users. I also tried playing around with pcre tables, but wasn't able to find something like a wildcard match towards the end of the PCRE table.
E.g., this does not work:
# envelope sender owners (SASL login names)
/^user1@example.com$/ user1@example.com
/^(.*)*$/ ((?!user1@example.com).)*$
Any way to get this implemented only for a specific set of users?