Re: [Exim] Help with SMTP AUTH

Top Pagina
Delete this message
Reply to this message
Auteur: Dave C.
Datum:  
Aan: Odhiambo Washington
CC: Exim Users
Onderwerp: Re: [Exim] Help with SMTP AUTH

You could possibly set up a different file to contain username/password
combinations for use with SMTP AUTH? The other way is to run exim as
root..


On Tue, 28 Aug 2001, Odhiambo Washington wrote:

> Please allow me to ask this for the umpteenth time. It's been asked before
> but still it just doesn't work for me. I use FreeBSD 4.3-STABLE and the
> encrypted passwords reside in /etc/master.passwd.
> Now is I do a lookup for user:encrypted-passwd it all works (thanks to
> Tamas TEVESZ). It's probably too much work going into the passwd file to
> extract the username:passwd combination (it can be done easily by a small
> script though) so I want the lookup to be done on the master.passwd
> itself.
>
> The config below doesn't work, so far because of permissions on
> /etc/master.passwd. The mainlog says this:
>
>
> 2001-08-28 18:28:34 Authentication failed for friendlyserver.wananchi.com
> (friendlyserver) [62.8.64.130]: 435 Unable to authenticate at present: failed to
> open /etc/master.passwd for linear search: Permission denied (euid=UID egid=GID)
> 2001-08-28 18:28:44 Authentication failed for friendlyserver.wananchi.com
> (friendlyserver) [62.8.64.130]: 435 Unable to authenticate at present: failed to
> open /etc/master.passwd for linear search: Permission denied (euid=UID egid=GID)
>
> ..where UID/GID are exim's UID/GID pair.
>
> /etc/master.passwd is mode 0600 owned by root:wheel
>
> Is there something that I need to do so that it can allow me go to the
> next test phase??
>
> ##### AUTH Config
>
> ######################################################################
> #                   AUTHENTICATION CONFIGURATION                     #
> ######################################################################

>
> # There are no authenticator specifications in this default configuration file.
>
> ## new auth section ##
>
> plain:
> driver = plaintext
> public_name = PLAIN
> server_condition = "${if and {{!eq{$2}{}}{!eq{$3}{}}\
> {crypteq{$3}{${extract{2}{:} {${lookup{$2}lsearch{/etc/master.passwd}{$value}{*:*}}}}}}}{1}{0}}"
> server_set_id = $2
>
> login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = Username:: : Password::
> server_condition = "${if and {{!eq{$1}{}}{!eq{$2}{}}\
> {crypteq{$2}{${extract{2}{:} {${lookup{$1}lsearch{/etc/master.passwd}{$value}{*:*}}}}}}}{1}{0}}"
> server_set_id = $1
>
> end
> # End of Exim configuration file
>
>
> TIA
>
>
>
> -Wash
>
> --
> Odhiambo Washington
> Wananchi Online Ltd.,
> wash@??? 1st Flr Loita Hse.
> Tel: 254 2 313985 Loita Street.,
> Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE.
>
> Kirkland, Illinois, law forbids bees to fly over the village or through any of
> its streets.
>


--