List Info

Thread: cant connect mysql.sock




cant connect mysql.sock
user name
2007-09-11 14:26:45
emails sent to localhost same domain works perfectly but receiving from other domains the error appears:

Sep 11 19:19:39 dbmail postfix/smtpd[3873]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

im running the postfix as chroot same setup as

http://dbmail.org/dokuwiki/doku.php?id=gentoo:postfix_-_sasl_tls_-_mailscanner_-_dbmail

running on rh5 and mysql 5.1

--
Thanks and God bless!
Re: cant connect mysql.sock
country flaguser name
United States
2007-09-11 17:11:01
On Tue, Sep 11, 2007, danzel daniel <danzelziggygmail.com> said:

> emails sent to localhost same domain works perfectly
but receiving from
> other domains the error appears:
> 
> Sep 11 19:19:39 dbmail postfix/smtpd[3873]: warning:
connect to mysql server
> localhost: Can't connect to local MySQL server through
socket
> '/var/lib/mysql/mysql.sock' (2)
> 
> im running the postfix as chroot same setup as
> 
> http://dbmail.org/dokuwik
i/doku.php?id=gentoo:postfix_-_sasl_tls_-_mailscanner_-_dbma
il
> 
> running on rh5 and mysql 5.1

If postfix is in a chroot, make sure that MySQL is exposing
a socket
there. In this HOWTO, the author recommends using a bind
filesystem to
bring /var/run/mysqld into the chroot. Your postfix is
looking in
/var/lib/mysql.


Aaron
_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )