The email security company secures funding ahead of plans to list on public markets by the end of 2025.