View Single Post
Old 10-23-2009, 02:55 AM   #2
Junior Member
 
Join Date: Oct 2009
Posts: 7
Vito Botta is on a distinguished road
Default

Solved.

Just in case somebody else needs this as well:

1) open /etc/mail/local-host-names and add a line with your domain name

2) open /etc/mail/virtusertable and add
@yourdomainname.com CIT

(you can use whatever vitual user name instead of CIT)

2) open /etc/aliases and add
cit: "| /website/root/script/runner -e production 'Mailman.receive(STDIN.read)'"

3) newaliases && postfix reload

4) make sure the x permissions on your script and the w permissions on the log sub folder (for Rails apps) are OK (I just chmod'ed 777 as am the only user etc)

This should also work to redirect all incoming email for a domain to PHP scripts or others, I think
Vito Botta is offline