To block all traffic on port 25 in a SonicWall, follow this link:

https://support.software.dell.com/kb/sw5623