1.Change
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
To **replacing port="25" with port="${app.smtp:25}" i.e an expression
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="${app.smtp:25}"/>
</outbound-socket-binding>
2. View the the "outbound remote" tab in http://localhost:9990/console/App.html#socket-bindings
3. The mail-smtp outbound socket is no longer is visible in the console.