The system that I am using for support tickets (Eventum from MySQL) suggests these steps for postfix:
Quote:
In /etc/mail/main.cf define
Code:
transport_maps = regexp:/etc/mail/transportregex
local_recipient_maps = unix:passwd.byname $alias_maps $transport_maps
Be sure to include your domain in mydestination
Code:
mydestination = $transport_maps, $myhostname, eventum.example.com
In /etc/mail/master.cf define eventum transport:
Code:
eventum unix - n n - 10 pipe
flags=DRhu user=apache argv=/usr/bin/php /var/www/html/eventum/misc/route_${nexthop}.php
Create /etc/mail/transportregex file:
Code:
/note-.*@eventum.example.com/ eventum:notes
/issue-.*@eventum.example.com/ eventum:emails
/drafts-.*@eventum.example.com/ eventum:drafts
Run postmap on that file
Code:
postmap /etc/mail/transportregex
|
That doesnt seem to work at all with this virtual mail setup, and I am not sure that maildrop is the way to go either - surely this is a native postfix thing as there are many apps that make use of this type of functionality - I just cant work it into this server setup....