Re: [Exim] Authenticated smtp

Góra strony
Delete this message
Reply to this message
Autor: Anand Buddhdev
Data:  
Dla: Exim-Users (E-mail)
Temat: Re: [Exim] Authenticated smtp
Ron McKeating wrote:

>> server_condition = ${if pam{$1:${sg{$2}{:}{::}}}{yes}{no}}
>>
>>For a PLAIN authenticator you could use:
>>
>> server_condition = ${if pam{$2:${sg{$3}{:}{::}}}{yes}{no}}
>>"
>>
>>I've not tried it, but generally the documentation is right :)
>>
>>Nathan.
>
>
> 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.


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 exim as root, but that's a very bad idea. I prefer not to use
PAM at all. There are other solutions to get SMTP authentication to work.