Hi,
I have installed the latest available (experimental) version of
dbmail (actually, dbmail-pgsql) on test box.
When I try to (re)start it, I get the following response
epia01:~# /etc/init.d/dbmail restart
Stopping dbmail servers: No dbmail-imapd found running; none killed.
No dbmail-pop3d found running; none killed.
done.
/etc/init.d/dbmail: line 141: 29460 Segmentation fault /usr/sbin/dbmail-users -l
2>&1 >/dev/null
Dbmail cannot connect to the database server. Please make sure
/etc/dbmail/dbmail.conf is correct, the database-server is running,
the database for dbmail exists, and the dbmail user exists with all
necessary permissions. To re-configure /etc/dbmail/dbmail.conf run
'dpkg-reconfigure dbmail'.
-- PostgeSQL is running. So, there is nothing wrong with that.
-- The database for dbmail does exist. I have created it from the
example script provided in the package.
-- The user 'dbmail' does exist. Its home dir is /dev/null.
I have altered its group memmbership to be root and/or dbmail
but I still get the above error.
-- I can connect to PostGreSQL from a remote client with
port: 5432
user: dbmail
pwd: dbmail
db: dbmail
So, it appears that the DB side is OK.
I am not sure what I am doing wrong. It could be many things;
such as,
-- do I have to install 'dbmail-pgsql-ldap' package too? Can't it
run stand-alone. (ATM, I am just trying to get it going)
-- 'dpkg-reconfigure dbmail' does not alter the above message,
so, I am suspecting the this stuff in the /etc/dbmail/dbmail.conf
[DBMAIL]
# Database settings
host=localhost
user=dbmail
pass=dbmail
db=dbmail
sqlport=
sqlsocket=
# trace level for dbmail-maintenance
TRACE_LEVEL=5
Does it need to be told what 'sqlport' and 'sqlsocket' should be?
Any insight would be mush appreciated.
Cheers,
Ray