Re: [Exim] smartuser setup

Góra strony
Delete this message
Reply to this message
Autor: Gabor Gludovatz
Data:  
Dla: Dave C.
CC: exim-users
Temat: Re: [Exim] smartuser setup
On Sun, 24 Dec 2000, Dave C. wrote:

> You could add 'domains = ' to the localuser director, restricting it
> only to domains that *should* map to local users. (Or, if there are no
> such domains, comment out that director completely)..


thanx, your solution works. but don't you know a cleaner solution? say,
there would be a no_more = ..true if /etc/exim.virtual_smart doesn't
contain $domain
but no_more doesn't accept parameters, even no_more = true doesn't work,
nevertheless no_more is a boolean and I think it should work.

> On Sun, 24 Dec 2000, Gabor Gludovatz wrote:
>
> > Hello,
> >
> > I have the following elements in exim's director section:
> > virtual:
> > driver = aliasfile
> > file_transport = address_file
> > pipe_transport = address_pipe
> > domains = lsearch;/etc/exim.virtual-domains
> > file = /etc/vmail/$domain
> > search_type = lsearch
> >
> > virtual_smart:
> > driver = smartuser
> > domains = lsearch;/etc/exim.virtual_smart
> > new_address =
> > ${lookup{$domain}lsearch{/etc/exim.virtual_smart}{$value}fail}
> > no_more
> >
> > [...]
> >
> > localuser:
> > driver = localuser
> > transport = local_delivery
>
>
> > If a domain has no smartuser set up in /etc/exim.virtual_smart,
> > then the message passes along, and it gets delivered to a localuser even
> > if there is no such username in the file /etc/vmail/$domain.
> >
> > A solution would be to put a no_more in the virtual:, but then
> > virtual_smart wouldn't work.
> >
> > What should I write into virtual: if I want smartuser setup to work, and
> > doesn't want messages to be delivered to local users?
> >
> > Thanks,
> > Gabor
> >
> > ps.: Merry Christmas to all!



--
Gabor Gludovatz <ggabor@???> http://www.sopron.hu/~ggabor/