Filter comments through the Akismet web service to detect and eliminate spam ([1]). You'll need a WordPress.com API key to use it.
This is a standard, default module. It comes with Gallery 3, but it is not activated by default.
Activation of the Akismet Module
Akismet Spam Filtering screen