ДД!Что может быть - почему вдруг postfix не может взять достучаться до базы pgsql? Про проблему связи postfix-f с базой я уже спрашивал - потом вроде бы сделал отправку почты работало до того момента как я начал настраивать pop/imap сервер courier - все, опять почту postfix не отправляет. Что делать не знаю! Кто знает - помогите!!
Что пишет maillog:
Jul 24 15:33:37 mail newsyslog[348]: logfile first created
Jul 24 15:33:41 mail postfix/postfix-script: starting the Postfix mail system
Jul 24 15:33:41 mail postfix/master[572]: daemon started -- version 2.3.0, configuration /usr/local/etc/postfix
Jul 24 15:34:45 mail postfix/smtpd[647]: warning: 192.168.x.x: address not listed for hostname faxserver.x.ru
Jul 24 15:34:45 mail postfix/smtpd[647]: connect from unknown[192.168.x.x]
Jul 24 15:34:45 mail postfix/trivial-rewrite[648]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:34:45 mail postfix/trivial-rewrite[648]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:34:45 mail postfix/trivial-rewrite[648]: fatal: pgsql:/usr/local/etc/postfix/pgsql/alias.cf(0,lock|fold_fix): table lookup problem
Jul 24 15:34:46 mail postfix/master[572]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 648 exit status 1
Jul 24 15:34:46 mail postfix/smtpd[647]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jul 24 15:34:46 mail postfix/smtpd[647]: warning: problem talking to service rewrite: Unknown error: 0
Jul 24 15:34:47 mail postfix/trivial-rewrite[651]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:34:47 mail postfix/trivial-rewrite[651]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:34:47 mail postfix/trivial-rewrite[651]: fatal: pgsql:/usr/local/etc/postfix/pgsql/alias.cf(0,lock|fold_fix): table lookup problem
Jul 24 15:34:48 mail postfix/master[572]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 651 exit status 1
Jul 24 15:34:48 mail postfix/master[572]: warning: /usr/local/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Jul 24 15:34:48 mail postfix/smtpd[647]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jul 24 15:34:48 mail postfix/smtpd[647]: warning: problem talking to service rewrite: Unknown error: 0
Jul 24 15:35:48 mail postfix/trivial-rewrite[663]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:35:48 mail postfix/trivial-rewrite[663]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:35:48 mail postfix/trivial-rewrite[663]: fatal: pgsql:/usr/local/etc/postfix/pgsql/alias.cf(0,lock|fold_fix): table lookup problem
Jul 24 15:35:49 mail postfix/master[572]: warning: process /usr/local/libexec/postfix/trivial-rewrite pid 663 exit status 1
Jul 24 15:35:49 mail postfix/master[572]: warning: /usr/local/libexec/postfix/trivial-rewrite: bad command startup -- throttling
Jul 24 15:35:49 mail postfix/smtpd[647]: warning: premature end-of-input on private/rewrite socket while reading input attribute name
Jul 24 15:35:49 mail postfix/smtpd[647]: warning: problem talking to service rewrite: Unknown error: 0
Jul 24 15:36:49 mail postfix/trivial-rewrite[668]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
Jul 24 15:36:49 mail postfix/trivial-rewrite[668]: warning: connect to pgsql server localhost: FATAL: no pg_hba.conf entry for host "::1", user "postfix", database "mailbase", SSL off?
>Jul 24 15:36:49 mail postfix/trivial-rewrite[668]: warning: connect to pgsql server localhost: FATAL:
> no pg_hba.conf entry for host "::1", user "postfix", database "mailbase",
>SSL off?
>Jul 24 15:36:49 mail postfix/trivial-rewrite[668]: warning: connect to pgsql server localhost: FATAL:
> no pg_hba.conf entry for host "::1", user "postfix", database "mailbase",
>SSL off?
Ну впринципе не замысловато так отвечает.
Для начала:
less /_path_to_pgsql_folder_/data/pg_hba.conf | grep -v #
postconf -m
>Ну впринципе не замысловато так отвечает.
>Для начала:
>less /_path_to_pgsql_folder_/data/pg_hba.conf | grep -v #
>postconf -m
# TYPE DATABASE USER CIDR-ADDRESS METHOD#"local" is for Unix domain socket connections only
local all all md5
#IPv4 local connections:
host all all 127.0.0.1/32 md5
#hostssl all all 127.0.0.1/32 md5
#hostnossl all all 127.0.0.1/32 md5
#IPv6 local connections:
#host all all ::1/128 trust
>>Ну впринципе не замысловато так отвечает.
>>Для начала:
>>less /_path_to_pgsql_folder_/data/pg_hba.conf | grep -v #
>>postconf -m
>
>
># TYPE DATABASE
>USER CIDR-ADDRESS
> METHOD
>
>#"local" is for Unix domain socket connections only
>local all
> all
>
> md5
>
>#IPv4 local connections:
>host all
> all
> 127.0.0.1/32 md5
>
>#hostssl all
> all
>127.0.0.1/32 md5
>#hostnossl all
> all 127.0.0.1/32
> md5
>#IPv6 local connections:
>#host all
> all
> ::1/128
> trustрвскоменте последнюю строку. Вам конфиг явно на нее ругань отдает. Или откажитесь вообще от IPv6
>рвскоменте последнюю строку. Вам конфиг явно на нее ругань отдает. Или откажитесь
>вообще от IPv6
Прошу подсказать где и какие подправить конфиги, чтобы вообще отказаться от IPv6?
>
>>рвскоменте последнюю строку. Вам конфиг явно на нее ругань отдает. Или откажитесь
>>вообще от IPv6Спасибо - помогло!!