I have the problem with configuration of Postfix on my server. I have been used this link like tutorial for creating and configuration Postfix.
But, when I tried to test Postfix with command: postmap -q example.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
I got the error: postmap: warning: connect to mysql server 127.0.0.1: Can't connect to MySQL server on '127.0.0.1' (111) postmap: fatal: table mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf: query error: Connection refused
When I tried to test it with command: telnet 127.0.0.1 3306 or telnet localhost 3306
I got the error: Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
MySQL server worked and I couldn't find a way to fix this error.
Does somebody know what is the problem?