> Thanks for the quick responses. Just one other question I have. > > Looking at the cluebringer.conf file and amavisd-policyd.pm files, the > line for the dsn for the database for mysql looks like: > #DSN=DBI:mysql:database=cluebringer;host=localhost > #my $DB_dsn = "DBI:mysql:database=cluebringer;host=localhost"; > > Had a quick look for perl howtos (my MySQL isn't on the standard port > so I wanted to select port as well) and the syntax shows as: > $DSN = "dbi:mysql:database:host:port" > > Is the semi-colon a mistype or are you parsing the line before handing > it to perl?
Its not parsed in any way by policyd, its passed as-is to DBI. > If you're parsing it first, would ";port=<portnumber>" work to allow > connection to a non standard port for MySQL? DBI:mysql:database=$database;host=$hostname;port=$port Try something like that, replace everything beginning with a $ with your own data. -N _______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users
