To migrate Apple Mail rules from one Mac to another, copy over ~/Library/Mail/V4/MailData/SyncedRules.plist, then enable them manually or copy RulesActiveState.plist. Tested on macOS 10.12.5.