View Single Post
Old 04-01-2011, 09:40 AM  
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Forgot all about this thread. Hope you got it going. If not try this

check postfix main.cf and make sure your subdomain is listed. I think it needs to be defined in virtal_alias_domains. never tried it with a subdomain so not too sure on this

/etc/postfix/virtual
[email protected] babaganoosh

then edit your /etc/aliases
babaganoosh: "|/usr/bin/php -q /path/to/your/script"

Then run the following commands
postmap /etc/postfix/virtual
/etc/init.d/postfix restart
newaliases

This works on Ubuntu 10.04

Edit: You do not need to set up a system user for your alias.
__________________
I like pie.

Last edited by Babaganoosh; 04-01-2011 at 09:42 AM..
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote