venol
April 9th, 2011, 05:14 PM
Hello all, I need help about postfix. I want to make mail server with virtual account for postfix and listed in mysql database. So I create file configuration postfix to mysql Database. The file is "mysql_virtual_mailbox_domains.cf" and contains like this :
hosts = 127.0.0.1
user = postfix
pass = password
dbname = postfixdb
query = select 1 from virtual_mailbox where nama_domain='%s'
Then, I create user postfix on mysql with access to database "postfixdb". I test with command "
mysql --user=postfix --password=password postfixdb
" and it works. But, when I test with "postmap -q example.com mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf" the result is . .
postmap: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
what's problem?
hosts = 127.0.0.1
user = postfix
pass = password
dbname = postfixdb
query = select 1 from virtual_mailbox where nama_domain='%s'
Then, I create user postfix on mysql with access to database "postfixdb". I test with command "
mysql --user=postfix --password=password postfixdb
" and it works. But, when I test with "postmap -q example.com mysql:/etc/postfix/mysql_virtual_mailbox_domains.cf" the result is . .
postmap: warning: connect to mysql server 127.0.0.1: Access denied for user 'postfix'@'localhost' (using password: YES)
what's problem?