![]() |
Quick question about Postfix + MySQL
Hi,
I followed this guide: http://www.howtoforge.com/virtual_po..._quota_courier I reached the end of page 2, but the command "telnet localhost pop3" failed, so I went to check why. I found the following in my logs: Code:
Sep 10 02:32:40 server postfix/cleanup[22630]: warning: connect to mysql server unix:/var/run/mysqld/mysqld.sock: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)Code:
server:/etc/postfix# mysql -u mail_admin -p --socket=/var/run/mysqld/mysqld.sockCode:
server:/etc/postfix# cat mysql-virtual_forwardings.cfThanks! (P.S. this is the first time I've ever encountered a problem with one of your articles. Keep up the good work. :)) |
Little note I forgot to mention:
My current setup DOES work if I allow MySQL access from localhost via: iptables -I INPUT 1 -p tcp -s 127.0.0.1 --destination-port 3306 -j ACCEPT I would like to use it over a socket though! |
Still haven't resolved my socket syntax issue, but I have a more pressing concern atm:
Code:
Sep 10 13:21:28 server imaplogin: LOGIN, user=me@mysite.com, ip=[::ffff:127.0.0.1], protocol=IMAPWhy on EARTH would it take 40 seconds to query a local imap server? http://www.howtoforge.com/forums/images/smilies/eek.gif |
Please use 127.0.0.1 instead of the MySQL socket, and also switch off your firewall for now.
|
Ok, I am using 127.0.0.1 (although socket would be preferred... and faster), and everything seems to work ok.
Aside from viewing the Squirrelmail interface, which takes between 15 and 45 seconds to load a page. Any ideas? |
Quote:
|
| All times are GMT +2. The time now is 18:30. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.