--
On Tue, Oct 21, 2003 at 05:00:27PM +0100, Ron McKeating said:
> I want to try and get smtp auth working with the latest exim. I have the
> following
>
> acl_smtp_auth = acl_auth
>
> in the general part of configure
>
> then
>
> accept authenticated = *
> in the rcpt accl and
>
> acl_auth:
> accept hosts = *
> in the acles
>
> begin authenticators
>
> plain:
> driver=plaintext
> public_name=PLAIN
> server_prompts=:
> server_condition=${if pam{$2:${sg{$3}{:}{::}}}{yes}{no}}
> server_set_id = $2
>
> login:
> driver=plaintext
> public_name=LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = ${if pam{$1:${sg{$2}{:}{::}}}{yes}{no}}
> server_set_id = $1
>
> and if I telnet to port 25 I get
> 250-SIZE 52428800
> 250-PIPELINING
> 250-AUTH PLAIN LOGIN
> 250 HELP
>
> Is it because I am trying to use pam, it has been suggested I use
> setfacl to set file acles on etc/shadow so user exim can read it, has
> anybody done this and does it work. Anything else I should be looking or
> useful suggestions. So far I just get relay not permitted when I try and
> send through this server, but as it is just a test server for trying to
> learn more about exim and email etc it does not matter too much a the
> moment.
I use:
plain_server:
driver = plaintext
public_name = PLAIN
server_condition = "${if crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}"
server_set_id = $2
server_prompts = :
login_server:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = "${if crypteq{$2}{${extract{1}{:}{${lookup{$1}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}"
server_set_id = $1
and copy only the lines from /etc/shadow to CONFDIR/passwd that I want
to allow auth for. Note that this is auth over ssl setup.
--
--------------------------------------------------------------------------
| Stephen Gran | GREAT MOMENTS IN HISTORY (#7): April |
| steve@??? | 2, 1751 Issac Newton becomes |
| http://www.lobefin.net/~steve | discouraged when he falls up a flight |
| | of stairs. |
--------------------------------------------------------------------------
--
Content-Description: Digital signature
[ signature.asc of type application/pgp-signature deleted ]
--