Не могу настроить Exim.
При попытке отправить письмо выдает:
2005-09-13 17:06:17 auth_cram_md5 authenticator failed for ([127.0.0.1]) [192.168.0.94]: 535 Incorrect authentication data (set_id=demiurg)
2005-09-13 17:06:17 auth_plain authenticator failed for ([127.0.0.1]) [192.168.0.94]: 535 Incorrect authentication data (set_id=demiurg)
2005-09-13 17:06:17 auth_login authenticator failed for ([127.0.0.1]) [192.168.0.94]: 535 Incorrect authentication data (set_id=demiurg)
---
Настройки Exim:
######################################################################
# AUTHENTICATION CONFIGURATION #
####################################################################### There are no authenticator specifications in this default configuration file.
begin authenticators
auth_plain:
driver = plaintext
public_name = PLAINserver_condition = ${lookup mysql{SELECT `user_idnr` FROM `dbmail_users` \
WHERE userid = '${quote_mysql:$2}' AND `passwd` = '${quote_mysql:$3}'}}
server_set_id = $2# AUTH LOGIN authentication method with MySQL support used by Outlook Express.
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = ${lookup mysql{SELECT `user_idnr` FROM `dbmail_users` \
WHERE userid = '${quote_mysql:$1}' AND `passwd` = '${quote_mysql:$2}'}}
server_prompts = "Username:: : Password::"
server_set_id = $1# AUTH CRAM-MD5 authentication method with MySQL used by The Bat!.
auth_cram_md5:
driver = cram_md5
public_name = CRAM-MD5server_secret = ${lookup mysql{SELECT `passwd` FROM `dbmail_users` \
WHERE `userid` = '${quote_mysql:$1}'}{$value}fail}
server_set_id = $1
------------
Система: FreeBSD 5.3
Exim 4.52 + DBMail 2.0.4
#../exim -bV ?
plain:
driver = plaintext
public_name = PLAIN
server_debug_print = yes
server_condition = ${if eq{$2}{${lookup mysql {SELECT passwd FROM dbmail_users WHERE userid='${quote_mysql:$1}'}{$value}fail}} {yes}{no}}
server_set_id = $1login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_debug_print = yes
server_condition = ${if eq{$2}{${lookup mysql{SELECT passwd FROM dbmail_users WHERE userid='${quote_mysql:$1}'}{$value}fail}} {yes}{no}}
server_set_id = $1cram:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT passwd FROM dbmail_users \
WHERE userid = '${quote_mysql:$1}'}{$value}fail}
server_set_id = $1
Заработало после такой правки конфига:
######################################################################
# AUTHENTICATION CONFIGURATION #
####################################################################### There are no authenticator specifications in this default configuration file.
begin authenticators
auth_plain:
driver = plaintext
public_name = PLAIN
server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup mysql{SELECT \
passwd FROM dbmail_users WHERE userid = '${quote_mysql:$2}'}}}}}{1}{0}}"
server_set_id = $2# AUTH LOGIN authentication method with MySQL support used by Outlook Express.
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup mysql{SELECT \
passwd FROM dbmail_users WHERE userid = '${quote_mysql:$1}'}}}}}{1}{0}}"
server_prompts = "Username:: : Password::"
server_set_id = $1P.S. Не подскажете админки для Exim, dbMail? На свете такие вообще существуют?