There is a good example of this here:
http://www.madpenguin.org/blogs/chapeaurouge/?p=70
I had to clean up the script a bit as it is not cut and paste friendly, and it needs a minor correction in the zenity line as the options should have -- instead of just - (i.e. --warning --text= etc.) but other then that I was up and running in just a few minutes.
I haven't figured how to do outbound scanning yet. well I can do it but it fails to stop the e-mail from sending if it has a virus so I'll have to look into that further.
Hope this helps
Freemor