I'm struggling to integrate Postfix with RT. I'm new to all this so I might be doing some dumb mistakes.
AFAIU, Postfix and RT integrate with a mapping between the RT queue and the recipient address in the /etc/alias file.
We have done this for two queues:
support: "|/opt/rt4/bin/rt-mailgate --queue general --action correspond --url http://localhost"
support-urgent "|/opt/rt4/bin/rt-mailgate --queue urgent --action correspond --url http://localhost"
So whenever an email is sent to support@company.com, it gets in queue general and whenever it is sent to support-urgent@company.com, it gets in the other queue.
However, we'd like to simplify the life of our customers by only communicating one single email address to them: support@company.com.
We'd then maintain a list of customers for whom we have a contract that gives them priority.
Basically, we'd need to do some conditional recipient rewriting based on a lookup on the sender address. If X@customerA.com is in our priority list, the recipient address should be changed to support-urgent@company.com for rt to pick it up in the right queue. If B@companyB.com is not on the list, then no rewriting would be necessary.
Is this simple to do or would I require a second Postfix instance on another port?
Thanks for any help or clues. Seb.