Re: [Exim] SMTP AUTH with PAM on Debian/Woody (howto?)

Top Page
Delete this message
Reply to this message
Author: Andreas Gietl
Date:  
To: MaX, Exim User Group
Subject: Re: [Exim] SMTP AUTH with PAM on Debian/Woody (howto?)
On Saturday 01 March 2003 16:14, MaX wrote:

The problem is that exim gives up root-privilege and does a setuid to the user
you configured in your exim.conf

> Hi all,
>
> this is the first time that i write here.
> I'm Massimo Biffi, Debian user from 1998, and my site is
> ww.maximumdebian.org (italian only language).
>
>
> i have this problem:
> i need to enable the smtp auth with PAM usig the shadow passwd of the
> system (Debian/woody PPC)
>
> Resuming:
> i know that exim most run as root, so at the moment
> (in a testing server) i have put in /etc/inet.conf:
>
> server1:/etc# cat /etc/inetd.conf | grep exim
> smtp    stream    tcp    nowait    root    /usr/sbin/exim     exim -bs
> server1:/etc#

>
> i have put in /etc/exim.conf:
>
> host_auth_accept_relay = *
>
> < -- snip --- >
>
> fixed_login:
>         driver = plaintext
>         public_name = LOGIN
>         server_prompts = "Username:: : Password::"
>         server_condition = "${if pam{$1:${sg{$2}{:}{::}}}{1}{0}}"
>     # PAM Authentication
>     server_set_id = $1

>
> and in /etc/pam.d/exim
>
> auth     required       pam_unix_auth.so
> account     required    pam_unix_acct.so
> password required    pam_unix_passwd.so
> session  required    pam_unix_session.so

>
>
> ... but don't work!
> Sylpeed Log window look so:
>
> * Connessione al server SMTP: 192.168.1.2...
> [15:16:38] SMTP< 220 server1.maximumdebian.org ESMTP Exim 3.35 #1 Sat,
> 01 Mar 2003 15:15:29 +0100
> [15:16:38] ESMTP> EHLO max.maximumdebian.org
> [15:16:38] ESMTP< 250-server1.maximumdebian.org Hello max at
> max.maximumdebian.org [192.168.1.10]
> [15:16:38] ESMTP< 250-SIZE
> [15:16:38] ESMTP< 250-PIPELINING
> [15:16:38] ESMTP< 250-AUTH LOGIN
> [15:16:38] ESMTP< 250 HELP
> [15:16:38] ESMTP> AUTH LOGIN
> [15:16:38] SMTP< 334 VXNlcm5hbWU6
> [15:16:38] ESMTP> [USERID]
> [15:16:38] SMTP< 334 UGFzc3dvcmQ6
> [15:16:38] ESMTP> [PASSWORD]
> [15:16:40] SMTP< 535 Incorrect authentication data
> ** Error occurred while authenticating
> [15:16:40] SMTP> QUIT
> [15:16:40] SMTP< 221 server1.maximumdebian.org closing connection
>
>
> someone can help me?
>
> ciao,
> MaX
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##


--
e-admin internet gmbh
Andreas Gietl                                            tel +49 941 3810884
Ludwig-Thoma-Strasse 35                      fax +49 89 244329104
93051 Regensburg                                  mobil +49 171 6070008


PGP/GPG-Key unter http://www.e-admin.de/gpg.html