The mail server is configured properly. It's probably some
security policies that prevent users from connecting from home.
RP has the same policy. If you are not within the school
network, the whole thing will fail. It has nothing to do with
configuration on either side.
Please use the school webmail instead.
Address is usually webmail.whatever.com
Unsure, ask your school admin.