Hey All,
I'm developing a site on a VPS that comes stock with dovecot 1.2.17 and I'm trying to setup some functionality that is very specific to our business model.
My question is this: How do I create (programatically) aliases for a forwarder?
I have an address, email@domain.com that gets sent to a php script and I want users to be able to send to that script via any number of different names (could ultimately be 1000's).
I'm thinking that I append/delete from the etc/aliases file and then run #newaliases
So that email@domain.com will answer on dummy@domain.com or dothis@domain.com, once the email comes in, I can check the header, get who it was really sent to, do all my checks, perform the necessary action blah blah blah... and be able to do it all on one piece of code (my fantasy LOL).
Am I on the right track here or is this simply not going to work?
Thanks,
Pete