OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: mysql support won't work--but no errors

From: stg Ideeel Internet (Joris) (jorisideeel.nl)
Date: Thu Oct 02 2003 - 02:40:36 CDT


At 03:21 02/10/2003 +0100, you wrote:
>On Wed, 01 Oct 2003 21:10:12 -0400
>lmh <lhdex.com> wrote:
>
>
> > >
> > I spoke a bit too soon. Now I have a compiled and installed Postfix
> > system. However when I start it I get the following message in
> > /var/log/mail/warnings:
> >
> > Oct 1 20:29:50 paris postfix/cleanup[29243]: warning: connect to mysql
> server unix:/var/lib/mysql/mysql.sock: Can't connect to local MySQL
> server through socket '/var/lib/mysql/mysql.sock' (2)
> > Oct 1 20:29:50 paris postfix/cleanup[29243]: warning: 12904149E9:
> virtual_alias_maps map lookup problem for avalidusermyvaliddomain.com
> > Oct 1 20:29:50 paris postfix/cleanup[29243]: warning: 12904149E9:
> skipping further client input
> > Oct 1 20:29:50 paris postfix/pickup[29241]: warning:
> maildrop/308F15C3FC: Error writing message file
> >
> > The system then throttles.
> >
> > The line which reads
> >
> > unix:/var/lib/mysql/mysql.sock:

If you are running postfix in a chroot jail you cannot access the socket
-> check master.cf if that is the case

possible solutions:
* change master.cf

or

* have postfix connect to 127.0.0.1 instead of to the socket (has been
claimed to be a tiny bit slower on high-load systems)

or

* move the socket inside the chroot but know that other programs will have
more difficulty connecting to it

joris