Add forwaders with Linux command

I want to make a function so that I can make e-mail forwarders via my own PHP page. I can send commands to the server (Linux) in PHP. But how can I add e-mail forwarders with a Linux command, or isn't this possible?