Is is legal for your landlord to open your post without consent?

No, not in any jurisdiction I know of.