RT3, Exim 4, Apache, etc

There is an annoying problem with RT3 sending emails through exim are shown in outlook as being from [email protected], istead of the email assigned to the queue in RT (like [email protected]).

To fix this boolshit:

– add a line trusted_users: apache into exim config (you might need to replace apache with whatever user apache is running under)

– add a line [email protected] \”${if !eq {$header_From:}{}{$header_sender:$header_From:}fail}\” Fs in the rewrite section of exim config (adjust [email protected] to whatever fits you)

– restart/reload exim