How to add header with bcc recipient

NethServer Version: 8, core 3.7.1
Module: mail 1.6.3
Hello,
we send a copy of all messages to an archive (Mailstore) where messages are archived by recipient. With emails sent to mailling-lists (by bcc) there is no “to” so it’s a problem to sort them in.
In NS7 we added to postfix configuration via e-smith custom configuration

/etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_recipient_access pcre:/etc/postfix/recipient_access.pcre

/etc/postfix/recipient_access.pcre
/(.+)/ prepend X-Original-To: $1

as mentioned here or here (german)

Would anybody please help me with this in NS8?
I know, overrides should be placed in /etc/postfix/main.cf.d/ (github doc) but how do I add! this to the existing smtpd_recipient_restrictions ?
Or is there a completely different way in NS8?

postconf -n gives

smtpd_recipient_restrictions = reject_non_fqdn_recipient, check_recipient_access inline:{ hinz-bt.de=reject_unverified_recipient hinz-hh.de=reject_unverified_recipient hinz.de=reject_unverified_recipient hinzorg-koeln.de=reject_unverified_recipient },
smtpd_relay_restrictions = permit...

Regards
Uwe

Answering my own question

I copied the smtpd_recipient_restrictions part of the original main.cf into a custom configuration file and added my own line
the container does not contain pcre so I had to use regexp (thanks to Davide )

! When the configured domains change, one will have to adjust the custom config!
Did not figure out how to just add a line to an existing parameter.

// /etc/postfix/main.cf.d/x-add-envelope-to.cf
smtpd_recipient_restrictions =
  reject_non_fqdn_recipient,
  check_recipient_access inline:{ mydomain.de=reject_unverified_recipient },
  check_recipient_access regexp:/etc/postfix/main.cf.d/x-add-envelope-to,
// /etc/postfix/main.cf.d/x-add-envelope-to
/(.+)/  prepend X-Envelope-To: $1

Uwe