Re: [exim] Authentication for sending

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Michael Johnson
Dátum:  
Címzett: Exim-users
Tárgy: Re: [exim] Authentication for sending
On Oct 19, 2004, at 2:48 AM, Giuliano Gavazzi wrote:

> At 11:01 pm -0400 2004/10/18, Michael Johnson wrote:
> [...]
>> The log entries for the sender authentication show there's no
>> /etc/relayers file. This makes sense as I haven't created one on the
>> new machine. However, I'd like to use the NetInfo database
>> user/pass. How can I get it to look to the nidb? I'm not really
>> comfortable with an un-hashed user/pass file on this system. It
>> worked fine as a stop-gap on my home system, but I need to get this
>> working in a more secure manner.
>
> I did sometime ago write a NetInfo lookup for exim, in the LOGIN
> authenticator I have for instance:
>
>

<snip>

>
> however this is for an old system. Since 10.3 this is not required
> anymore (for user/pass lookup) and is going to become obsolete as
> NetInfo is phased out.
> You should use PAM (but it works without tricks only on 10.3 and
> later), as in:
>
>   server_condition=${if and    {\
>                                        {!eq{$1}{}}\
>                                        {!eq{$2}{}}\
>                                        {pam{$1:${sg{$2}{:}{::}}}}\
>                                }\
>                {yes}{no}}


Where in the configure file does this go? Would it be something in
authenticators like this?:

fixed_cram:
    driver = cram_md5
    public_name= CRAM-MD5
    server_condition=${if and    {\
                                        {!eq{$1}{}}\
                                        {!eq{$2}{}}\
                                        {pam{$1:${sg{$2}{:}{::}}}}\
                                }\
                {yes}{no}}
    server_set_id = $1


> with /etc/pam.d/exim:
>
> # chkpasswd: auth account
> auth    required        pam_securityserver.so
> account required        pam_unix.so


That's pretty simple. That's the entire contents?

-Michael

---------------------------------------
None are more hopelessly enslaved than those who falsely believe they
are free.

                --Johann Wolfgang von Goethe.