Revert "Revert "ACT-1699 Mail configuration from JNDI""

This reverts commit 53c4a57ed4a1433958c3521e79febf8596e2c590.
Mistake reverted