mjesec installation of dspam
sudo apt-get install dspam libdspam7-drv-pgsql

Automatic installation using PostgreSQL doesn't really work, so we will do it manually:
createuser dspam
createdb --owner dspam --encoding utf-8 dspam

cd /usr/share/doc/libdspam7-drv-pgsql
psql dspam dspam < pgsql_objects.sql
psql dspam dspam < virtual_users.sql

And then, more or less follow http://www.kirya.net/articles/setting‑up‑dspam‑as‑a‑filter‑for‑postfix‑on‑debian‑sarge/