Доброго времени суток .В наличаи:
FreeBSD 5.4
postfix-2.2.1,1
cyrus-sasl-2.1.20_1
mysql-server-3.23.59.
Поднимаю авторизацию на отправку smtp
Помогите разобраться с такой проблемой;
делаю
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 domain mail sterver
ehlo aol.com
250-domain
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250 8BITMIME
auth plain
334
сгенерированая строка
535 Error: authentication failed
генерится так;
perl -MMIME::Base64 -e 'print encode_base64("логин\0логин\0пароль");'
в логах
------debug.log------
Sep 20 19:06:38 westtravel postfix/smtpd[3924]: sql auxprop plugin using mysql engine
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin Parse the username user
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin try and connect to a host
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin trying to open db 'mail' on host '127.0.0.1'
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin Parse the username user
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin try and connect to a host
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin trying to open db 'mail' on host '127.0.0.1'
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: begin transaction
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin create statement from userPassword user domain
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin doing query select password from users where login='user@domain';
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin create statement from cmusaslsecretPLAIN user domain
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin doing query select password from users where login='user@domain';
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: commit transaction
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin Parse the username user
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin try and connect to a host
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: sql plugin trying to open db 'mail' on host '127.0.0.1'
-----end debug.log------
------mysql.log---------
060920 19:06:56 43 Connect mailer@localhost on mail
43 Quit
44 Connect mailer@localhost on mail
44 Query BEGIN
44 Query select password from users where login='user@domain'
44 Query select password from users where login='user@domain'
44 Query COMMIT
44 Quit
45 Connect mailer@localhost on mail
45 Quit
----end mysql.log--------
----maillog--------------
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: warning: SASL authentication failure: Password verification failed
Sep 20 19:06:56 westtravel postfix/smtpd[3924]: warning: localhost[127.0.0.1]: SASL plain authentication failed
Sep 20 19:10:53 westtravel postfix/smtpd[3924]: disconnect from localhost[127.0.0.1]
----end maillog ---------
судя по всему этому /usr/local/bin/sasl2/smtpd.conf
впорядке и его postfix видит , по логу mysql.log видно что и в базу ходит и вытаскивает верные значения, но авторизация не проходит .
Пароли в базе шифрованые encrypt('пароль') .
что может быть? подскажите пожалуйста .