I use Postfix for my localhost MTA on my RT server, and this works fine to relay to my Barracuda service for all RT outbound mails.
But now I have a queue for a different organization, and the email address for this queue is a different domain on Office 365. I set the queue response address in the RT UI to this address, but naturally these emails are ending up in spam because my Barracuda service is not authorized to send from that domain.
So I tried to make my postfix conditionally use a “sender specific transport” so if emails are from support@NEWCOMPANYQUEUE.com it will use the office365 SMTP server with authentication.
But this did not work, I think because ALL emails from RT are currently having an Envelope Sender which is “www-data” instead of the correct From: address .
I could maybe fix this with the RT config option SendMailArguments “-f firstname.lastname@example.org” , but this would not solve my original problem, where I need outbound mail to use a different envelope sender and ultimately different outbound SMTP server for that queue …
Please help! Thanks