tag:blogger.com,1999:blog-4531223942882864425.post6745895870303102071..comments2024-02-14T20:47:38.215+08:00Comments on My Linux Life: postfix can't connect to MySQLZamrihttp://www.blogger.com/profile/06523690857579401169noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4531223942882864425.post-89710958428032922282012-10-24T22:46:44.520+08:002012-10-24T22:46:44.520+08:00Thanks for the tip. This is like a easy workaround...Thanks for the tip. This is like a easy workaround if you happen to bump into. Of course, running postfix chrooted is better in terms of security.<br /><br />However, thanks anyway. I might look into it again and try your suggestion. Have fun.Zamrihttps://www.blogger.com/profile/06523690857579401169noreply@blogger.comtag:blogger.com,1999:blog-4531223942882864425.post-23472914940652762402012-10-22T12:35:31.500+08:002012-10-22T12:35:31.500+08:00In a Serverfault/Stackoverflow question I was read...In a Serverfault/Stackoverflow question I was reading, if you use the magical keyword "localhost" with mysql, it will try to use the socket file on the filesystem.<br /><br />So, when I ran into this problem, I realized that postfix is in a chroot, and that probably makes it so it can't get to the socket.<br /><br />So, I tried specifying "127.0.0.1" in the postfix config instead of 'localhost' and it worked.<br /><br />I was hesitant to follow your post, because I did not know what security implications it had (does it take postfix out of the chroot? Water down the chroot? I don't know).Anonymousnoreply@blogger.com