saslauthd и exim
Добавлено: 2007-06-27 1:50:47
Второй день не могу найти ответ, поэтому пишу сюда. Поставил exim с поддержкой аутентификаторов plaintext и login. Установил saslauthd. Прописал в конфиг секцию аутентификации:
Загвоздка в том что не работает аутентификация никакая вообще. В логах следующее:
В режиме отладки:
Хотя
Куда копать??? 
Код: Выделить всё
PLAIN:
driver = plaintext
server_set_id = $2
server_prompts = :
server_condition = ${if saslauthd{{$1}{$2}}{1}{0}}
LOGIN:
driver = plaintext
server_set_id = $1
server_prompts = <| Username: | Password:
server_condition = ${if saslauthd{{$1}{$2}}{1}{0}}
server_advertise_condition = ${if def:tls_cipher }
Код: Выделить всё
tail /var/log/messages
...
Jun 27 02:22:56 schtep saslauthd[40598]: in openpam_read_chain(): /etc/pam.d/(0): invalid facility 'КS.^A' (ignored)Код: Выделить всё
tail /var/log/exim/mainlog
...
2007-06-27 02:22:56 login authenticator failed for (athlon) [213.80.253.100] I=[xxx.xxx.xxx.xxx]:25: 535 Incorrect authentication data (set_id=serge)Код: Выделить всё
schtep# exim -d-all+auth -bd
Exim version 4.67 (FreeBSD 6.2) uid=0 gid=0 pid=72176 D=8
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSSL Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
configuration file is /usr/local/etc/exim/configure
log selectors = 0000cefe 00233821
cwd=/etc 3 args: exim -d-all+auth -bd
trusted user
admin user
72176 listening on all interfaces (IPv4) port 25
72176 pid written to /var/run/exim.pid
72176 LOG: MAIN
72176 exim 4.67 daemon started: pid=72176, no queue runs, listening for SMTP on port 25 (IPv4)
72176 daemon running with uid=0 gid=6 euid=0 egid=6
72176 Listening...
72176 Connection request from 213.80.253.100 port 3731
72176 1 SMTP accept process running
72176 Listening...
72187 Process 72187 is handling incoming connection from [213.80.253.100]
72187 LOG: host_lookup_failed MAIN
72187 no host name found for IP address 213.80.253.100
72187 Process 72187 is ready for new message
72187 login authenticator:
72187 $auth1 = serge
72187 $auth2 = 123456
72187 $1 = serge
72187 $2 = 123456
72187 Running saslauthd authentication for user "serge"
72187 saslauthd userid='serge' servicename='' realm=''
72187 Answer 'NO PAM start error' received.
72187 saslauthd: access denied (NO PAM start error)
72187 expanded string: 0
72187 LOG: MAIN REJECT
72187 login authenticator failed for (athlon) [213.80.253.100] I=[82.146.60.59]:25: 535 Incorrect authentication data (set_id=serge)
72187 LOG: smtp_connection MAIN
72187 SMTP connection from (athlon) [213.80.253.100] I=[82.146.60.59]:25 lost
72176 child 72187 ended: status=0x100
72176 0 SMTP accept processes now running
Код: Выделить всё
schtep# testsaslauthd -u serge -p 123456
0: OK "Success."