[EXIM] Force root? (fwd)

Top Page
Delete this message
Reply to this message
Author: Microwave Systems Eximlist Exploder
Date:  
To: exim-users
Subject: [EXIM] Force root? (fwd)



I received one reply on this concerning the require_files check, but I
still need to figure out how to force the exists check in the
condition, and the aliasfile lookup itself in the aliasfile director,
to be able to access files in a users home dir even if it isn't
world-readable or readable by the exim user. Basically, I want it to
use root UID to read those files. Is this not possible?

In case anyone is still trying to figure out what the heck I am doing,
the 'virtual.domains' file has a text-list of domains, and usernames.
If a 'domain.com' is in the file, and the file 'domain.com.mailmap' is
in that users home dir, the virtualdfl is passed by, and the virtualmap
directory uses that as the aliasfile for the domain, if the file
_doesnt_ exist, the virtualdfl router handled it, and delivers the mail
to that user at our domain.

---------- Forwarded message ----------
Date: Wed, 14 Apr 1999 12:06:20 -0400 (EDT)
From: eximlist@???
To: exim-users@???
Subject: [EXIM] Force root?


How can I force a file lookup in a directory to be done with root
permissions? I'm looking data up in a file in a users home directory, and
there is no guarantee that the home dir will be world readable (or
readable by the exim user).


Here is what I am working with:


virtualdfl:
           driver = smartuser
           domains = lsearch;/admin/exim/virtual.domains
           condition = "${if exists {${extract{6}{:}{${lookup{${domain_data}}nis{passwd.byname}{$va
           new_address = $domain_data@OUR_LOCAL_DOMAIN.COM
           headers_add = "X-Virtual: dfl: $local_part\@$domain"


virtualmap:
           driver = aliasfile
           domains = lsearch;/admin/exim/virtual.domains
           require_files = ${extract{6}{:}{${lookup{${domain_data}}nis{passwd.byname}{$value}fail}}
           file = ${extract{6}{:}{${lookup{${domain_data}}nis{passwd.byname}{$value}fail}}}/${lc:${
           search_type = lsearch*
           headers_add = "X-Virtual: map: $local_part\@$domain"
           more = false



I want to force the exists check in the condition in virtualdfl, and the
require_files and the aliasfile lsearch in virtualmap, to be done with
root permission to prevent a non-world-readable home dir from mucking it
up.



--
*** Exim information can be found at http://www.exim.org/ ***





--
*** Exim information can be found at http://www.exim.org/ ***