The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



"postfix + postgres + sasl + pam_pgsql"
Версия для распечатки Пред. тема | След. тема
Форум Открытые системы на сервере
Исходное сообщение [ Отслеживать ]
Заметили полезную информацию ? Пожалуйста добавьте в FAQ на WIKI.
. "postfix + postgres + sasl + pam_pgsql" +/
Сообщение от Viiemail (ok), 04-Дек-06, 11:54 
Теперь он к saslauchd коннектится:
cat smtpd.conf
pwcheck_method: saslauthd
saslauthd_path: /var/run/saslauthd/mux
mech_list: plain login

в cat /etc/pam.d/smtp
%PAM-1.0
auth        required      /lib/security/pam_pgsql.so
account     required      /lib/security/pam_pgsql.so
password    required      /lib/security/pam_pgsql.so

Выдает ошибку, тестирую
# testsaslauthd -s smtp -u test -p teste -f /var/run/saslauthd/mux
0: OK "Success."

# authtest test
Authentication succeeded.

     Authenticated: test  (uid 1000, gid 1000)
    Home Directory: /var/spool/virtual/
           Maildir: test.domain/test/
             Quota: (none)
Encrypted Password: $1$.J.LF$K2IE.hH/CNpIyYfuniEWy/
Cleartext Password: (none)
           Options: (none)

отпровляю почту в логах:
Dec  4 14:55:29 mail postfix/smtpd[26940]: connect from unknown[192.168.0.38]
Dec  4 14:55:30 mail postfix/smtpd[26940]: warning: SASL authentication failure: Password verification failed
Dec  4 14:55:30 mail postfix/smtpd[26940]: warning: unknown[192.168.0.38]: SASL PLAIN authentication failed
Dec  4 14:55:30 mail postfix/smtpd[26940]: 0ED957B818D: client=unknown[192.168.0.38]
Dec  4 14:55:30 mail postfix/smtpd[26940]: disconnect from unknown[192.168.0.38]

Изменяю:
в cat /etc/pam.d/smtp
%PAM-1.0
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
password   required     pam_stack.so service=system-auth

в авторизации smtp прописываю реального пользователя - авторизация проходит......
Ктонить подскажет в чем дело?

Ответить | Правка | Наверх | Cообщить модератору

Оглавление
postfix + postgres + sasl + pam_pgsql, Vii, 03-Дек-06, 11:52  [смотреть все]
Форумы | Темы | Пред. тема | След. тема



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру