I would like to be able to directly control multiple e-mail aliases without going through the web-based control panel. My end goal is to create a PHP script that can add or modify mail forwarding (that is, set up forwarding from email@example.com to firstname.lastname@example.org, through my own web site).
I haven’t been able to figure out where this forwarding information is stored on the server (doesn’t seem as simple as one .forward file). However, in the “addresses” section of the web-based control panel, there is an option to “bulk edit your forwarding-only addresses.” All of that information appears to be coming from one file… is that true, and if so, where is that file?
Is there any text file anywhere on the server that I can easily modify with a PHP script to add or modify all e-mail aliases?
I don’t imagine this is very complicated, but I haven’t been able to figure it out on my own yet, so I would greatly appreciate any help!