ДД!
По статье HOW_TO http://www.opennet.me/base/net/postfix_mail_guide.txt.html пытаюсь установить Postfix. Postfix при попытке отправить через него письмо пишет:/var/maillog:
Jul 19 18:45:40 mail postfix/trivial-rewrite[987]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "user", database "base", SSL off?
Jul 19 18:45:40 mail postfix/trivial-rewrite[987]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "user", database "base", SSL off?
Jul 19 18:45:40 mail postfix/trivial-rewrite[987]: fatal: pgsql:/usr/local/etc/postfix/alias.cf(0,100): table lookup problem
Jul 19 18:45:41 mail postfix/master[879]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 987 exit status 1
Jul 19 18:45:41 mail postfix/master[879]: warning: /usr/local/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Jul 19 18:45:41 mail postfix/smtpd[897]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jul 19 18:45:41 mail postfix/smtpd[897]: warning: problem talking to service rewrite: Unknown error: 0
/usr/local/etc/postfix/main.cf
.....
virtual_alias_maps=pgsql:/usr/local/etc/postfix/alias.cf
....
/usr/local/etc/alias.cf
host=localhost
user=user
password=password
dbname=base
table=aliases
select_field=alias
where_field=username
1. Файл pg_hba.conf лежит в /usr/local/etc/pgsql/data
2. при попытке зайти таким же пользователем 'user' с паролем 'password' в базу base руками и сделать "select * from aliases;" все работает!
Направьте пожалуйста!