You want to prevent users to not edit accounts name for a record name with the name Teacher
AND( NOT(ISBLANK(Email)), RecordType.DeveloperName = 'Teacher', RIGHT(Email, 12) <> '@abcschool.com' ) )