Re: [EXIM] removing recipients

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vadim Vygonets
Dátum:  
Címzett: Philip Hazel
CC: Bradley Dunn, exim-users
Tárgy: Re: [EXIM] removing recipients
On Wed, 10 Dec 1997, Philip Hazel wrote:

> On Tue, 9 Dec 1997, Bradley Dunn wrote:
>
> > if $sender_address contains "x.dom" and $recipients contains "y.dom"
> >     then seen finish
> > endif

> >
> > That is almost what I want but I believe this will blackhole the message
> > for all of the recipients. I only want to blackhole it for those
> > recipients who contain "y.dom".
> >
> > Is there a way to do this?
>
> Yes, but not in a system filter, which is a one-off thing for the whole
> message. Your requirement is to handle certain recipients specially
> under certain circumstances, and that is a directing task. Try something
> like this:
>
> blackhole_transport:
> driver = appendfile
> file = /dev/null
> user = nobody
>
> ...
>
> blackhole_director:
> driver = smartuser
> transport = blackhole_transport
> senders = ^.*x\.dom
> domains = ^.*y\.dom


Nice. But here my (related) question comes: is there any way to
restrict mail delivery only to people whose home directory contains
some particular string, or whose _primary_ gid is A, B or C (but not
Z, even if they have C as a secondary gid)? Our site needs one of
those.

Vadik.


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