The mail policy match priority must be modified so the From header is evaluated first and the Envelope Sender is evaluated second. This is done in the Mail Policy settings, where header priority controls how Cisco Secure Email Gateway matches messages to mail policies.