Re: [Exim] Configure exim to user $homedir/Maildir/ format

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Robert Mena
Ημερομηνία:  
Προς: Odhiambo Washington
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] Configure exim to user $homedir/Maildir/ format
Hi Odhiambo,

Thanks for the info. I am still understanding the
routers/transports issue of exim.

After some digging (thanks for vexim) I managed to
configure my local_delivery to perfom a lookup in my
mysql database and get the uid, gid and homedir to
make the drop.

Unfortunately it only works when the user exists in my
etc/passwd.

local_delivery:
driver = appendfile
directory = ${lookup mysql{select home from login
where login = '${local_part}'}}/Maildir
delivery_date_add
envelope_to_add
return_path_add
user = ${lookup mysql{select uid from login where
login = '${local_part}'}}
group = ${lookup mysql{select gid from login where
login = '${local_part}'}}
mode = 0660
maildir_format = true
create_directory = true

- rt
--- Odhiambo Washington <wash@???> wrote:
> * Robert Mena <rt_mena@???> [20031202 01:32]:
> wrote:
> > Hi,
> >
> > My current setup (qmail) fetches the homedir of
> the
> > user from a mysql database and drops the email in
> each
> > user's homedir.
> >
> > Ex. login foo
> > the homedir is /home/f/o/foo
> >
> > So it delivers in /home/f/o/foo/Maildir/new, one
> file
> > per message.
> >
> > How can I configure exim in order to do that ?
>
> Read spec.txt for reference on 'hash'.
>
> If you just want it so that not all of your users
> are in the
> same directory, a common way of doing this is to use
> the first
> letter to split it up.
>
> Something like
>
> file =
>

/home/${lc:${length_1:${local_part}}/${local_part}}/Maildir
>
> in your local_delivery transport should work, so
> mail for
> user@??? would be stored in:
>
> /home/f/foo/Maildir
>
> Read spec.txt and FAQ to get how to do level 2 ;)
>
>
>
>
> -Wash
>
> http://www.netmeister.org/news/learn2quote.html
>
> --
>

+======================================================================+
>     |\      _,,,---,,_     | Odhiambo Washington
> <wash@???>
> Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.
> www.wananchi.com
>    |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9
> +254 20 313922
>   '---''(_/--'  `-'\_)     | GSM: +254 722 743223
> +254 733 744121

>

+======================================================================+
> "That boy's about as sharp as a pound of wet liver"
>         -- Foghorn Leghorn

>


> ATTACHMENT part 2 application/x-pkcs7-signature




__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/