OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: mysql core dump PATCH (again)
From: Piotr Klaban (maklerman.torun.pl)
Date: Tue Dec 19 2000 - 08:44:54 CST


On Tue, Dec 19, 2000 at 03:21:32PM +0100, Sébastien Delille wrote:
> * $ postmap -d anything mysql:/etc/postfix/mysql-virtual.cf
> -> Segmentation fault
>
> Is the -d option supposed to work with a MySQL map ??
IMHO -d does not work, and should not be used, because
MySQL tables are too complicated sometimes and postfix
need to have different query syntax in order to delete anything.
Use another interface to access MySQL tables (to add, search, view
or delete records).

> * MySQL virtual map lookup doesn't work from Postfix :
>
> postfix/cleanup[24482]: warning: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111)
 From errno.h:
#define ECONNREFUSED 111 /* Connection refused */
 it means that your mysql process does not work or does not
 have socket available, or there is another problem (dir permissions?).
 Why then the postmap -q ... program is working? Use -vvvv
 switch with 'postmap -q' to see how your mysql is accessed.

-- 
Piotr Klaban