1. Open the "Alligate SMTP Gateway Control Panel". (Start -> All Programs -> Alligate)
2. From the selection menu click on “Message Scanning” option and set the settings as per your requirement.
I have attached screen capture of the same with some settings which will provide you better information.