I've set up cluebringer.
Patched amavis, and tried to implement amavisd-policyd.pm
However, I'm getting errrors when the program tries to connect to to policyd
database in Mysql.
All perl/DBI/DBD/Mysql/SQLite packets have been installed (with apt-get,
this is a debian etch server)
This part of the code give problems :
package Amavis::Custom;
use strict;
#use lib('/usr/local/lib/policyd-2.0','/usr/lib/policyd-2.0');
use lib('/var/amavis/usr/local/lib/policyd-2.0');
my $DB_dsn = "DBI:mysql:database=policyd;host=localhost";
my $DB_user = "mailadmin";
my $DB_pass = "xxxxxxxxxxxxxxx";
As you can see policyd libraries are located in the amavis Chroot.
Mysql user/pass are used in amavis.conf itself, and in cluebringer.conf ->
Both work
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)
When i exclude the "include /etc/amavisd.policyd.pm" in amavisd.conf, no
more errors, but I'm missing some functionality right ?
Can anyone help me out.
By the way , I'm new to mailinglists, please forgive me if I'm not doing
this right.
If anyone needs more info or configs, let me know
Regards,
Jaap Westerbeek
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users