How to forward emails automatically?

Via its sieve settings or the managesieve protocol, yep.