I have configured postfix for my kk.com domain successfully. Now I want to add function as described in below example.
Example:
if someone mail me at admin@kk.com, one php script will fetch information of sender email address and other detais of body (as per defined in php script) and store in some mysql database and automatically forward this mail to another postfix account like root@kk.com . I have little information that I need to configure main.cf and master.cf files in postfix and set some called alliance. I have configured postfix first time and I don't have deep knowledge of it.
What is this technique called ? How can I make this possible? Help me friends.