You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Jordi <jo...@cebria.info> on 2007/06/20 16:31:39 UTC
Spamassassin & Mysql
Some weeks ago I put a message but no one answer it. Two days ago I install
Spamassassin 3.2.1 to see if the problem were corrected and it continues.
Anybody have the same problem or have a solution?
----------
Hi,
Since today I'm using Spamsassasin 3.1.8 in a machine with two mysql
servers, one in port 3306 (socket: /tmp/mysql.sock) and another in port 3308
(socket: /tmp/mysql.sock2) with no problems.
Mysql stores the Scores, Autowhitelist and bayes information and I
configure this in "local.cf":
user_scores_dsn DBI:mysql:spamassassin:localhost:3308
user_awl_dsn DBI:mysql:spamassassin:localhost:3308
bayes_sql_dsn DBI:mysql:spamassassin:localhost:3308
AND to work with SPAMD daemon it was necesary to ADD the
$ENV{MYSQL_UNIX_PORT} = "/tmp/mysql.sock2";
at the beggining of the "/usr/bin/spamd" because by default it uses the
"/tmp/mysql.sock" (or the 3306 port).
Today I install the version 3.2.0 and this solution is NOT working, anyone
have the same problem?
The debug is:
dbg: auto-whitelist: sql-based unable to connect to database
(DBI:mysql:spamassassin:localhost:3308) : Can't connect to local MySQL
server through socket 'in/lesspipe.sh %s' (2)
I see that socket es taken randomly, some times is 'in/lesspipe.sh %s' and
other times is another.
Any ideas?
--
View this message in context: http://www.nabble.com/Spamassassin---Mysql-tf3952757.html#a11214638
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.