PDA

View Full Version : Mail Can't connect to MySQL server


Sascha833
17th July 2009, 19:45
Hi
If i send an mail i get this error in my logs:
Jul 17 11:35:06 saschas-web postfix/proxymap[9561]: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111)
But my db user and pass in the postfix configuration are 100% correct. I also set an # for bind adress 127.0.0.1 in the my.conf

falko
18th July 2009, 12:08
What's the output of netstat -tap?
Which distribution do you use?

Sascha833
18th July 2009, 14:51
Now i get "Relay access denied". But can i order postfix to use only 127.0.0.1 for database connections? Because i think remote mysql access is not so good. I use Debain Lenny 64bit

till
19th July 2009, 14:13
Mysql is using 127.0.0.1 as your error message says, so it is using local connections. But your mysql server blocks this. So please answer falkos question if you want that we are able to help you!