Re-checked my settings, and apparently the port was missing..
It's now :

my $DB_dsn ="DBI:mysql:database=policyd;host=127.0.0.1;port=3306";
my $DB_user = "mailadmin";
my $DB_pass = "xxxxxxxxxxxxxxxx";

It seems to connect successfully now, but leaves me with a new error from
amavis :

policyd/process_policy: Failed to parse in queue id from received line



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nigel Kukard
Sent: Sunday, August 10, 2008 2:04 PM
To: [email protected]
Subject: Re: [policyd-users] problem with amavisd-policyd.pm

Hi,

> The error I get in amavis.log is :
> 
> Aug  8 12:34:45 mail01.cq-link.sr /usr/local/sbin/amavisd[21167]: 
> (21167-02) (!)[CORE] WARNING: Failed to connect to database: Error 
> connecting to database: Can't connect to local MySQL server through 
> socket '/var/run/mysqld/mysqld.sock' (40) (21167)

Looks more like a mysql problem to me ... is mysql server running?

Is that the right path for the local socket?

Can you connect to it using the mysql commandline interface?

-N


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users

Reply via email to