After creating the dotlrn database with owner www-data the package tries to create again the postgres user www-data and then exits after these output messages:
Creating config file /etc/aolserver4/dotlrn-db.tcl with new version
spawn su - postgres -s /bin/sh -c createuser -A -D -P -E -q www-data