View Single Post
  #3  
Old 5th September 2009, 12:51
acoghlan acoghlan is offline
Junior Member
 
Join Date: Jan 2007
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
Default

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....

Last edited by acoghlan; 5th September 2009 at 12:55.
Reply With Quote