Make sure your .pm files in /opt/MailScanner/lib/MailScanner/CustomFunctions has the proper user/password/database information.
Make sure you have the following set in /opt/MailScanner/etc/MailScanner.conf
MTA = postfix
Always Looked Up Last = &BaruwaSQL
Is Definitely Not Spam = &BaruwaWhitelist
Is Definitely Spam = &BaruwaBlacklist
Required SpamAssassin Score = &BaruwaLowScore
High SpamAssassin Score = &BaruwaHighScore
The URL should be the dns name of your spamsnake.