Hey everyone,
I wasn't quite sure whether this belonged under networking or not.
Basically, I need to route all e-mails to mydomain.com to one PHP script, and store the results in the DB.
The keyword/username before "@mydomain.com" needs to be stored in a column by itself (this word is chosen by the user and provides them with a matching vanity URL and webmail address).
I think I need to set up wildcards in my alias/config files...
/etc/postfix/virtual:
Code:
@mydomain.com webmail@mydomain.com
/etc/aliases:
Code:
webmail@mydomain.com: "| php -q /var/www/webmail_incoming.php"
I think I'd need some way to retain the username before the '@', so that when I hit /etc/aliases, I could give webmail_incoming.php that username through $_GET, maybe?
Thanks in advance for any assistance!