RE: [Exim] How exim looks up users.

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: K sPecial
Ημερομηνία:  
Προς: eli, exim-users
Αντικείμενο: RE: [Exim] How exim looks up users.
Thanks much, what Eli showed is exactly what I need :) Thank you also Kjetil for your time :)

--K-sPex


--- "Eli" <eli@???> wrote:
Don't forget of course the "user" and "group" settings you can specify :)

Snippet from my config file:

virtual_delivery:
        driver                  = appendfile
        maildir_format          = yes
        return_path_add         = yes
        envelope_to_add         = yes
        delivery_date_add       = yes
        user                    = 20
        group                   = 20
        directory               = ${lookup mysql{SELECT path FROM domain
WHERE host = '${quote_mysql:$domain}'}}/${quote_local_part:$local_part}


-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On Behalf
Of Kjetil Torgrim Homme
Sent: Monday, December 22, 2003 11:56 PM
To: KsPecial@???
Cc: exim-users@???
Subject: Re: [Exim] How exim looks up users.

On Tue, 2003-12-23 at 05:47, K sPecial wrote:
> What I want to do is use a smart user directive and give it a condition as

follows:
>
> condition = ${lookup{$local_part} lsearch{/some/file} {yes} {no}}
>
> After this I would give it a transport of local delivery. The only problem

is, is that since it's looking up these users in /some/file they won't have
UID/GID's. So I want exim to put all mail into /var/mail/<$local_part> under
the exim GID so people will need to be in exim group. Since of course these
won't be users with shells there shouldn't be a problem with everyone
reading everyone elses mail.
>
> Any help on how to tell exim to place mail under it's UID/GID would be

greatly appreciated.

simple:

# Local delivery to user mailboxes.
local_delivery:
driver = appendfile
return_path_add = true
envelope_to_add = true
delivery_date_add = true
file = /var/mail/$local_part

--
Kjetil T.



--

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

---
[This E-mail scanned for viruses]



---
[This E-mail scanned for viruses]





_____________________________________________________________
Fight the power! BlazeMail.com