How to add header_checks in postfix with regex

NethServer Version: 8.
Module: Mail

How would I go about to add regex header_check in postfix. For instance to hide User-Agent or IP in NethServer 8 just like in the post referring to NethServer 7:

I found the following dir to add something to main.cf but have not gotten it to work…
/home/mail1/.local/share/containers/storage/volumes/postfix-custom/_data/

Any ideas? Thanks!