Никак не могу решить проблему:
Sep 14 13:50:40 Asterisk authdaemond: received auth request, service=pop3, authtype=login
Sep 14 13:50:40 Asterisk authdaemond: authmysql: trying this module
Sep 14 13:50:41 Asterisk authdaemond: SQL query: SELECT username, crypt, password # ..... clear, '1981', '1981', '/var/spool/mail', maildir, quota, name, "" FROM mailbox WHERE username = "daemon" AND (active='1')
Sep 14 13:50:41 Asterisk authdaemond: mysql_query failed, reconnecting: Unknown column 'username' in 'field list'
Sep 14 13:50:41 Asterisk authdaemond: mysql_query failed second time, giving up: Unknown column 'username' in 'field list'
Sep 14 13:50:41 Asterisk authdaemond: authmysql: TEMPFAIL - no more modules will be triedВ таблице mailbox поле username присутствует...
Кто может дать совет?
>Кто может дать совет?покажи authmysqlrc
>покажи authmysqlrcMYSQL_SERVER localhost
MYSQL_USERNAME postfix
MYSQL_PASSWORD postfix
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE postfix
MYSQL_USER_TABLE mailbox
MYSQL_USER_NAME root
MYSQL_PASSWORD ********
MYSQL_CRYPT_PWFIELD crypt
MYSQL_CLEAR_PWFIELD password
# DEFAULT_DOMAIN example.com
MYSQL_UID_FIELD '1981'
MYSQL_GID_FIELD '1981'
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/var/spool/mail'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quota
# MYSQL_WHERE_CLAUSE server='mailhost.example.com'
MYSQL_WHERE_CLAUSE active='1'
MYSQL_SERVER localhost
MYSQL_USERNAME mail
MYSQL_PASSWORD mail
MYSQL_PORT 3306
MYSQL_OPT 0
MYSQL_DATABASE mail
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD password
MYSQL_UID_FIELD 125
MYSQL_GID_FIELD 6
MYSQL_LOGIN_FIELD username
MYSQL_HOME_FIELD '/var/mail/virtual/'
MYSQL_NAME_FIELD name
MYSQL_MAILDIR_FIELD maildir
MYSQL_QUOTA_FIELD quotaВот мой рабочий
>[оверквотинг удален]
> example.com
>MYSQL_UID_FIELD '1981'
>MYSQL_GID_FIELD '1981'
>MYSQL_LOGIN_FIELD username
>MYSQL_HOME_FIELD '/var/spool/mail'
>MYSQL_NAME_FIELD name
>MYSQL_MAILDIR_FIELD maildir
>MYSQL_QUOTA_FIELD quota
># MYSQL_WHERE_CLAUSE server='mailhost.example.com'
>MYSQL_WHERE_CLAUSE active='1'1000 раз писал - НЕЛЬЗЯ ИСПОЛЬЗОВАТЬ MYSQL_CRYPT_PWFIELD и MYSQL_CLEAR_PWFIELD ОДНОВРЕМЕННО!!!