[Exim] Exim auth - problem

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: SWS
Fecha:  
A: exim-users
Asunto: [Exim] Exim auth - problem
Hi !

I have a big problem with auth configuration in Exim. Exim 3.33,
system Solaris 8, Sparc machine. I read spec.txt and FAQ (C034).
I want to use passwords from /etc/shadow file. I set in my
Local/Makefile following options:

EXIM_UID=0
EXIM_GID=0
AUTH_CRAM_MD5=yes
AUTH_PLAINTEXT=yes
etc.

At compilation time I didn't get any errors. Without auth exim
works ok. When I set in exim.conf the following options:

exim_user = root
exim_group = root
qualify_domain = my_host.domain.pl
local_domains = localhost:my_host.domain.pl
host_accept_relay = localhost
host_auth_accept_relay = *
auth_always_advertise = false

[...]

plain:
  driver = plaintext 
  public_name = PLAIN
  server_condition = "${if and {{!eq{$2}{}}{!eq{$3}{}}{crypteq{$3}\  
                   {${extract{2}{:}{${lookup{$2}lsearch{/etc/shadow}\
                   {$value}{*:*}}}}}}}{1}{0}}"
  server_set_id = $2


login:
  driver = plaintext 
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}}{crypteq{$2}\  
                   {${extract{2}{:}{${lookup{$1}lsearch{/etc/shadow}\
                   {$value}{*:*}}}}}}}{1}{0}}"
  server_set_id = $1


I can't send messages from client host (Netscape or Outlook).
In Netscape (on client hosts) I write my password in dialog window
but it doesn't work. In log file /var/log/exim_rejectlog I have
info:

2001-11-28 10:30:21 Authentication failed for client.domain.pl
(my_host.domain.pl) [xxx.xxx.xxx.xxx]: 535 Incorrect authentication
data

Outlook doesn't open dialog window and in log file I have info:

001-11-28 10:30:56 refused relay (host) to <xxx@???> from
<xxx@my_host.domain.pl> H=client.domain.pl (client) [xxx.xxx.xxx.xxx]

When I try to set other exim_user, add it to shadow group and set:

440 root shadow /etc/shadow

it also doesn't work.

I don't know what to do to make it work. Please help me.

Thank you.

Slawek