OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Postfix can't connect to mysql problem

From: mouss (moussnetoyen.net)
Date: Thu Aug 21 2008 - 10:38:58 CDT


Jes Andersen wrote:
> found out it was a chroot problem.
>
> My fix if any comes by the same problem was to add this to the startup script:
>
> if [ -e /var/run/mysqld/mysqld.sock ]; then
> if [ -e /var/spool/postfix/var/run/mysqld/mysqld.sock ]; th$
> rm /var/spool/postfix/var/run/mysqld/mysqld.sock
> fi
> mkdir -p /var/spool/postfix/var/run/mysqld
> chown mysql /var/spool/postfix/var/run/mysqld
> ln /var/run/mysqld/mysqld.sock /var/spool/postfix/var/run/m$
> fi

use TCP instead of creating mysql sockets all around your fs.