0
與後綴服務器配置I'm有問題,不容找到一個答案後綴+ PSQL(認證問題)
I'm設置郵件服務器,使用後綴像控制器和PostgreSQL保存,即時通訊用戶數據,我可以運行除pgsql連接之外的所有服務器配置。
用於連接到數據庫的用戶是「app_postfix」和通過「AB_CD」(是不是真正的密碼)
我在Postgres在文件pg_hba.conf的配置是下一個:
# Database administrative login by Unix domain socket
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
host email app_postfix 127.0.0.1/32 md5
host email app_courier 127.0.0.1/32 md5
host email app_sasl 127.0.0.1/32 md5
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local replication postgres peer
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
Ÿ對拉conexiónCON LA基地去DATOS realizo LO siguiente,恩報德檔案館後綴: 和與數據庫的連接我用這個在main.cf:
virtual_mailbox_maps = pgsql:/etc/postfix/db/users.cf
virtual_maps = pgsql:/etc/postfix/db/aliases.cf
aliases.cf:
#hosts = 127.0.0.1
user = app_postfix
password = ab_cd
dbname = email
query = SELECT "email_local" FROM users_aliases WHERE "email_alias" = '%s'
users.cf:
#hosts = 127.0.0.1
user = app_postfix
password = ab_cd
dbname = email
query = SELECT "path_maildir" FROM users WHERE "email_local" = '%s' AND "user_active" = '1'
錯誤代碼是這一個:
warning: connect to pgsql server localhost: FATAL: password authentication failed for user "app_postfix"?FATAL: password authentication failed for user "app_postfix"?
謝謝!
爲什麼'hosts'條目發表評論? –