Приветствую !В общем, проблема такова:
Не могу забрать почту. В логе:Oct 18 09:37:17 router postfix/smtpd[48858]: connect from qproxy.gmail.com[72.14.204.197]
Oct 18 09:37:18 router postfix/smtpd[48858]: 38D3FC16E: client=qproxy.gmail.com[72.14.204.197]
Oct 18 09:37:18 router postfix/cleanup[48860]: 38D3FC16E: message-id=<1692085507.20051018093757@gmail.com>
Oct 18 09:37:18 router postfix/qmgr[9420]: 38D3FC16E: from=<modlabs@gmail.com>, size=1463, nrcpt=1 (queue active)
Oct 18 09:37:18 router postfix/virtual[48862]: 38D3FC16E: to=<info@almaz-club.pp.ru>, relay=virtual, delay=0, status=sent (maildir)
Oct 18 09:37:49 router postfix/smtpd[48858]: disconnect from qproxy.gmail.com[72.14.204.197]
Oct 18 09:38:29 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
Oct 18 09:38:29 router pop3d: LOGIN FAILED, user=info@almaz-club.pp.ru, ip=[::ffff:85.192.138.58]
Oct 18 09:38:29 router pop3d: authentication error: Input/output errorЧто может быть ? Судя по логу, что-то не так с authdaemond ?
Содержимое authmysqlrc:
MYSQL_SERVER localhost
MYSQL_USERNAME xxxx
MYSQL_PASSWORD xxxx
#MYSQL_SOCKET /tmp/mysql.sock
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE aliases
MYSQL_CLEAR_PWFIELD password
DEFAULT_DOMAIN almaz-club.pp.ru
MYSQL_UID_FIELD id
MYSQL_GID_FIELD gid
MYSQL_LOGIN_FIELD alias
MYSQL_HOME_FIELD maildir
MYSQL_NAME_FIELD info
MYSQL_MAILDIR_FIELD maildir
Кто-нибудь мне поможет ? Плиз, в поиск не отсылать - я там уже был :)
MYSQL_SERVER localhost
В конце localhost пробела нет? В других параметрах?
Запись о localhost в /etc/hosts есть? mysql точно "висит" на 127.0.0.1:3306? authmodulelist в authdaemonrc?
>MYSQL_SERVER
>localhost
>В конце localhost пробела нет? В других параметрах?
>Запись о localhost в /etc/hosts есть? mysql точно "висит" на 127.0.0.1:3306? authmodulelist
>в authdaemonrc?
Нет, пробела нет. Запись имеется. Да, запущен на 127.0.0.1:3306.Листинг authdaemonrc:
authmodulelist="authmysql"
authmodulelistorig="authmysql"
daemons=5
version=""
authdaemonvar=/usr/local/var/authdaemon
DEBUG_LOGIN=2
DEFAULTOPTIONS=""Кусок лога:
Oct 18 14:46:01 router authdaemond: stopping authdaemond children
Oct 18 14:46:03 router authdaemond: modules="authmysql", daemons=5
Oct 18 14:46:03 router authdaemond: Installing libauthmysql
Oct 18 14:46:03 router authdaemond: Installation complete: authmysql
Попробуйте
version="authdaemond.mysql"
>Попробуйте
>version="authdaemond.mysql"
Не помогло.
MYSQL_CLEAR_PWFIELD password
или
MYSQL_CRYPT_PWFIELD password
>MYSQL_CLEAR_PWFIELD password
>или
>MYSQL_CRYPT_PWFIELD password
Это уже есть в конфиге :)
MYSQL_CLEAR_PWFIELD password
>Это уже есть в конфиге :)
>MYSQL_CLEAR_PWFIELD password
Я имею ввиду в базе mysql пароль clear или crypt?
>>Это уже есть в конфиге :)
>>MYSQL_CLEAR_PWFIELD password
>Я имею ввиду в базе mysql пароль clear или crypt?
Пароль в чистом виде.
Что может быть еще ?
Меня смущает строка
Oct 18 09:38:29 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
Должно быть что-то вроде
Oct 18 09:38:29 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
>Меня смущает строка
>Oct 18 09:38:29 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
>Должно быть что-то вроде
>Oct 18 09:38:29 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set in/etc/courier/authmysqlrc.
Тут получается, что файл с настройками называется "yes". Я тоже обратил на это внимание.
А параметры в authmysqlrc разделены пробелами или табуляцией?
>А параметры в authmysqlrc разделены пробелами или табуляцией?
Табуляцией, несколько раз проверил.
>>А параметры в authmysqlrc разделены пробелами или табуляцией?
>
>
>Табуляцией, несколько раз проверил.
up
Так Вы разобрались, почему в логах
MYSQL_SERVER nor MYSQL_SOCKET set inyes.
?
Добавьте
DEBUG_LOGIN=2И смотрите all.log (раскоменнте строчку в syslogd.conf и рестартаните его демон).
>Добавьте
>DEBUG_LOGIN=2
У него это уже стоит.
>>Добавьте
>>DEBUG_LOGIN=2
>У него это уже стоит.
да, незаметил...
>Добавьте
>DEBUG_LOGIN=2
>
>И смотрите all.log (раскоменнте строчку в syslogd.conf и рестартаните его демон).Включил all.log
Вот что пишется при попытке авторизации:
Oct 19 19:39:32 router pop3d: Connection, ip=[::ffff:192.168.100.200]
Oct 19 19:39:45 router authdaemond: received auth request, service=pop3, authtype=login
Oct 19 19:39:45 router authdaemond: authmysql: trying this module
Oct 19 19:39:45 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
Oct 19 19:39:45 router authdaemond: authmysql: TEMPFAIL - no more modules will be tried
Oct 19 19:39:45 router pop3d: LOGIN FAILED, user=info@almaz-club.pp.ru, ip=[::ffff:192.168.100.200]
Oct 19 19:39:45 router pop3d: authentication error: Input/output errorСоответственно через telnet:
+OK Hello there.
USER info@almaz-club.pp.ru
+OK Password required.
PASS xxxxx
-ERR Temporary problem, please try again latercourier-authlib конфигурировалась так:
./configure --with-authmysqlrc --with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
Затем была выполнена компиляция, которая прошла без ошибок, и последующая установка, которая также прошла без ошибок.
>>Добавьте
>>DEBUG_LOGIN=2
>>
>>И смотрите all.log (раскоменнте строчку в syslogd.conf и рестартаните его демон).
>
>Включил all.log
>
>Вот что пишется при попытке авторизации:
>
>Oct 19 19:39:32 router pop3d: Connection, ip=[::ffff:192.168.100.200]
>Oct 19 19:39:45 router authdaemond: received auth request, service=pop3, authtype=login
>Oct 19 19:39:45 router authdaemond: authmysql: trying this module
>Oct 19 19:39:45 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
>Oct 19 19:39:45 router authdaemond: authmysql: TEMPFAIL - no more modules will
>be tried
>Oct 19 19:39:45 router pop3d: LOGIN FAILED, user=info@almaz-club.pp.ru, ip=[::ffff:192.168.100.200]
>Oct 19 19:39:45 router pop3d: authentication error: Input/output error
>
>Соответственно через telnet:
>+OK Hello there.
>USER info@almaz-club.pp.ru
>+OK Password required.
>PASS xxxxx
>-ERR Temporary problem, please try again later
>
>courier-authlib конфигурировалась так:
>
>./configure --with-authmysqlrc --with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
>
>Затем была выполнена компиляция, которая прошла без ошибок, и последующая установка, которая
>также прошла без ошибок.
Я понял свою ошибку :) Спасибо всем за помощь !
Надо было: --with-authmysqlrc=/usr/lib/courier-imap/etc/authmysqlrcauthdaemon видимо просто не знал, откуда брать настройки :)
>>>Добавьте
>>>DEBUG_LOGIN=2
>>>
>>>И смотрите all.log (раскоменнте строчку в syslogd.conf и рестартаните его демон).
>>
>>Включил all.log
>>
>>Вот что пишется при попытке авторизации:
>>
>>Oct 19 19:39:32 router pop3d: Connection, ip=[::ffff:192.168.100.200]
>>Oct 19 19:39:45 router authdaemond: received auth request, service=pop3, authtype=login
>>Oct 19 19:39:45 router authdaemond: authmysql: trying this module
>>Oct 19 19:39:45 router authdaemond: authmysql: MYSQL_SERVER nor MYSQL_SOCKET set inyes.
>>Oct 19 19:39:45 router authdaemond: authmysql: TEMPFAIL - no more modules will
>>be tried
>>Oct 19 19:39:45 router pop3d: LOGIN FAILED, user=info@almaz-club.pp.ru, ip=[::ffff:192.168.100.200]
>>Oct 19 19:39:45 router pop3d: authentication error: Input/output error
>>
>>Соответственно через telnet:
>>+OK Hello there.
>>USER info@almaz-club.pp.ru
>>+OK Password required.
>>PASS xxxxx
>>-ERR Temporary problem, please try again later
>>
>>courier-authlib конфигурировалась так:
>>
>>./configure --with-authmysqlrc --with-mysql-libs=/usr/local/mysql/lib/mysql --with-mysql-includes=/usr/local/mysql/include/mysql
>>
>>Затем была выполнена компиляция, которая прошла без ошибок, и последующая установка, которая
>>также прошла без ошибок.
>
>
>Я понял свою ошибку :) Спасибо всем за помощь !
>Надо было: --with-authmysqlrc=/usr/lib/courier-imap/etc/authmysqlrc
>
>authdaemon видимо просто не знал, откуда брать настройки :)
Huh i have same problem for a weak;/
I will try configure authlib with --with-autmysqlrc.. but i dont se any sence ;/