Search the web
Sign In
New User? Sign Up
exim-users · Exim MTA
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: [Exim] Authenticated smtp   Message List  
Reply | Forward Message #69823 of 85778 |
Re: [Exim] Authenticated smtp

On Jul 27, 2004, at 7:29 PM, Ron McKeating wrote:

> On Tue, 2004-07-27 at 07:46, Nathan Ollerenshaw wrote:

>> If you're using a reasonably modern operating system that has pam, you
>> can use it do the same thing. Exim's spec.pdf, page 111 (numbered 99
>> in
>> the pdf), or
>> http://www.exim.org/exim-html-4.40/doc/html/spec_11.html#IX936:

> I have tried this and it does not work. I am using fedora core 2 and
> the
> latest exim. I am unclear as to how exim pam and /etc/shadow interact.
> Basically is it possible to get exim to use pam to authenticate users
> against the /etc/shadow file.

How did you test it? Did you try running

exim -d+expand -be

to test the expansion? Using exim's debugging can really help when
you're trying to figure out what is going on. Its one of the compelling
reasons to use it, imho.

> ${if pam{chrome:testpass}{yes}{no}}
expanding: chrome:testpass
result: chrome:testpass
Running PAM authentication for user "chrome"
PAM success
condition: pam{chrome:testpass}
result: true
expanding: yes
result: yes
expanding: no
result: no
skipping: result is not used
expanding: ${if pam{chrome:testpass}{yes}{no}}
result: yes
yes
> ${if pam{chrome:ewrrwerwer}{yes}{no}}
expanding: chrome:ewrrwerwer
result: chrome:ewrrwerwer
Running PAM authentication for user "chrome"
PAM error: Authentication failure
condition: pam{chrome:ewrrwerwer}
result: false
expanding: yes
result: yes
skipping: result is not used
expanding: no
result: no
expanding: ${if pam{chrome:ewrrwerwer}{yes}{no}}
result: no
no

So, you can see on my FC2 machine that pam works with exim. If I do the
same expression not as root, but as a normal user, I have to turn off
debugging because its restricted, but I can still do the PAM auth stuff
and it works.

With regards to Anand's post, at least on FC2 machines, you can ignore
the statement:

"In some operating systems, PAM authentication can be done only from a
process running as root. Since Exim is running as the Exim user when
receiving messages, this means that PAM cannot be used directly in
those systems. A patched version of the pam_unix module that comes with
the Linux PAM package is available from
http://www.e-admin.de/pam_exim/. The patched module allows one special
uid/gid combination, in addition to root, to authenticate. If you build
the patched module to allow the Exim user and group, PAM can then be
used from an Exim authenticator."

Maybe if you were to show examples of the authenticators that you tried
with PAM, and show some tests on the command line with the debugging
output enabled? The way I do it for a running daemon is that I stop the
exim service, then run it from the command line with 'exim -d+expand
-bd'. This just runs a single listener with no queue runner, and puts
all the debugging output into the terminal for you to see.

Nathan.

--
Nathan Ollerenshaw - Unix Systems Engineer
ValueCommerce - http://www.valuecommerce.ne.jp/


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details
at http://www.exim.org/ ##




Wed Jul 28, 2004 2:25 am

nathan@...
Send Email Send Email

Forward
Message #69823 of 85778 |
Expand Messages Author Sort by Date

... I have tried this and it does not work. I am using fedora core 2 and the latest exim. I am unclear as to how exim pam and /etc/shadow interact. Basically...
Ron McKeating
R.J.Mckeating@...
Send Email
Jul 27, 2004
10:34 am

... If Exim is not running as root, then, when using PAM, it is not able to read /etc/shadow, and so it cannot authenticate users. One work-around is to run...
Anand Buddhdev
arb@...
Send Email
Jul 27, 2004
10:57 am

... I just tested it under FC2 as a normal user. No problems using PAM here :) Nathan. -- Nathan Ollerenshaw - Unix Systems Engineer ValueCommerce -...
Nathan Ollerenshaw
nathan@...
Send Email
Jul 28, 2004
2:31 am

... How did you test it? Did you try running exim -d+expand -be to test the expansion? Using exim's debugging can really help when you're trying to figure out...
Nathan Ollerenshaw
nathan@...
Send Email
Jul 28, 2004
2:30 am

I've run tests (exim -d+expand -be) with exim both as root and as exim. (I'm running RH9 with PAM 0.75. I created a pam.d/exim file by hand modelled after the...
Phil Jordan
exim-user@...
Send Email
Jul 29, 2004
12:25 am

... I have exactly the same thing here. I have had to resort to a hacked together authentication system that first looks at a flat file for a half dozen...
Stephen Gran
steve@...
Send Email
Jul 29, 2004
1:04 am

... Sounds like something changed after RH9 to allow this. ... Personally, if it were me, I'd install yum, point the yum.conf at your nearest FC2 mirror and do...
Nathan Ollerenshaw
nathan@...
Send Email
Jul 29, 2004
2:59 am

... After input from Nathan and a few others I decided to try using it out of the box on my FC2 box. It works fine. no problems, this is my exim file in...
Ron McKeating
R.J.Mckeating@...
Send Email
Jul 29, 2004
8:26 am

Re the thread below, if I may attempt to summarise: * Many users of Exim cannot get PAM to authenticate for them if they're not running Exim as root. * Users...
Phil Jordan
exim-user@...
Send Email
Jul 30, 2004
4:06 pm

I've run tests (exim -d+expand -be) with exim both as root and as exim. (I'm running RH9 with PAM 0.75. I created a pam.d/exim file by hand modelled after the...
Phil Jordan
phil@...
Send Email
Jul 29, 2004
8:05 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help