Rt-mailgate away from rt

I believe this has been asked many times before but I am not finding
info on the actual setup. I need to run rt-mailgate in our mailserver
which is in a different machine than rt. Does rt-mailgate need some
files from the rt distribution to run or it is self-sufficient? If it
does need files, which ones would I need to get?