SMTP relaying

I’m trying to figure out a way to setup a debian virtual machine to relay emails from external sources to an internal Exchange Server.

The Exchange Server is on an internal network and only allows emails to be sent from hosts within the network. I need the debian machine to authenticate(username, password) requests coming from the outside and then relaying authenticated messages to the exchange server which will send them out.

I’m wondering what kind of software I should use on the debian machine to handle this, would Exim work? I’m pretty new to working with email software but I have been working with debian for quite a while.