I am trying to get WHMCS to pass variables to a script that registers new email addresses.
I have the shell command postfixadmin-cli set up to create new email addresses and I have a product order working that accepts custom fields (validated email address and password fields).
However, I'm not sure how to get these fields passed to a shell script.
Would I use the CustomFieldSave hook to achieve this?
The bash script that I need to call look like this:
```bash
#!/bin/bash -x
uaddress=$1
upassword=$2
postfixadmin-cli mailbox add $useraddress --password $upassword --password2 $upassword
```